playwright: fixed flakiness in incident manager test (#20057)

This commit is contained in:
Shailesh Parmar 2025-03-05 15:37:30 +05:30 committed by GitHub
parent 160b431091
commit 47d285abe5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -44,7 +44,7 @@ test.describe.configure({ mode: 'serial' });
test.describe('Incident Manager', PLAYWRIGHT_INGESTION_TAG_OBJ, () => {
test.beforeAll(async ({ browser }) => {
// 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);

View File

@ -226,13 +226,13 @@ export const resetTokenFromBotPage = async (
testId: string;
}
) => {
const settingClickResponse = page.waitForResponse('api/v1/bots?*');
await settingClick(page, GlobalSettingOptions.BOTS);
await settingClickResponse;
await page.getByTestId('searchbar').click();
await page.getByTestId('searchbar').fill(bot.name);
await expect(page.getByTestId(bot.testId)).toBeVisible();
await page.getByTestId(bot.testId).click();
await expect(page.getByTestId('revoke-button')).toBeVisible();