Skip to content

Commit

Permalink
increased timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
jmafoster1 committed Nov 28, 2024
1 parent b7e159b commit c3f3bba
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 17 deletions.
33 changes: 17 additions & 16 deletions playwright-e2e.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand All @@ -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'] },
// // },
// ],
});
2 changes: 1 addition & 1 deletion tests/e2e/assistant.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c3f3bba

Please sign in to comment.