mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-11-06 21:43:37 +00:00
playwright: fixed flakiness in incident manager test (#20057)
This commit is contained in:
parent
160b431091
commit
47d285abe5
@ -44,7 +44,7 @@ test.describe.configure({ mode: 'serial' });
|
|||||||
test.describe('Incident Manager', PLAYWRIGHT_INGESTION_TAG_OBJ, () => {
|
test.describe('Incident Manager', PLAYWRIGHT_INGESTION_TAG_OBJ, () => {
|
||||||
test.beforeAll(async ({ browser }) => {
|
test.beforeAll(async ({ browser }) => {
|
||||||
// since we need to poll for the pipeline status, we need to increase the timeout
|
// since we need to poll for the pipeline status, we need to increase the timeout
|
||||||
test.setTimeout(90000);
|
test.slow();
|
||||||
|
|
||||||
const { afterAction, apiContext, page } = await createNewPage(browser);
|
const { afterAction, apiContext, page } = await createNewPage(browser);
|
||||||
|
|
||||||
|
|||||||
@ -226,13 +226,13 @@ export const resetTokenFromBotPage = async (
|
|||||||
testId: string;
|
testId: string;
|
||||||
}
|
}
|
||||||
) => {
|
) => {
|
||||||
|
const settingClickResponse = page.waitForResponse('api/v1/bots?*');
|
||||||
await settingClick(page, GlobalSettingOptions.BOTS);
|
await settingClick(page, GlobalSettingOptions.BOTS);
|
||||||
|
await settingClickResponse;
|
||||||
|
|
||||||
await page.getByTestId('searchbar').click();
|
await page.getByTestId('searchbar').click();
|
||||||
await page.getByTestId('searchbar').fill(bot.name);
|
await page.getByTestId('searchbar').fill(bot.name);
|
||||||
|
|
||||||
await expect(page.getByTestId(bot.testId)).toBeVisible();
|
|
||||||
|
|
||||||
await page.getByTestId(bot.testId).click();
|
await page.getByTestId(bot.testId).click();
|
||||||
|
|
||||||
await expect(page.getByTestId('revoke-button')).toBeVisible();
|
await expect(page.getByTestId('revoke-button')).toBeVisible();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user