mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-10-11 00:35:22 +00:00
PLAYWRIGHT: fix the flaky test around tags and activity feed (#23750)
This commit is contained in:
parent
8c63ac21ff
commit
c41482c936
@ -444,7 +444,7 @@ test.describe('Mention notifications in Notification Box', () => {
|
||||
|
||||
let count = 0;
|
||||
let iterations = 0;
|
||||
const maxIterations = 10;
|
||||
const maxIterations = 20;
|
||||
const delayMs = 5000;
|
||||
|
||||
while (iterations < maxIterations) {
|
||||
|
@ -490,9 +490,24 @@ export const fillTagForm = async (adminPage: Page, domain: Domain) => {
|
||||
await adminPage.click(
|
||||
'[data-testid="modal-container"] [data-testid="add-domain"]'
|
||||
);
|
||||
|
||||
const searchDomain = adminPage.waitForResponse(
|
||||
`/api/v1/search/query?q=*${encodeURIComponent(domain.responseData.name)}*`
|
||||
);
|
||||
|
||||
await adminPage
|
||||
.getByTestId(`tag-${domain.responseData.fullyQualifiedName}`)
|
||||
.click();
|
||||
.getByTestId('domain-selectable-tree')
|
||||
.getByTestId('searchbar')
|
||||
.fill(domain.responseData.name);
|
||||
|
||||
await searchDomain;
|
||||
|
||||
// Wait for the tag element to be visible and ensure page is still valid
|
||||
const tagSelector = adminPage.getByTestId(
|
||||
`tag-${domain.responseData.fullyQualifiedName}`
|
||||
);
|
||||
await tagSelector.waitFor({ state: 'visible' });
|
||||
await tagSelector.click();
|
||||
|
||||
await adminPage.getByTestId('saveAssociatedTag').click();
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user