Browse Source

fix(nc-gui): pw test fail issue

pull/8192/head
Ramesh Mane 7 months ago
parent
commit
115513a762
  1. 5
      packages/nc-gui/composables/useMultiSelect/index.ts
  2. 4
      tests/playwright/pages/Dashboard/WebhookForm/index.ts

5
packages/nc-gui/composables/useMultiSelect/index.ts

@ -767,6 +767,11 @@ export function useMultiSelect(
// Handle escape
if (e.key === 'Escape') {
selectedRange.clear()
if (selectedRange.isSingleCell()) return
activeCell.col = null
activeCell.row = null
}
if (unref(editEnabled) || e.ctrlKey || e.altKey || e.metaKey) {

4
tests/playwright/pages/Dashboard/WebhookForm/index.ts

@ -150,11 +150,11 @@ export class WebhookFormPage extends BasePage {
await this.get().locator(`.ant-tabs-tab-btn:has-text("Headers")`).click();
await this.rootPage.waitForTimeout(500);
await this.get().locator('.nc-input-hook-header-key').click();
await this.get().locator('.nc-input-hook-header-key input').click();
await this.rootPage.waitForTimeout(500);
// kludge, as the dropdown is not visible even after scroll into view
await this.rootPage.locator('.nc-input-hook-header-key').pressSequentially(key);
await this.rootPage.locator('.nc-input-hook-header-key input').pressSequentially(key);
await this.rootPage
.locator('.ant-select-dropdown:visible')
.locator(`.ant-select-item:has-text("${key}")`)

Loading…
Cancel
Save