Increase the test timeout for advanced search playwright tests to avoid AUT flakiness (#19555)

This commit is contained in:
Aniket Katkar 2025-01-28 15:29:45 +05:30 committed by GitHub
parent 58d5988a16
commit cb9b5d4a62
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -26,6 +26,11 @@ import { createNewPage, redirectToHomePage } from '../../utils/common';
import { addMultiOwner, assignTag, assignTier } from '../../utils/entity';
import { sidebarClick } from '../../utils/sidebar';
test.describe.configure({
// 4 minutes to avoid test timeout happening some times in AUTs
timeout: 4 * 60 * 1000,
});
test.describe('Advanced Search', { tag: '@advanced-search' }, () => {
// use the admin user to login
test.use({ storageState: 'playwright/.auth/admin.json' });
@ -42,8 +47,6 @@ test.describe('Advanced Search', { tag: '@advanced-search' }, () => {
let searchCriteria: Record<string, any> = {};
test.beforeAll('Setup pre-requests', async ({ browser }) => {
test.setTimeout(150000);
const { page, apiContext, afterAction } = await createNewPage(browser);
await Promise.all([
user1.create(apiContext),