Browse Source

test: fix

pull/6424/head
DarkPhoenix2704 1 year ago
parent
commit
5d1a5d09e3
  1. 13
      tests/playwright/pages/Dashboard/common/Cell/index.ts

13
tests/playwright/pages/Dashboard/common/Cell/index.ts

@ -364,14 +364,21 @@ export class CellPageObject extends BasePage {
// For HM/MM columns // For HM/MM columns
else { else {
await cell.locator('.nc-datatype-link').click(); await cell.locator('.nc-datatype-link').click();
await this.rootPage
.locator(`[data-testid="nc-child-list-item"]`)
.last()
.waitFor({ state: 'visible', timeout: 3000 });
await this.waitForResponse({ await this.waitForResponse({
uiAction: async () => uiAction: async () =>
this.rootPage.locator(`[data-testid="nc-child-list-item"]`).last().click({ await this.rootPage
force: true, .locator(`[data-testid="nc-child-list-item"]`)
}), .last()
.click({ force: true, timeout: 3000 }),
requestUrlPathToMatch: '/api/v1/db/data/noco/', requestUrlPathToMatch: '/api/v1/db/data/noco/',
httpMethodsToMatch: ['GET'], httpMethodsToMatch: ['GET'],
}); });
await this.rootPage.keyboard.press('Escape'); await this.rootPage.keyboard.press('Escape');
} }
} }

Loading…
Cancel
Save