mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-09-30 11:26:23 +00:00
PLAYWRIGHT : fix the DataContract and IngestionBot playwright flaky test (#23321)
* fix the DataContract playwright flaky test * fix the ingestionBot flayness
This commit is contained in:
parent
673da282c3
commit
d71843f133
@ -158,6 +158,7 @@ test.describe('Ingestion Bot ', () => {
|
||||
// Add assets to domain 1
|
||||
await redirectToHomePage(page);
|
||||
await sidebarClick(page, SidebarItem.DOMAIN);
|
||||
await page.waitForLoadState('networkidle');
|
||||
await selectDomain(page, domain1.data);
|
||||
await addServicesToDomain(page, domain1.data, [
|
||||
domainAsset1[0].get().service,
|
||||
@ -166,6 +167,7 @@ test.describe('Ingestion Bot ', () => {
|
||||
// Add assets to domain 2
|
||||
await redirectToHomePage(page);
|
||||
await sidebarClick(page, SidebarItem.DOMAIN);
|
||||
await page.waitForLoadState('networkidle');
|
||||
await selectDomain(page, domain2.data);
|
||||
await addServicesToDomain(page, domain2.data, [
|
||||
domainAsset2[0].get().service,
|
||||
|
@ -10,7 +10,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
import { test as base, expect, Page } from '@playwright/test';
|
||||
import { expect, Page, test as base } from '@playwright/test';
|
||||
import {
|
||||
DATA_CONTRACT_CONTAIN_SEMANTICS,
|
||||
DATA_CONTRACT_DETAILS,
|
||||
@ -481,8 +481,17 @@ test.describe('Data Contracts', () => {
|
||||
|
||||
await page.getByTestId('contract-edit-button').click();
|
||||
|
||||
const qualityResponse = page.waitForResponse(
|
||||
'/api/v1/dataQuality/testCases/search/list**'
|
||||
);
|
||||
|
||||
await page.getByRole('tab', { name: 'Quality' }).click();
|
||||
|
||||
await qualityResponse;
|
||||
await page.waitForSelector('[data-testid="loader"]', {
|
||||
state: 'detached',
|
||||
});
|
||||
|
||||
await page
|
||||
.locator('input[type="checkbox"][aria-label="Select all"]')
|
||||
.uncheck();
|
||||
|
Loading…
x
Reference in New Issue
Block a user