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:
Ashish Gupta 2025-09-11 02:24:56 +05:30 committed by GitHub
parent 673da282c3
commit d71843f133
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 12 additions and 1 deletions

View File

@ -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,

View File

@ -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();