chore(ui): playwright fixes (#23048)

* fix playwright issues in CI

* update timeout

* update timeouts
This commit is contained in:
Karan Hotchandani 2025-08-22 15:58:21 +05:30 committed by GitHub
parent 668cf42673
commit 7ad16f5623
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 11 additions and 11 deletions

View File

@ -1601,8 +1601,6 @@ test.describe('Glossary tests', () => {
try {
await glossary.create(apiContext);
await glossaryTerm.create(apiContext);
await glossary.patch(apiContext, [
{
op: 'add',
@ -1617,6 +1615,8 @@ test.describe('Glossary tests', () => {
},
]);
await glossaryTerm.create(apiContext);
await test.step(
'Navigate to glossary and verify workflow widget',
async () => {

View File

@ -172,6 +172,8 @@ export const selectDataProductFromTab = async (
await dpRes;
await page.waitForSelector('[data-testid="loader"]', { state: 'detached' });
const dpDataRes = page.waitForResponse('/api/v1/dataProducts/name/*');
await page

View File

@ -76,11 +76,10 @@ export const selectActiveGlossary = async (
} else {
await menuItem.click();
}
} else {
await page.waitForSelector('[data-testid="loader"]', {
state: 'detached',
});
}
await page.waitForSelector('[data-testid="loader"]', {
state: 'detached',
});
};
export const selectActiveGlossaryTerm = async (
@ -553,8 +552,8 @@ export const verifyWorkflowInstanceExists = async (
},
{
message: 'To verify workflow instance exists',
timeout: 180_000,
intervals: [40_000, 30_000],
timeout: 200_000,
intervals: [50_000],
}
)
.toBe(true);
@ -564,7 +563,6 @@ export const verifyGlossaryWorkflowReviewerCase = async (
page: Page,
glossaryTermFqn: string
) => {
await page.getByTestId('workflow-history-widget').click();
const { apiContext } = await getApiContext(page);
const entityLink = encodeURIComponent(
`<#E::glossaryTerm::${glossaryTermFqn}>`
@ -602,8 +600,8 @@ export const verifyGlossaryWorkflowReviewerCase = async (
},
{
message: 'To verify workflow instance exists',
timeout: 180_000,
intervals: [40_000, 30_000],
timeout: 200_000,
intervals: [50_000],
}
)
.toEqual('Auto-Approved by Reviewer');