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

successor of #45 fork #46

Closed
wants to merge 128 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
128 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
4b78557
test(citrus-simulator-ui): test push to run actions
Sep 11, 2024
62c70e5
test(citrus-simulator-ui): add recorded video to workflow artifacts i…
Sep 11, 2024
a15c204
test(citrus-simulator-ui): fix alignment in workflow
Sep 12, 2024
89a6091
test(citrus-simulator-ui): add retention days
flumiii Sep 12, 2024
ca6d3cd
test(citrus-simulator-ui): add commas for linther
Sep 12, 2024
800412c
test(citrus-simulator-ui): set video recording for every test
Sep 12, 2024
c43f7e0
Merge remote-tracking branch 'origin/addPlayWrightTests' into addPlay…
Sep 12, 2024
4cde4bc
test(citrus-simulator-ui): change target of playwright-test-results a…
Sep 12, 2024
2dcbe47
chore(deps): regenerate lockfile
bbortt Sep 12, 2024
88ca31b
test(citrus-simulator-ui): change order of jobs
Sep 12, 2024
f9dff12
test(citrus-simulator-ui): try regex for artifact upload
Sep 12, 2024
4edc311
test(citrus-simulator-ui): add ls to check if report is absent and wo…
Sep 12, 2024
14cc7d4
test(citrus-simulator-ui): check with printout if report is generated
Sep 12, 2024
4f3365c
test(citrus-simulator-ui): set retry rate to 3 for playwright tests i…
Sep 12, 2024
4994c40
ci(citrus-simulator-ui): change target of playwright-test-results art…
Sep 12, 2024
c7ab6d4
chore(deps): regenerate lockfile
bbortt Sep 12, 2024
911f30c
ci(citrus-simulator-ui): change order of jobs
Sep 12, 2024
fbc83ca
ci(citrus-simulator-ui): try regex for artifact upload
Sep 12, 2024
70836e7
ci(citrus-simulator-ui): add ls to check if report is absent and work…
Sep 12, 2024
ab98cf6
ci(citrus-simulator-ui): check with printout if report is generated
Sep 12, 2024
a35eba7
ci(citrus-simulator-ui): set retry rate to 3 for playwright tests in CI
Sep 12, 2024
5fb77cd
ci(citrus-simulator-ui): a ls more
Sep 12, 2024
dea242b
ci(citrus-simulator-ui): merge
Sep 12, 2024
a919da1
test(citrus-simulator-ui): change path of artifacts and ensure that d…
Sep 13, 2024
6c8d6fe
test(citrus-simulator-ui): change path of artifacts
Sep 13, 2024
b92780e
ci(citrus-simulator-ui): add or for ls after e2e command and specify …
Sep 13, 2024
75fd919
ci(citrus-simulator-ui): adapt artifact path
Sep 13, 2024
f305968
ci(citrus-simulator-ui): remove ls debugging commands
Sep 13, 2024
3167b9a
ci(citrus-simulator-ui): change path of artifacts and ensure that deb…
Sep 13, 2024
29f0001
ci(citrus-simulator-ui): change path of artifacts
Sep 13, 2024
991dc9e
ci(citrus-simulator-ui): add or for ls after e2e command and specify …
Sep 13, 2024
9170a3c
fix(citrus-simulator-ui): adapt artifact path
Sep 13, 2024
9d773be
ci(citrus-simulator-ui): remove ls debugging commands
Sep 13, 2024
b7ebe90
refactor(citrus-simulator-ui): refactor code as mentioned in review c…
Sep 17, 2024
a0ce04d
Merge remote-tracking branch 'origin/addPlayWrightTests' into addPlay…
Sep 17, 2024
de964e3
refactor(citrus-simulator-ui): video recording mode in playwright.con…
Sep 17, 2024
e33d441
refactor(citrus-simulator-ui): add describe.test to make test structu…
Sep 17, 2024
58ddc39
refactor(citrus-simulator-ui): remove test for test-parameter page - …
Sep 17, 2024
c4fa1ef
fix(citrus-simulator-ui): fix reset-button including tests
Sep 17, 2024
bed7239
refactor(citrus-simulator-ui): rename method
Sep 17, 2024
8b73c67
fix(citrus-simulator-ui): run lint fix
Sep 17, 2024
8e652d7
fix(citrus-simulator-ui): run prettier write
Sep 17, 2024
87c6c51
fix(citrus-simulator-ui): fix no-data banner test
Sep 17, 2024
4d1f8bb
refactor(citrus-simulator-ui): refactor error-banner test
Sep 17, 2024
912991b
fix(citrus-simulator-ui): remove not working test and create issue ht…
Sep 17, 2024
789804d
fix(citrus-simulator-ui): add provider argument to make sure the http…
Sep 26, 2024
213f867
fix(citrus-simulator-ui): parameterize and fix tests for 500 error in…
Sep 26, 2024
59bdc79
fix(citrus-simulator-ui): parameterize and fix tests for 500 error in…
Sep 26, 2024
ce1464a
fix(citrus-simulator-ui): fix linter and prettier
Sep 26, 2024
c92473d
fix(citrus-simulator-ui): remove unnecessary test
Sep 26, 2024
e26b5b9
fix(citrus-simulator-ui): set retries for e2e tests 1 up
Sep 26, 2024
0a1e0b7
ci: fix playwright tests
bbortt Sep 30, 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
31 changes: 30 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,32 @@ 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: test-results
path: simulator-ui/test-results/
retention-days: 30
- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: playwright-report
path: simulator-ui/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