fix: one e2e flake visible in ci (#23897)

* fix: e2e flake visible in ci

* fix
This commit is contained in:
Anik Dhabal Babu authored and GitHub committed 2025-09-17 21:25:53 +05:30
1 parent aac5fa3537
commit 3b471f0e25
3 files changed
+8 -1

No files matched your search

+3
View File
@@ -111,6 +111,9 @@ export function createAppsFixture(page: Page) {
},
goToEventType: async (eventType: string) => {
await page.getByRole("link", { name: eventType }).click();
// fix the race condition
await page.waitForSelector('[data-testid="event-title"]');
await expect(page.getByTestId("vertical-tab-basics")).toHaveAttribute("aria-current", "page");
},
goToAppsTab: async () => {
await page.getByTestId("vertical-tab-apps").click();
+4
View File
@@ -584,6 +584,10 @@ export const createUsersFixture = (
get: () => store.users,
logout: async () => {
await page.goto("/auth/logout");
const logoutBtn = page.getByTestId("logout-btn");
await expect(logoutBtn).toHaveText("Go back to the login page");
await page.reload();
await expect(logoutBtn).toHaveText("Go back to the login page");
},
deleteAll: async () => {
const ids = store.users.map((u) => u.id);
+1 -1
View File
@@ -15,7 +15,7 @@ test.describe("Workflow Tab - Event Type", () => {
test("Creating a new workflow", async ({ workflowPage }) => {
const { createWorkflow, assertListCount } = workflowPage;
await createWorkflow({ name: "" });
await createWorkflow({ name: "test workflow" });
await assertListCount(3);
});