fix: all e2e flakes [WIP] (#23633)

* fix all e2e flakes

* Update workflow.e2e.ts
This commit is contained in:
Anik Dhabal Babu
2025-09-06 15:16:24 +09:00
committed by GitHub
parent d6b17b76db
commit 550f34c128
2 changed files with 8 additions and 7 deletions
+6 -6
View File
@@ -7,7 +7,7 @@ test.describe("Change App Theme Test", () => {
const pro = await users.create();
await pro.apiLogin();
await page.goto("/settings/my-account/appearance");
await expect(page.locator('text="Dashboard theme"')).toBeVisible();
await expect(page.getByTestId("dashboard-shell").getByText("Dashboard theme")).toBeVisible();
await page.click('[data-testid="appTheme-dark"]');
await page.click('[data-testid="update-app-theme-btn"]');
@@ -25,7 +25,7 @@ test.describe("Change App Theme Test", () => {
const pro = await users.create();
await pro.apiLogin();
await page.goto("/settings/my-account/appearance");
await expect(page.locator('text="Dashboard theme"')).toBeVisible();
await expect(page.getByTestId("dashboard-shell").getByText("Dashboard theme")).toBeVisible();
await page.click('[data-testid="appTheme-light"]');
await page.click('[data-testid="update-app-theme-btn"]');
@@ -44,7 +44,7 @@ test.describe("Change App Theme Test", () => {
await pro.apiLogin();
await page.goto("/settings/my-account/appearance");
await expect(page.locator('text="Dashboard theme"')).toBeVisible();
await expect(page.getByTestId("dashboard-shell").getByText("Dashboard theme")).toBeVisible();
await page.click('[data-testid="appTheme-light"]');
await page.click('[data-testid="update-app-theme-btn"]');
const toast1 = await page.waitForSelector('[data-testid="toast-success"]');
@@ -72,7 +72,7 @@ test.describe("Change Booking Page Theme Test", () => {
await pro.apiLogin();
await page.goto("/settings/my-account/appearance");
await expect(page.locator('text="Dashboard theme"')).toBeVisible();
await expect(page.getByTestId("dashboard-shell").getByText("Dashboard theme")).toBeVisible();
//Click the "Dark" theme label
await page.click('[data-testid="theme-dark"]');
@@ -94,7 +94,7 @@ test.describe("Change Booking Page Theme Test", () => {
await pro.apiLogin();
await page.goto("/settings/my-account/appearance");
await expect(page.locator('text="Dashboard theme"')).toBeVisible();
await expect(page.getByTestId("dashboard-shell").getByText("Dashboard theme")).toBeVisible();
//Click the "Light" theme label
await page.click('[data-testid="theme-light"]');
@@ -114,7 +114,7 @@ test.describe("Change Booking Page Theme Test", () => {
await pro.apiLogin();
await page.goto("/settings/my-account/appearance");
await expect(page.locator('text="Dashboard theme"')).toBeVisible();
await expect(page.getByTestId("dashboard-shell").getByText("Dashboard theme")).toBeVisible();
await page.click('[data-testid="theme-light"]');
await page.click('[data-testid="update-theme-btn"]');
+2 -1
View File
@@ -26,7 +26,8 @@ test.describe("Workflow Tab - Event Type", () => {
await fillNameInput("Edited Workflow");
await saveWorkflow();
await page.getByTestId("go-back-button").click();
page.getByTestId("workflow-list").waitFor();
await page.getByTestId("workflow-list").waitFor();
await page.reload();
await hasWorkflowInList("Edited Workflow");
});