diff --git a/web-local/tests/explores/leaderboard-and-dim-table-sort.spec.ts b/web-local/tests/explores/leaderboard-and-dim-table-sort.spec.ts index d93d2a533d4..cf244bab7d8 100644 --- a/web-local/tests/explores/leaderboard-and-dim-table-sort.spec.ts +++ b/web-local/tests/explores/leaderboard-and-dim-table-sort.spec.ts @@ -53,12 +53,12 @@ test.describe("leaderboard and dimension table sorting", () => { page.getByRole("row", { name: "null 32.9k" }), ); - // add time comparison and select Pct change - await page.getByRole("button", { name: "Comparing" }).click(); - await openTimeRangeMenu(); await page.getByRole("menuitem", { name: "Last 24 Hours" }).click(); + // add time comparison and select Pct change + await page.getByRole("button", { name: "Comparing" }).click(); + // need a slight delay for the time range to update // and the "Pct change" option to be available // in the context column dropdown diff --git a/web-local/tests/explores/leaderboard-context-column.spec.ts b/web-local/tests/explores/leaderboard-context-column.spec.ts index ba4c4b11246..7fa83059caa 100644 --- a/web-local/tests/explores/leaderboard-context-column.spec.ts +++ b/web-local/tests/explores/leaderboard-context-column.spec.ts @@ -126,7 +126,6 @@ test.describe("leaderboard context column", () => { await interactWithTimeRangeMenu(page, async () => { await page.getByRole("menuitem", { name: "All Time" }).click(); }); - await page.getByRole("button", { name: "Comparing" }).click(); // Check that time comparison context column is hidden await expect(page.getByText(comparisonColumnRegex)).not.toBeVisible();