mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2026-01-06 04:26:57 +00:00
PLAYWRIGHT: fix the table flaky test (#24176)
This commit is contained in:
parent
226e2e155a
commit
da37577a0c
@ -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);
|
||||
});
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user