fix flaky playwright (#21688)

This commit is contained in:
Karan Hotchandani 2025-06-10 23:21:03 +05:30 committed by GitHub
parent 047c3bfbe4
commit 67e23ae855
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 6 deletions

View File

@ -711,7 +711,7 @@ test.describe('Domains Rbac', () => {
const user1 = new UserClass();
test.beforeAll('Setup pre-requests', async ({ browser }) => {
test.setTimeout(90000);
test.slow();
const { apiContext, afterAction, page } = await performAdminLogin(browser);
await Promise.all([

View File

@ -1001,6 +1001,8 @@ test.describe('Glossary tests', () => {
});
test('Request description task for Glossary', async ({ browser }) => {
test.slow(true);
const { page, afterAction, apiContext } = await performAdminLogin(browser);
const glossary1 = new Glossary();
const user1 = new UserClass();
@ -1030,11 +1032,9 @@ test.describe('Glossary tests', () => {
await sidebarClick(page, SidebarItem.GLOSSARY);
await selectActiveGlossary(page, glossary1.data.displayName);
const viewerContainerText = await page.textContent(
'[data-testid="viewer-container"]'
);
expect(viewerContainerText).toContain('Updated description');
await expect(
page.locator('[data-testid="viewer-container"]')
).toContainText('Updated description');
} finally {
await glossary1.delete(apiContext);
await afterAction();