Skip to content

Commit

Permalink
frontend: Add playwright app test
Browse files Browse the repository at this point in the history
Add working namespace test

Signed-off-by: Vincent T <[email protected]>
  • Loading branch information
vyncent-t committed Oct 16, 2024
1 parent 5668534 commit d684e6a
Show file tree
Hide file tree
Showing 6 changed files with 315 additions and 452 deletions.
28 changes: 18 additions & 10 deletions app/e2e-tests/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,21 @@ import { defineConfig, devices } from '@playwright/test';
export default defineConfig({
testDir: './tests',
/* Run tests in files in parallel */
fullyParallel: true,
timeout: 60 * 1000,
expect: {
/**
* Maximum time expect() should wait for the condition to be met.
* For example in `await expect(locator).toHaveText();`
*/
timeout: 120000,
},
fullyParallel: false,
/* Fail the build on CI if you accidentally left test.only in the source code. */
forbidOnly: !!process.env.CI,
/* Retry on CI only */
retries: process.env.CI ? 2 : 0,
/* Opt out of parallel tests on CI. */
workers: process.env.CI ? 1 : undefined,
workers: 1,
/* Reporter to use. See https://playwright.dev/docs/test-reporters */
reporter: 'html',
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
Expand All @@ -39,15 +47,15 @@ export default defineConfig({
use: { ...devices['Desktop Chrome'] },
},

{
name: 'firefox',
use: { ...devices['Desktop Firefox'] },
},
// {
// name: 'firefox',
// use: { ...devices['Desktop Firefox'] },
// },

{
name: 'webkit',
use: { ...devices['Desktop Safari'] },
},
// {
// name: 'webkit',
// use: { ...devices['Desktop Safari'] },
// },

/* Test against mobile viewports. */
// {
Expand Down
Loading

0 comments on commit d684e6a

Please sign in to comment.