PLAYWRIGHT: fix the table flaky test (#24176)

This commit is contained in:
Ashish Gupta 2025-11-05 14:47:34 +05:30 committed by GitHub
parent 226e2e155a
commit da37577a0c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -37,7 +37,7 @@ test.describe('Table pagination sorting search scenarios ', () => {
const { afterAction, apiContext } = await performAdminLogin(browser);
await table1.create(apiContext);
for (let i = 0; i < 17; i++) {
for (let i = 0; i < 30; i++) {
await table1.createTestCase(apiContext);
}
@ -72,6 +72,11 @@ test.describe('Table pagination sorting search scenarios ', () => {
await page.getByTestId('next').click();
await page.waitForLoadState('networkidle');
await page.waitForSelector('[data-testid="loader"]', {
state: 'detached',
});
expect(await page.locator('.ant-table-row').count()).toBe(15);
});