fix flaky metric and bulk import issue around range selector (#22582)

This commit is contained in:
Ashish Gupta 2025-07-25 17:48:52 +05:30 committed by GitHub
parent 721bd77478
commit 4e3740bbad
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 9 additions and 1 deletions

View File

@ -56,7 +56,6 @@ export default defineConfig({
trace: 'on-first-retry',
/* Screenshot on failure. */
screenshot: 'only-on-failure',
permissions: ['clipboard-read', 'clipboard-write'],
},
/* Configure projects for major browsers */

View File

@ -45,6 +45,9 @@ import {
// use the admin user to login
test.use({
storageState: 'playwright/.auth/admin.json',
contextOptions: {
permissions: ['clipboard-read', 'clipboard-write'],
},
});
const glossaryDetails = {

View File

@ -228,6 +228,9 @@ export const setValueForProperty = async (data: {
const values = value.split(',');
await page.locator('[data-testid="add-new-row"]').click();
// Editor grid to be visible
await page.waitForSelector('.om-rdg', { state: 'visible' });
await fillTableColumnInputDetails(page, values[0], 'pw-column1');
await fillTableColumnInputDetails(page, values[1], 'pw-column2');

View File

@ -188,6 +188,9 @@ export const updateRelatedMetric = async (
.getByRole('link', { name: dataAsset.entity.name, exact: true })
.click();
await page.waitForLoadState('networkidle');
await page.waitForSelector('[data-testid="loader"]', { state: 'detached' });
await page.getByRole('link', { name: title }).click();
};