Skip to content

Commit

Permalink
Debug
Browse files Browse the repository at this point in the history
  • Loading branch information
ajuvonen committed Dec 13, 2024
1 parent c123e60 commit 5f4435e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion e2e/log.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ test.only('logs veggies', async ({page}) => {
const toastLocator = page.getByTestId('toast-message');

while ((await toastLocator.count()) > 0) {
await toastLocator.first().click(); // Click the first toast message
await toastLocator.first().click({force: true}); // Click the first toast message

Check warning on line 23 in e2e/log.spec.ts

View workflow job for this annotation

GitHub Actions / lint

Unexpected use of { force: true } option
}
await page.getByTestId('navbar-link-settings').click();
await page.getByTestId('navbar-link-log').click();
Expand Down
28 changes: 14 additions & 14 deletions playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {defineConfig, devices} from '@playwright/test';
export default defineConfig({
testDir: './e2e',
/* Maximum time one test can run for. */
timeout: 10 * 1000,
timeout: 5 * 1000,
expect: {
/**
* Maximum time expect() should wait for the condition to be met.
Expand Down Expand Up @@ -41,25 +41,25 @@ export default defineConfig({
trace: 'on-first-retry',

/* Only on CI systems run the tests headless */
headless: !!process.env.CI,
headless: true,

testIdAttribute: 'data-test-id',
},

/* Configure projects for major browsers */
projects: [
{
name: 'chromium',
use: {
...devices['Desktop Chrome'],
},
},
{
name: 'firefox',
use: {
...devices['Desktop Firefox'],
},
},
// {
// name: 'chromium',
// use: {
// ...devices['Desktop Chrome'],
// },
// },
// {
// name: 'firefox',
// use: {
// ...devices['Desktop Firefox'],
// },
// },
{
name: 'Mobile Chrome',
use: {
Expand Down

0 comments on commit 5f4435e

Please sign in to comment.