mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-08-30 20:06:19 +00:00
chore(test): ingestion playwright flakiness (#18051)
This commit is contained in:
parent
2260857f10
commit
2a06f602e8
@ -125,14 +125,8 @@ class MysqlIngestionClass extends ServiceBaseClass {
|
||||
)
|
||||
.then((res) => res.json());
|
||||
|
||||
// Re-deploy before running the ingestion
|
||||
await page.click(
|
||||
`[data-row-key*="${response.data[0].name}"] [data-testid="more-actions"]`
|
||||
);
|
||||
await page.getByTestId('re-deploy-button').click();
|
||||
|
||||
// need manual wait to settle down the deployed pipeline, before triggering the pipeline
|
||||
await page.waitForTimeout(2000);
|
||||
await page.waitForTimeout(3000);
|
||||
|
||||
await page.click(
|
||||
`[data-row-key*="${response.data[0].name}"] [data-testid="more-actions"]`
|
||||
@ -141,6 +135,9 @@ class MysqlIngestionClass extends ServiceBaseClass {
|
||||
|
||||
await toastNotification(page, `Pipeline triggered successfully!`);
|
||||
|
||||
// need manual wait to make sure we are awaiting on latest run results
|
||||
await page.waitForTimeout(2000);
|
||||
|
||||
await this.handleIngestionRetry('profiler', page);
|
||||
});
|
||||
|
||||
|
@ -131,14 +131,8 @@ class PostgresIngestionClass extends ServiceBaseClass {
|
||||
)
|
||||
.then((res) => res.json());
|
||||
|
||||
// Re-deploy before running the ingestion
|
||||
await page.click(
|
||||
`[data-row-key*="${response.data[0].name}"] [data-testid="more-actions"]`
|
||||
);
|
||||
await page.getByTestId('re-deploy-button').click();
|
||||
|
||||
// need manual wait to settle down the deployed pipeline, before triggering the pipeline
|
||||
await page.waitForTimeout(2000);
|
||||
await page.waitForTimeout(3000);
|
||||
await page.click(
|
||||
`[data-row-key*="${response.data[0].name}"] [data-testid="more-actions"]`
|
||||
);
|
||||
@ -147,6 +141,9 @@ class PostgresIngestionClass extends ServiceBaseClass {
|
||||
|
||||
await toastNotification(page, `Pipeline triggered successfully!`);
|
||||
|
||||
// need manual wait to make sure we are awaiting on latest run results
|
||||
await page.waitForTimeout(2000);
|
||||
|
||||
await this.handleIngestionRetry('usage', page);
|
||||
});
|
||||
|
||||
|
@ -153,14 +153,8 @@ class RedshiftWithDBTIngestionClass extends ServiceBaseClass {
|
||||
)
|
||||
.then((res) => res.json());
|
||||
|
||||
// Re-deploy before running the ingestion
|
||||
await page.click(
|
||||
`[data-row-key*="${response.data[0].name}"] [data-testid="more-actions"]`
|
||||
);
|
||||
await page.getByTestId('re-deploy-button').click();
|
||||
|
||||
// need manual wait to settle down the deployed pipeline, before triggering the pipeline
|
||||
await page.waitForTimeout(2000);
|
||||
await page.waitForTimeout(3000);
|
||||
await page.click(
|
||||
`[data-row-key*="${response.data[0].name}"] [data-testid="more-actions"]`
|
||||
);
|
||||
@ -168,6 +162,9 @@ class RedshiftWithDBTIngestionClass extends ServiceBaseClass {
|
||||
|
||||
await toastNotification(page, `Pipeline triggered successfully!`);
|
||||
|
||||
// need manual wait to make sure we are awaiting on latest run results
|
||||
await page.waitForTimeout(2000);
|
||||
|
||||
await this.handleIngestionRetry('dbt', page);
|
||||
});
|
||||
|
||||
|
@ -177,18 +177,17 @@ class ServiceBaseClass {
|
||||
.getByTestId('loader')
|
||||
.waitFor({ state: 'detached' });
|
||||
|
||||
// Re-deploy before running the ingestion
|
||||
await page.getByTestId('more-actions').first().click();
|
||||
await page.getByTestId('re-deploy-button').click();
|
||||
|
||||
// need manual wait to settle down the deployed pipeline, before triggering the pipeline
|
||||
await page.waitForTimeout(2000);
|
||||
await page.waitForTimeout(3000);
|
||||
|
||||
await page.getByTestId('more-actions').first().click();
|
||||
await page.getByTestId('run-button').click();
|
||||
|
||||
await toastNotification(page, `Pipeline triggered successfully!`);
|
||||
|
||||
// need manual wait to make sure we are awaiting on latest run results
|
||||
await page.waitForTimeout(2000);
|
||||
|
||||
await this.handleIngestionRetry('metadata', page);
|
||||
}
|
||||
|
||||
@ -444,18 +443,17 @@ class ServiceBaseClass {
|
||||
.getByRole('cell', { name: 'Pause Logs' })
|
||||
.waitFor({ state: 'visible' });
|
||||
|
||||
// Re-deploy before running the ingestion
|
||||
await page.getByTestId('more-actions').first().click();
|
||||
await page.getByTestId('re-deploy-button').click();
|
||||
|
||||
// need manual wait to settle down the deployed pipeline, before triggering the pipeline
|
||||
await page.waitForTimeout(2000);
|
||||
await page.waitForTimeout(3000);
|
||||
|
||||
await page.getByTestId('more-actions').first().click();
|
||||
await page.getByTestId('run-button').click();
|
||||
|
||||
await toastNotification(page, `Pipeline triggered successfully!`);
|
||||
|
||||
// need manual wait to make sure we are awaiting on latest run results
|
||||
await page.waitForTimeout(2000);
|
||||
|
||||
// Wait for success
|
||||
await this.handleIngestionRetry('metadata', page);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user