fix: flaky e2e tests (#20168)

* fix: flaky e2e tests

* update

* fix
This commit is contained in:
Anik Dhabal Babu
2025-03-18 22:30:00 +05:30
committed by GitHub
parent 37e56ebbf9
commit f63edef48d
2 changed files with 8 additions and 0 deletions
+2
View File
@@ -228,6 +228,8 @@ test.describe("Reschedule for booking with seats", () => {
`/booking/${booking.uid}?cancel=true&allRemainingBookings=false&seatReferenceUid=${bookingSeats[0].referenceUid}`
);
await expect(page.locator('text="Cancel event"')).toBeVisible();
await page.locator('[data-testid="cancel_reason"]').fill("Test reason");
await page.locator('[data-testid="confirm_cancel"]').click();
+6
View File
@@ -7,6 +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 page.click('[data-testid="appTheme-dark"]');
await page.click('[data-testid="update-app-theme-btn"]');
@@ -24,6 +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 page.click('[data-testid="appTheme-light"]');
await page.click('[data-testid="update-app-theme-btn"]');
@@ -42,6 +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 page.click('[data-testid="appTheme-light"]');
await page.click('[data-testid="update-app-theme-btn"]');
const toast1 = await page.waitForSelector('[data-testid="toast-success"]');
@@ -69,6 +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();
//Click the "Dark" theme label
await page.click('[data-testid="theme-dark"]');
@@ -90,6 +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();
//Click the "Light" theme label
await page.click('[data-testid="theme-light"]');
@@ -109,6 +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 page.click('[data-testid="theme-light"]');
await page.click('[data-testid="update-theme-btn"]');