mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-10-28 17:23:28 +00:00
Increase the test timeout for advanced search playwright tests to avoid AUT flakiness (#19555)
This commit is contained in:
parent
58d5988a16
commit
cb9b5d4a62
@ -26,6 +26,11 @@ import { createNewPage, redirectToHomePage } from '../../utils/common';
|
|||||||
import { addMultiOwner, assignTag, assignTier } from '../../utils/entity';
|
import { addMultiOwner, assignTag, assignTier } from '../../utils/entity';
|
||||||
import { sidebarClick } from '../../utils/sidebar';
|
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' }, () => {
|
test.describe('Advanced Search', { tag: '@advanced-search' }, () => {
|
||||||
// use the admin user to login
|
// use the admin user to login
|
||||||
test.use({ storageState: 'playwright/.auth/admin.json' });
|
test.use({ storageState: 'playwright/.auth/admin.json' });
|
||||||
@ -42,8 +47,6 @@ test.describe('Advanced Search', { tag: '@advanced-search' }, () => {
|
|||||||
let searchCriteria: Record<string, any> = {};
|
let searchCriteria: Record<string, any> = {};
|
||||||
|
|
||||||
test.beforeAll('Setup pre-requests', async ({ browser }) => {
|
test.beforeAll('Setup pre-requests', async ({ browser }) => {
|
||||||
test.setTimeout(150000);
|
|
||||||
|
|
||||||
const { page, apiContext, afterAction } = await createNewPage(browser);
|
const { page, apiContext, afterAction } = await createNewPage(browser);
|
||||||
await Promise.all([
|
await Promise.all([
|
||||||
user1.create(apiContext),
|
user1.create(apiContext),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user