Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: PRs to support Client 2 #1166

Merged
merged 29 commits into from
Oct 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
4df2196
fix(deps): update maven all non-major dependencies
renovate[bot] Sep 17, 2024
0564821
feat(fe:FSADT1-1503): Adjust button and message for the "Need help?" …
mamartinezmejia Sep 18, 2024
5b7500d
feat(fe:FSADT1-1445): Change "Logout" icon in "My profile" panel (#1165)
mamartinezmejia Sep 18, 2024
c9ab307
feat(fe:FSADT1-1502): Adjust logout behavior (#1167)
mamartinezmejia Sep 18, 2024
92055f3
fix(fe: FSADT1-1427): Autocomplete emitting value twice (#1170)
fterra-encora Sep 20, 2024
761daaf
feat(fe:FSADT1-1510): Load Legal Types description from data converto…
mamartinezmejia Sep 23, 2024
9b7be0e
fix(deps): update dependency date-fns to v4
renovate[bot] Sep 23, 2024
d4dd307
fix(fe: FSADT1-1495): Add notification to all BC Registries cards in …
fterra-encora Sep 24, 2024
920fca7
chore: update support/client2 with main (#1175)
fterra-encora Sep 24, 2024
1a3117e
fix(fe: FSADT1-1511): Clear business information when a new Client na…
fterra-encora Sep 25, 2024
6120445
feat(FSADT1-779): adding cypress scenarios (#1139)
paulushcgcj Sep 25, 2024
a621f9d
feat(FSADT1-1515): Display informative message when Legal Types are n…
mamartinezmejia Sep 25, 2024
61efa97
feat(FSADT1-779): adding cypress scenarios (#1139) (#1179)
mamartinezmejia Sep 26, 2024
8889e26
chore: merge main into client2 to solve conflicts (#1181)
mamartinezmejia Sep 26, 2024
162cf23
ci(deps): updating deployer and workflows (#1185)
paulushcgcj Sep 27, 2024
02fa1fb
fix(fe: FSADT1-1488): revalidate the date value properly (#1188)
fterra-encora Oct 1, 2024
ecd2277
chore: upgrade vue (#1193)
mamartinezmejia Oct 1, 2024
80a9466
chore: update support/client2 with main (#1192)
fterra-encora Oct 1, 2024
0d2eb22
fix(fe:FSADT1-1508): reset validation when the selected Client name c…
fterra-encora Oct 1, 2024
78c0a8e
fix(fe: FSADT1-1421): fix date validation for pasted/autocompleted va…
fterra-encora Oct 1, 2024
ab98039
chore: upgrade types node (#1194)
mamartinezmejia Oct 1, 2024
94bd418
fix(fe): stop date validation when part of it has an error (#1197)
fterra-encora Oct 1, 2024
968010f
chore: upgraded sass (#1195)
mamartinezmejia Oct 1, 2024
f2d64db
chore: upgrade carbon pictograms (#1196)
mamartinezmejia Oct 1, 2024
e2117b8
chore: upgrade carbon styles (#1198)
mamartinezmejia Oct 1, 2024
b545ccf
chore: upgrade vue and cypress coverage (#1200)
mamartinezmejia Oct 1, 2024
9821189
fix(FSADT1-1514): fixed doing business as processing (#1177)
paulushcgcj Sep 24, 2024
a25a08a
chore(deps): update maven all non-major dependencies
renovate[bot] Oct 1, 2024
7ed01c7
Merge branch 'main' into support/client2
paulushcgcj Oct 1, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
65 changes: 65 additions & 0 deletions .github/ISSUE_TEMPLATE/cypress.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
name: User provided automated tests
description: Submit Gherkin scenarios to generate .feature files for our test suite.
title: '[Test Case]: REPLACE WITH YOUR TEST CASE TITLE'
labels: gherkin, automated test
body:
- type: markdown
attributes:
value: |
## 📝 Gherkin Scenario Submission

Thank you for contributing! Please provide your Gherkin scenario in the format below.

### Gherkin/Cucumber Test Scenario
- ✍️ **Write or paste your Gherkin scenario in the first block**:
- Ensure the scenario follows the structure of **Given**, **When**, **Then**.
- Ensure the scenario contains a **Feature** and **Scenario** instruction.
- You can have multiple **Scenarios** in a single **Feature**.
- Pay attention to the **indentation** and **keywords**, as misconfigured files will cause issues when executed.
- Pay attention to the data you're using in your scenario. Make sure it don't pose a security risk or exposes any **REAL** [personal identifiable information](https://www2.gov.bc.ca/gov/content/governments/services-for-government/information-management-technology/privacy/personal-information).
- If you're unsure how to format your scenario, [click here for a guide](https://github.com/bcgov/nr-forest-client/tree/main/cypress#readme).
- 🧩 **Additional instructions**:
- Use the second block to provide any **non-default** steps or custom behavior that doesn’t fit into our predefined instructions. You can find a list of ready-made instructions in [our documentation](https://github.com/bcgov/nr-forest-client/tree/main/cypress#readme).

### Example

```gherkin
Feature: Guess the word

# The first example has two steps
Scenario: Maker starts a game
When the Maker starts a game
Then the Maker waits for a Breaker to join

# The second example has three steps
Scenario: Breaker joins a game
Given the Maker has started a game with the word "silky"
When the Breaker joins the Maker's game
Then the Breaker must guess a word with 5 characters
```
- type: textarea
id: gherkin_scenario
attributes:
label: Test Scenario
description: 'Please write or paste your Gherkin scenario here.'
render: gherkin
placeholder: |
Feature: [Feature Name]
Scenario: [Scenario Name]
Given [some initial context]
When [some event occurs]
Then [some outcome should occur]
validations:
required: true

- type: textarea
id: additional_instructions
attributes:
label: Additional Instructions
description: 'Please provide any additional instructions or custom behavior that doesn’t fit into our predefined instructions.'
render: shell
placeholder: |
- [Instruction 1] - [Description]
- [I can choose "rock" as the word] - User can provide a custom word to guess.
validations:
required: false
2 changes: 1 addition & 1 deletion .github/workflows/analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@ jobs:
results:
name: Analysis Results
needs: [tests-java, tests-frontend, repo-reports]
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
steps:
- run: echo "Workflow completed successfully!"
49 changes: 49 additions & 0 deletions .github/workflows/issue-gherkin.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Create Gherkin Feature from Issue
on:
issues:
types:
- opened

jobs:
create-feature:
if: contains(github.event.issue.labels.*.name, 'gherkin')
runs-on: ubuntu-24.04

steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
persist-credentials: false
fetch-depth: 0

- name: Extract feature content
id: feature
uses: bcgov-nr/[email protected]
with:
issue: ${{ github.event.issue.number }}
default_title: "[Test Case]: REPLACE WITH YOUR TEST CASE TITLE"
update_title: true

- name: Create feature file
run: echo "${{ steps.feature.outputs.feature }}" > cypress/cypress/e2e/upt_${{ github.event.issue.number }}.feature

- name: Commit & Push changes
uses: Andro999b/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: test/upt_${{ github.event.issue.number }}
force: true
message: |
test(upt #${{ github.event.issue.number }}): ${{ steps.feature.outputs.title }}

Closes #${{ github.event.issue.number }}

- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
branch: test/upt_${{ github.event.issue.number }}
title: "test(upt #${{ github.event.issue.number }}): ${{ steps.feature.outputs.title }}"
body: |
${{ github.event.issue.body }}

Closes #${{ github.event.issue.number }}
Loading
Loading