Browse Source

Merge pull request #6394 from nocodb/test/context-menu-sync

test: context menu import fix
pull/6415/head
Raju Udava 1 year ago committed by GitHub
parent
commit
bc1f29b2ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      packages/nc-gui/components/dashboard/TreeView/BaseOptions.vue
  2. 2
      tests/playwright/pages/Dashboard/TreeView.ts

2
packages/nc-gui/components/dashboard/TreeView/BaseOptions.vue

@ -62,7 +62,7 @@ function openQuickImportDialog(type: string) {
<template #title>
<GeneralIcon icon="download" />
{{ $t('title.quickImportFrom') }}
{{ $t('labels.importData') }}
</template>
<template #expandIcon></template>

2
tests/playwright/pages/Dashboard/TreeView.ts

@ -218,7 +218,7 @@ export class TreeViewPage extends BasePage {
await this.getProjectContextMenu({ projectTitle }).hover();
await this.getProjectContextMenu({ projectTitle }).click();
const importMenu = this.dashboard.get().locator('.ant-dropdown-menu');
await importMenu.locator(`.nc-sub-menu:has-text("Quick Import From")`).click();
await importMenu.locator(`.nc-sub-menu:has-text("Import Data")`).click();
await this.rootPage.locator(`.ant-dropdown-menu-item:has-text("${title}")`).waitFor();
await this.rootPage.locator(`.ant-dropdown-menu-item:has-text("${title}")`).click();
}

Loading…
Cancel
Save