Skip to content

Commit

Permalink
fix e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
yannbf committed Oct 10, 2024
1 parent 1ad5dc0 commit 26bfe92
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@ test.describe("component testing", () => {
browserName,
}) => {
test.skip(browserName !== "chromium", `Skipping tests for ${browserName}`);
await setForceFailureFlag(true);

const sbPage = new SbPage(page, expect);

await sbPage.navigateToStory("addons/test", "Mismatch Failure");
Expand All @@ -70,6 +68,10 @@ test.describe("component testing", () => {

// TODO: This is just temporary, the UI will be different
await page.locator("#addons").getByRole("button").nth(2).click();

// Wait for test results to appear
const errorFilter = page.getByLabel("Show errors");
await expect(errorFilter).toBeVisible({ timeout: 30000 });

// Assert discrepancy: CLI pass + Browser fail
const failingStoryElement = page.locator(
Expand Down

0 comments on commit 26bfe92

Please sign in to comment.