From c3f3bba42716b3a3c7943734125ef0b8262f78d7 Mon Sep 17 00:00:00 2001 From: Michael Foster Date: Thu, 28 Nov 2024 09:17:22 +0000 Subject: [PATCH] increased timeout --- playwright-e2e.config.js | 33 +++++++++++++++++---------------- tests/e2e/assistant.spec.js | 2 +- 2 files changed, 18 insertions(+), 17 deletions(-) diff --git a/playwright-e2e.config.js b/playwright-e2e.config.js index 0cc72d57a..08078576b 100644 --- a/playwright-e2e.config.js +++ b/playwright-e2e.config.js @@ -9,7 +9,8 @@ module.exports = defineConfig({ /* The base directory, relative to the config file, for snapshot files created with toMatchSnapshot and toHaveScreenshot. */ snapshotDir: './__snapshots__', /* Maximum time one test can run for. */ - timeout: 10 * 1000, + timeout: 180_000, + expect: { timeout: 180_000 }, /* Run tests in files in parallel */ fullyParallel: true, /* Fail the build on CI if you accidentally left test.only in the source code. */ @@ -20,29 +21,29 @@ module.exports = defineConfig({ workers: process.env.CI ? 1 : undefined, /* Reporter to use. See https://playwright.dev/docs/test-reporters */ reporter: 'html', - headless: true, /* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */ use: { /* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */ trace: 'on-first-retry', + headless: true, /* Port to use for Playwright component endpoint. */ ctPort: 3100, }, /* Configure projects for major browsers */ - projects: [ - { - name: 'chromium', - use: { ...devices['Desktop Chrome'] }, - }, - // { - // name: 'firefox', - // use: { ...devices['Desktop Firefox'] }, - // }, - // { - // name: 'webkit', - // use: { ...devices['Desktop Safari'] }, - // }, - ], + // projects: [ + // { + // name: 'chromium', + // use: { ...devices['Desktop Chrome'] }, + // }, + // // { + // // name: 'firefox', + // // use: { ...devices['Desktop Firefox'] }, + // // }, + // // { + // // name: 'webkit', + // // use: { ...devices['Desktop Safari'] }, + // // }, + // ], }); diff --git a/tests/e2e/assistant.spec.js b/tests/e2e/assistant.spec.js index 4cffac781..53ecd2d81 100644 --- a/tests/e2e/assistant.spec.js +++ b/tests/e2e/assistant.spec.js @@ -1507,7 +1507,7 @@ const MediaServices = { for (const url in extractedURLAnalyses) { await expect(urlAnalysisDiv.locator("[href=\""+url+"\"]")).toBeVisible(); const resultRow = urlAnalysisDiv.locator("div.MuiDataGrid-row").filter({ has: page.locator(`text="${url}"`) }); - await expect(resultRow.locator("[data-field=\"status\"]")).toContainText(extractedURLAnalyses[url]); + await expect(resultRow.locator("[data-field=\"status\"]")).toContainText(extractedURLAnalyses[url], {ignoreCase: true}); } } // Credibility signals