mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-11-10 15:59:57 +00:00
chore(ui): playwright fixes (#23048)
* fix playwright issues in CI * update timeout * update timeouts
This commit is contained in:
parent
668cf42673
commit
7ad16f5623
@ -1601,8 +1601,6 @@ test.describe('Glossary tests', () => {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
await glossary.create(apiContext);
|
await glossary.create(apiContext);
|
||||||
await glossaryTerm.create(apiContext);
|
|
||||||
|
|
||||||
await glossary.patch(apiContext, [
|
await glossary.patch(apiContext, [
|
||||||
{
|
{
|
||||||
op: 'add',
|
op: 'add',
|
||||||
@ -1617,6 +1615,8 @@ test.describe('Glossary tests', () => {
|
|||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
await glossaryTerm.create(apiContext);
|
||||||
|
|
||||||
await test.step(
|
await test.step(
|
||||||
'Navigate to glossary and verify workflow widget',
|
'Navigate to glossary and verify workflow widget',
|
||||||
async () => {
|
async () => {
|
||||||
|
|||||||
@ -172,6 +172,8 @@ export const selectDataProductFromTab = async (
|
|||||||
|
|
||||||
await dpRes;
|
await dpRes;
|
||||||
|
|
||||||
|
await page.waitForSelector('[data-testid="loader"]', { state: 'detached' });
|
||||||
|
|
||||||
const dpDataRes = page.waitForResponse('/api/v1/dataProducts/name/*');
|
const dpDataRes = page.waitForResponse('/api/v1/dataProducts/name/*');
|
||||||
|
|
||||||
await page
|
await page
|
||||||
|
|||||||
@ -76,11 +76,10 @@ export const selectActiveGlossary = async (
|
|||||||
} else {
|
} else {
|
||||||
await menuItem.click();
|
await menuItem.click();
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
await page.waitForSelector('[data-testid="loader"]', {
|
|
||||||
state: 'detached',
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
await page.waitForSelector('[data-testid="loader"]', {
|
||||||
|
state: 'detached',
|
||||||
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
export const selectActiveGlossaryTerm = async (
|
export const selectActiveGlossaryTerm = async (
|
||||||
@ -553,8 +552,8 @@ export const verifyWorkflowInstanceExists = async (
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
message: 'To verify workflow instance exists',
|
message: 'To verify workflow instance exists',
|
||||||
timeout: 180_000,
|
timeout: 200_000,
|
||||||
intervals: [40_000, 30_000],
|
intervals: [50_000],
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
.toBe(true);
|
.toBe(true);
|
||||||
@ -564,7 +563,6 @@ export const verifyGlossaryWorkflowReviewerCase = async (
|
|||||||
page: Page,
|
page: Page,
|
||||||
glossaryTermFqn: string
|
glossaryTermFqn: string
|
||||||
) => {
|
) => {
|
||||||
await page.getByTestId('workflow-history-widget').click();
|
|
||||||
const { apiContext } = await getApiContext(page);
|
const { apiContext } = await getApiContext(page);
|
||||||
const entityLink = encodeURIComponent(
|
const entityLink = encodeURIComponent(
|
||||||
`<#E::glossaryTerm::${glossaryTermFqn}>`
|
`<#E::glossaryTerm::${glossaryTermFqn}>`
|
||||||
@ -602,8 +600,8 @@ export const verifyGlossaryWorkflowReviewerCase = async (
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
message: 'To verify workflow instance exists',
|
message: 'To verify workflow instance exists',
|
||||||
timeout: 180_000,
|
timeout: 200_000,
|
||||||
intervals: [40_000, 30_000],
|
intervals: [50_000],
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
.toEqual('Auto-Approved by Reviewer');
|
.toEqual('Auto-Approved by Reviewer');
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user