mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-08-31 12:39:01 +00:00
fix flaky playwright (#21688)
This commit is contained in:
parent
047c3bfbe4
commit
67e23ae855
@ -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([
|
||||
|
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user