Browse Source

test(cypress): enable UI acl menu

Signed-off-by: Raju Udava <sivadstala@gmail.com>
pull/872/head
Raju Udava 3 years ago
parent
commit
72f4a417d2
  1. 2
      packages/nc-gui/components/project/projectMetadata/disableOrEnableModels.vue
  2. 1
      scripts/cypress/integration/common/5a_user_role.js
  3. 1
      scripts/cypress/integration/common/5b_preview_role.js

2
packages/nc-gui/components/project/projectMetadata/disableOrEnableModels.vue

@ -5,7 +5,7 @@
<v-icon icon x-small class="mr-2"> <v-icon icon x-small class="mr-2">
mdi-file-table-box-multiple-outline mdi-file-table-box-multiple-outline
</v-icon> </v-icon>
<span class="caption text-capitalize"> Export/Import Metadata</span> <span class="caption text-capitalize nc-exp-imp-metadata"> Export/Import Metadata</span>
</v-tab> </v-tab>
<v-tab-item value="xc-project-meta"> <v-tab-item value="xc-project-meta">
<div class="d-flex justify-center d-100"> <div class="d-flex justify-center d-100">

1
scripts/cypress/integration/common/5a_user_role.js

@ -59,6 +59,7 @@ export const genTest = (type, xcdb) => {
// open Project metadata tab // open Project metadata tab
// //
mainPage.navigationDraw(mainPage.PROJ_METADATA).click(); mainPage.navigationDraw(mainPage.PROJ_METADATA).click();
cy.get(".nc-exp-imp-metadata").dblclick({ force: true });
cy.get(".nc-ui-acl-tab").click({ force: true }); cy.get(".nc-ui-acl-tab").click({ force: true });
// validate if it has 19 entries representing tables & views // validate if it has 19 entries representing tables & views

1
scripts/cypress/integration/common/5b_preview_role.js

@ -45,6 +45,7 @@ export const genTest = (type, xcdb, roleType) => {
// open Project metadata tab // open Project metadata tab
// //
mainPage.navigationDraw(mainPage.PROJ_METADATA).click(); mainPage.navigationDraw(mainPage.PROJ_METADATA).click();
cy.get(".nc-exp-imp-metadata").dblclick({ force: true });
cy.get(".nc-ui-acl-tab").click({ force: true }); cy.get(".nc-ui-acl-tab").click({ force: true });
// validate if it has 19 entries representing tables & views // validate if it has 19 entries representing tables & views

Loading…
Cancel
Save