mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-11-03 20:19:31 +00:00
cypress: fix AUT flakiness part 7 (#16348)
This commit is contained in:
parent
38bdcc4112
commit
8c3a02481e
@ -20,6 +20,11 @@ export const checkDataInsightSuccessStatus = (
|
||||
count = 1,
|
||||
timer = BASE_WAIT_TIME
|
||||
) => {
|
||||
interceptURL(
|
||||
'GET',
|
||||
'/api/v1/apps/name/DataInsightsApplication/status?*',
|
||||
'getAppStatus'
|
||||
);
|
||||
cy.get('[data-testid="app-run-history-table"]')
|
||||
.find('[data-testid="pipeline-status"]')
|
||||
.first()
|
||||
@ -35,6 +40,7 @@ export const checkDataInsightSuccessStatus = (
|
||||
cy.wait(timer);
|
||||
timer *= 2;
|
||||
cy.reload();
|
||||
verifyResponseStatusCode('@getAppStatus', 200);
|
||||
checkDataInsightSuccessStatus(++count, timer * 2);
|
||||
} else {
|
||||
if ($ingestionStatus.text() !== 'Success') {
|
||||
|
||||
@ -12,6 +12,7 @@
|
||||
*/
|
||||
import { SERVICE_TYPE } from '../../constants/constants';
|
||||
import { EntityType } from '../../constants/Entity.interface';
|
||||
import { POSTGRES } from '../../constants/service.constants';
|
||||
import {
|
||||
checkServiceFieldSectionHighlighting,
|
||||
interceptURL,
|
||||
@ -29,7 +30,12 @@ class PostgresIngestionClass extends ServiceBaseClass {
|
||||
queryLogFilePath: string;
|
||||
|
||||
constructor() {
|
||||
super(Services.Database, 'cypress-Postgres', 'Postgres', 'order_items');
|
||||
super(
|
||||
Services.Database,
|
||||
POSTGRES.serviceName,
|
||||
POSTGRES.serviceType,
|
||||
POSTGRES.tableName
|
||||
);
|
||||
|
||||
this.filterPattern = 'sales';
|
||||
this.queryLogFilePath =
|
||||
|
||||
@ -33,6 +33,12 @@ export const REDSHIFT = {
|
||||
description: `This is Redshift-ct-test-${uniqueID} description`,
|
||||
};
|
||||
|
||||
export const POSTGRES = {
|
||||
serviceType: 'Postgres',
|
||||
serviceName: `cy-postgres-test-${uniqueID}`,
|
||||
tableName: 'order_items',
|
||||
};
|
||||
|
||||
export const MYSQL = {
|
||||
serviceType: 'Mysql',
|
||||
serviceName: `mysql-ct-test-${uniqueID}`,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user