Skip to content

Commit

Permalink
increase expect timeout; remove map check that is failing; add tags (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonyshull authored Mar 6, 2024
1 parent 629b44a commit d6d8da5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions integration/e2e_tests/all-scenarios.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ const baseURL = process.env.HOST
: "http://localhost:4001";

files.forEach((file) => {
test.describe("All scenarios", (_) => {
test.describe("All scenarios", {tag: "@scenarios"}, (_) => {
const filePath = path.join(filesPath, file);
const { scenario } = require(filePath);

const name = fileToMetricName(file);

test(name, async ({ page }) => {
test(name, {tag: `@${name}`}, async ({ page }) => {
const start = performance.now();

await scenario({ page, baseURL });
Expand Down
1 change: 0 additions & 1 deletion integration/scenarios/search-for-a-subway-line.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ exports.scenario = async ({ page, baseURL }) => {
await expect(page.locator("h1.schedule__route-name")).toHaveText(
"Green Line",
);
await expect(page.locator("div.map--loaded")).toBeVisible();
await page.waitForSelector("li.m-schedule-diagram__stop");
await expect
.poll(async () => page.locator("li.m-schedule-diagram__stop").count())
Expand Down
3 changes: 2 additions & 1 deletion playwright.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ module.exports = defineConfig({
trace: 'on-first-retry',
userAgent: 'Playwright',
},

/* set the expect timeout to 10s */
expect: { timeout: 10000 },
/* Configure projects for major browsers */
projects: [
{
Expand Down

0 comments on commit d6d8da5

Please sign in to comment.