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

test actions #301

Closed
wants to merge 76 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
76 commits
Select commit Hold shift + click to select a range
7902a99
feat(simulator-ui): integrate playwright
Jul 17, 2024
6b95f2a
feat(simulator-ui): integrate playwright
Jul 17, 2024
3bb43d2
feat(simulator-ui): rebased onto PF-main
Jul 19, 2024
ca4a848
feat(simulator-ui): add more tests
Jul 19, 2024
28d7060
test(simulator-ui): add test for footer
phos-web Aug 8, 2024
8e336e5
test(simulator-ui): add test for table row and input form
phos-web Aug 12, 2024
f877936
test(simulator-ui): fill input fields works
phos-web Aug 12, 2024
5ac24fa
test(simulator-ui): add mock data for filtering via input form
phos-web Aug 12, 2024
0c6771b
test
Aug 13, 2024
92705c3
test(simulator-ui): add testIds and files for separate pages
phos-web Aug 13, 2024
da55011
test(simulator-ui): fix test filter with input form
phos-web Aug 14, 2024
486dc00
test(simulator-ui): replace getByText with getByTestId, !Add tests fo…
Aug 14, 2024
0f03eb4
Merge branch 'addPlayWrightTests' of https://github.com/phos-web/citr…
Aug 14, 2024
34dbd2b
test(simulator-ui): add test for help dialogue and filter message hea…
phos-web Aug 14, 2024
b2c6982
test(simulator-ui): add test for filter message headers and clear all…
phos-web Aug 15, 2024
64eff0c
test(simulator-ui): add BeforeAll remove comments and use global vari…
Aug 15, 2024
1f7fbf7
Merge branch 'addPlayWrightTests' of https://github.com/phos-web/citr…
Aug 15, 2024
a8c068e
test(simulator-ui): remove Todo
Aug 15, 2024
59d3125
test(simulator-ui): fix tests with links and new tabs
phos-web Aug 15, 2024
0eae309
test(simulator-ui): add test view detail page of scenario execution
phos-web Aug 15, 2024
ae5e8fc
test(simulator-ui): add first two nav-bar tests
Aug 20, 2024
476f342
test(simulator-ui): add scenario subpage test which doesn't work yet
Aug 20, 2024
4ffee46
test(simulator-ui): update fork from original
Aug 20, 2024
d025ad9
Merge branch 'main' into addPlayWrightTests
Aug 20, 2024
76a0b65
Merge branch 'addPlayWrightTests' of https://github.com/phos-web/citr…
Aug 20, 2024
722cc09
test(citrus-simulator-ui): add playwright tests
Aug 20, 2024
2e2dd41
test(citrus-simulator-ui): update fork
Aug 20, 2024
8cb5ae3
test(citrus-simulator-ui): adapt home, navbar and scenario tests to n…
Aug 21, 2024
f685622
test(simulator-ui): adjust to data-test tag in scenario-results.spec.ts
phos-web Aug 22, 2024
67db6e5
test(citrus-simulator-ui): complete navbar tests
Aug 22, 2024
e52e8c9
test(simulator-ui): add scenario tests and extract helper-functions
Aug 22, 2024
c457f74
test(citrus-simulator-ui): add scenario test but regex isn't working …
Aug 22, 2024
0cd59b6
test(simulator-ui): add test for detail view of message
phos-web Aug 22, 2024
f52ef15
test(citrus-simulator-ui): add --force and change node version from 1…
Aug 22, 2024
e9c01d0
test(citrus-simulator-ui): clean tests in home, navbar and scenario -…
Aug 22, 2024
d25c214
test(citrus-simulator-ui): add last scenario.spec tests for detail view
Aug 22, 2024
b72a6c9
test(citrus-simulator-ui): prepare entities.spec with todos
Aug 22, 2024
ff453fa
Merge branch 'addPlayWrightTests' of https://github.com/phos-web/citr…
Aug 22, 2024
066ab28
test(simulator-ui): add test for detail view of message header
phos-web Aug 23, 2024
fdb7cbc
test(simulator-ui): add test for detail view of scenario action
phos-web Aug 23, 2024
2de125c
test(simulator-ui): add test entity tables
phos-web Aug 23, 2024
19f8370
test(simulator-ui): add test for clearing filter with icon
phos-web Aug 23, 2024
4eb96e0
test(simulator-ui): add test for showing message headers when clickin…
phos-web Aug 27, 2024
d978d45
test(simulator-ui): add test for showing test parameters when clickin…
phos-web Aug 27, 2024
65379fb
test(citrus-simulator-ui): add no-data and error banner test - error …
Aug 27, 2024
d960cb9
Merge branch 'addPlayWrightTests' of https://github.com/phos-web/citr…
Aug 27, 2024
4aeb394
test(simulator-ui): add test for show error banner
phos-web Aug 28, 2024
54e5e4f
test(citrus-simulator-ui): refactor entities.spec.ts a bit
Aug 28, 2024
f9242b4
test(citrus-simulator-ui): merge error-banner changes
Aug 28, 2024
5f7a305
test(simulator-ui): fix the last two tests of scenario.spec.ts
phos-web Aug 28, 2024
5631a80
test(citrus-simulator-ui): remove comments in entities.spec.ts
Aug 28, 2024
353ec96
Merge branch 'addPlayWrightTests' of https://github.com/phos-web/citr…
Aug 28, 2024
742d09e
test(citrus-simulator-ui): remove comments
Aug 28, 2024
e494572
test(simulator-ui): use helper functions for scenario-results.spec.ts
phos-web Aug 28, 2024
69dd58f
Merge remote-tracking branch 'phosWeb/addPlayWrightTests' into addPla…
phos-web Aug 28, 2024
468efd7
test(citrus-simulator-ui): run linter and fix error-banner function
Sep 2, 2024
d2924f3
test(citrus-simulator-ui): adapt scenario tests to data sent from moc…
Sep 2, 2024
02152cb
test(citrus-simulator-ui): make entities tests parameterized
Sep 2, 2024
19b8964
test(citrus-simulator-ui): change name for readability
Sep 2, 2024
79277cb
test(citrus-simulator-ui): assert that no delete request was made if …
Sep 2, 2024
125bcc6
test(citrus-simulator-ui): rm log and chage negative test to pass
Sep 2, 2024
f8a8b84
test(citrus-simulator-ui): add package-lock.json
Sep 2, 2024
b257d51
test(citrus-simulator-ui): npm i for new package-lock.json and remove…
Sep 2, 2024
815ae1f
test(citrus-simulator-ui):generate new package-lock.json
Sep 3, 2024
0742bc1
package-lock-new
Sep 3, 2024
03c89d3
ci: fix resolved npm registry
bbortt Sep 3, 2024
7837d30
Merge pull request #1 from postfinance/playwright-setup
phos-web Sep 3, 2024
6d6b582
test(citrus-simulator-ui):run prettier:format
Sep 3, 2024
5da97d9
test(citrus-simulator-ui): changename for test job
flumiii Sep 3, 2024
c74272a
test(citrus-simulator-ui): fix lint errors
Sep 4, 2024
5caf1b2
Merge branch 'addPlayWrightTests' of https://github.com/phos-web/citr…
Sep 4, 2024
78acf30
test(citrus-simulator-ui): exclude playwright-report in eslintrc.json
Sep 4, 2024
04a691a
test(citrus-simulator-ui): change port for playwright webServer and r…
Sep 4, 2024
0aba707
test(citrus-simulator-ui): reset package-lock.json and downgrade npm …
Sep 4, 2024
91d5b41
Merge remote-tracking branch 'citrus/main' into addPlayWrightTests
bbortt Sep 11, 2024
7e1050c
chore(deps): pin ui dependencies
bbortt Sep 11, 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
25 changes: 24 additions & 1 deletion .github/workflows/frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# limitations under the License.
# ---------------------------------------------------------------------------

name: main
name: frontend
on:
pull_request:
branches:
Expand Down Expand Up @@ -62,3 +62,26 @@ jobs:
- name: Frontend Tests
run: npm run ci:frontend:test
working-directory: simulator-ui
e2e:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- name: Install dependencies
run: npm ci --cache .npm --force
working-directory: simulator-ui
- name: Install Playwright Browsers
run: npx playwright install --with-deps
working-directory: simulator-ui
- name: Run Playwright tests
run: npm run e2e
working-directory: simulator-ui
- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: playwright-report
path: playwright-report/
retention-days: 30
1 change: 1 addition & 0 deletions simulator-ui/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"sourceType": "module",
"project": ["./tsconfig.app.json", "./tsconfig.spec.json"]
},
"ignorePatterns": ["playwright-report"],
"rules": {
"@angular-eslint/component-selector": [
"error",
Expand Down
4 changes: 3 additions & 1 deletion simulator-ui/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,9 @@ Desktop.ini
.eslintcache

######################
# Code coverage
# Test results
######################
/coverage/
/.nyc_output/
/test-results/
/playwright-report/
Loading
Loading