Skip to content

Commit 3ae9ada

Browse files
authored
Fixed entity spec flakiness (#27211)
* Fixed entity spec flakiness * lint fix
1 parent 8a53721 commit 3ae9ada

1 file changed

Lines changed: 2 additions & 11 deletions

File tree

  • openmetadata-ui/src/main/resources/ui/playwright/e2e/Pages

openmetadata-ui/src/main/resources/ui/playwright/e2e/Pages/Entity.spec.ts

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
*/
1313
import {
1414
APIRequestContext,
15-
test as base,
1615
expect,
1716
Page,
17+
test as base,
1818
} from '@playwright/test';
1919
import { isUndefined } from 'lodash';
2020
import { Column, Table } from '../../../src/generated/entity/data/table';
@@ -538,16 +538,7 @@ Object.entries(entities).forEach(([key, EntityClass]) => {
538538
.locator('[data-testid="selectable-list"]')
539539
.waitFor({ state: 'visible' });
540540

541-
const searchTagCleanup = page.waitForResponse(
542-
'/api/v1/search/query?q=*index=tag*'
543-
);
544-
await page
545-
.locator('[data-testid="tag-select-search-bar"]')
546-
.fill('PersonalData.SpecialCategory');
547-
await searchTagCleanup;
548-
await waitForAllLoadersToDisappear(page);
549-
550-
await page.getByTitle('SpecialCategory', { exact: true }).click();
541+
await page.getByTestId('clear-all-button').click();
551542
const removeResponse = page.waitForResponse(
552543
(response) =>
553544
response.url().includes('/api/v1/columns/name/') ||

0 commit comments

Comments
 (0)