Skip to content

Commit b1286fc

Browse files
committed
fix(react-router): removing previously required wait on tab click tests
1 parent e807ca8 commit b1286fc

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

packages/react-router/test/base/tests/e2e/playwright/utils/test-utils.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,10 @@ export async function ionBackClick(page: Page, pageId: string): Promise<void> {
6969
}
7070

7171
/**
72-
* Click a tab button by text. Includes a 500ms wait before clicking
73-
* to handle the timing issue with tab switches after forward navigation (FW-2800).
72+
* Click a tab button by text.
7473
* Equivalent to Cypress `cy.ionTabClick(tabText)`.
7574
*/
7675
export async function ionTabClick(page: Page, tabText: string): Promise<void> {
77-
await page.waitForTimeout(500);
7876
await page.locator('ion-tab-button').filter({ hasText: tabText }).click({ force: true });
7977
}
8078

packages/react-router/test/base/tests/e2e/support/commands.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,6 @@ Cypress.Commands.add('ionMenuNav', (contains) => {
7070
});
7171

7272
Cypress.Commands.add('ionTabClick', (tabText) => {
73-
// TODO FW-2800: figure out how to get rid of this wait. Switching tabs after a forward nav to a details page needs it
74-
cy.wait(500);
7573
cy.contains('ion-tab-button', tabText).click({ force: true });
7674
});
7775

0 commit comments

Comments
 (0)