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

add playwright to simulator-ui #45

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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
24 changes: 24 additions & 0 deletions .github/workflows/frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,27 @@ jobs:
- name: Frontend Tests
run: npm run ci:frontend:test
working-directory: simulator-ui

test:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
- name: Install dependencies
run: npm ci
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
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
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# Test results
# Test artefacts

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