playwright: fixed aut failure in playwright (#18958)

* playwright: fixed aut failure in playwright

* Temporarily increased the timeout for lineage tests which timeout often

* Fix the flaky tests

* removing linage changes

---------

Co-authored-by: Aniket Katkar <aniketkatkar97@gmail.com>
This commit is contained in:
Shailesh Parmar 2024-12-09 18:03:13 +05:30 committed by GitHub
parent 9ae8e66e34
commit 7d7bc5b48b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 6 additions and 5 deletions

View File

@ -275,6 +275,8 @@ test.describe('Domains Rbac', () => {
const user1 = new UserClass();
test.beforeAll('Setup pre-requests', async ({ browser }) => {
test.setTimeout(90000);
const { apiContext, afterAction, page } = await performAdminLogin(browser);
await Promise.all([
domain1.create(apiContext),

View File

@ -398,7 +398,7 @@ test('Verify function data in edge drawer', async ({ browser }) => {
});
test('Verify global lineage config', async ({ browser }) => {
test.slow();
test.slow(true);
const { page } = await createNewPage(browser);
const { apiContext, afterAction } = await getApiContext(page);

View File

@ -292,7 +292,7 @@ class ServiceBaseClass {
{
// Custom expect message for reporting, optional.
message: 'Wait for pipeline to be successful',
timeout: 650_000,
timeout: 750_000,
intervals: [30_000, 15_000, 5_000],
}
)

View File

@ -123,7 +123,7 @@ export const triggerTestSuitePipelineAndWaitForSuccess = async (data: {
{
// Custom expect message for reporting, optional.
message: 'Wait for the pipeline to be successful',
timeout: 60_000,
timeout: 90_000,
intervals: [5_000, 10_000],
}
)

View File

@ -350,9 +350,8 @@ export const editTagPageDescription = async (page: Page, tag: TagClass) => {
};
export const verifyCertificationTagPageUI = async (page: Page) => {
await redirectToHomePage(page);
const res = page.waitForResponse(`/api/v1/tags/name/*`);
await visitClassificationPage(page, 'Certification');
const res = page.waitForResponse(`/api/v1/tags/name/*`);
await page.getByTestId('Gold').click();
await res;