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/improve e2e tests in gha #1270

Merged
merged 3 commits into from
Nov 26, 2024
Merged
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
2 changes: 2 additions & 0 deletions .github/workflows/develop-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
paths:
- 'backend/**'
- '!backend/FwLite/**'
- 'frontend/**'
- '.github/workflows/lexbox-api.yaml'
- '.github/workflows/deploy.yaml'
- 'deployment/lexbox-deployment.yaml'
Expand All @@ -14,6 +15,7 @@ on:
paths:
- 'backend/**'
- '!backend/FwLite/**'
- 'frontend/**'
- '.github/workflows/lexbox-api.yaml'
- '.github/workflows/deploy.yaml'
- 'deployment/lexbox-deployment.yaml'
Expand Down
3 changes: 2 additions & 1 deletion frontend/Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ tasks:
- corepack enable || true
- pnpm install
playwright-tests:
cmd: pnpm test
aliases: [ pt ]
cmd: pnpm run test {{.CLI_ARGS}}

playwright-generate-tests:
cmds:
Expand Down
3 changes: 2 additions & 1 deletion frontend/tests/logout.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ import {AdminDashboardPage} from './pages/adminDashboardPage';
import {loginAs} from './utils/authHelpers';
import {test} from './fixtures';

test('Back button after logout redirects back to login page', async ({page}) => {
test('Back button after logout redirects back to login page', async ({page, browserName}) => {
test.skip(browserName === 'firefox', 'Support for Clear-Site-Data: "cache" was removed and is WIP (https://bugzilla.mozilla.org/show_bug.cgi?id=1838506)');
await loginAs(page.request, 'admin');
const adminPage = await new AdminDashboardPage(page).goto();
const drawer = await adminPage.openDrawer();
Expand Down
Loading