From 5f4435e101dbdb00c60c45da897983e3f63a3138 Mon Sep 17 00:00:00 2001 From: Anssi Juvonen Date: Fri, 13 Dec 2024 18:55:09 +0200 Subject: [PATCH] Debug --- e2e/log.spec.ts | 2 +- playwright.config.ts | 28 ++++++++++++++-------------- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/e2e/log.spec.ts b/e2e/log.spec.ts index f90a651..f0cdd22 100644 --- a/e2e/log.spec.ts +++ b/e2e/log.spec.ts @@ -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 } await page.getByTestId('navbar-link-settings').click(); await page.getByTestId('navbar-link-log').click(); diff --git a/playwright.config.ts b/playwright.config.ts index fa7ac9a..c5b44e2 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -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. @@ -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: {