mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-08-31 20:51:26 +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();
|
const user1 = new UserClass();
|
||||||
|
|
||||||
test.beforeAll('Setup pre-requests', async ({ browser }) => {
|
test.beforeAll('Setup pre-requests', async ({ browser }) => {
|
||||||
test.setTimeout(90000);
|
test.slow();
|
||||||
|
|
||||||
const { apiContext, afterAction, page } = await performAdminLogin(browser);
|
const { apiContext, afterAction, page } = await performAdminLogin(browser);
|
||||||
await Promise.all([
|
await Promise.all([
|
||||||
|
@ -1001,6 +1001,8 @@ test.describe('Glossary tests', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
test('Request description task for Glossary', async ({ browser }) => {
|
test('Request description task for Glossary', async ({ browser }) => {
|
||||||
|
test.slow(true);
|
||||||
|
|
||||||
const { page, afterAction, apiContext } = await performAdminLogin(browser);
|
const { page, afterAction, apiContext } = await performAdminLogin(browser);
|
||||||
const glossary1 = new Glossary();
|
const glossary1 = new Glossary();
|
||||||
const user1 = new UserClass();
|
const user1 = new UserClass();
|
||||||
@ -1030,11 +1032,9 @@ test.describe('Glossary tests', () => {
|
|||||||
await sidebarClick(page, SidebarItem.GLOSSARY);
|
await sidebarClick(page, SidebarItem.GLOSSARY);
|
||||||
await selectActiveGlossary(page, glossary1.data.displayName);
|
await selectActiveGlossary(page, glossary1.data.displayName);
|
||||||
|
|
||||||
const viewerContainerText = await page.textContent(
|
await expect(
|
||||||
'[data-testid="viewer-container"]'
|
page.locator('[data-testid="viewer-container"]')
|
||||||
);
|
).toContainText('Updated description');
|
||||||
|
|
||||||
expect(viewerContainerText).toContain('Updated description');
|
|
||||||
} finally {
|
} finally {
|
||||||
await glossary1.delete(apiContext);
|
await glossary1.delete(apiContext);
|
||||||
await afterAction();
|
await afterAction();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user