Browse Source

fix: cypress test for editor acl

Signed-off-by: Wing-Kam Wong <wingkwong.code@gmail.com>
pull/1823/head
Wing-Kam Wong 2 years ago
parent
commit
62cbf6b5b7
  1. 5
      scripts/cypress/integration/spec/roleValidation.spec.js

5
scripts/cypress/integration/spec/roleValidation.spec.js

@ -215,6 +215,7 @@ export function _editComment(roleType, previewMode) {
export function _viewMenu(roleType, previewMode) {
let columnName = "City";
let navDrawListCnt = 1;
// Download CSV
let actionsMenuItemsCnt = 1;
cy.openTableTab(columnName, 25);
@ -231,7 +232,11 @@ export function _viewMenu(roleType, previewMode) {
// Owner, Creator will have two navigation drawer (on each side of center panel)
if (roleType == "owner" || roleType == "creator") {
navDrawListCnt = 2;
// Download CSV / Upload CSV / Shared View List / Webhook
actionsMenuItemsCnt = 4;
} else if (roleType == "editor") {
// Download CSV / Upload CSV
actionsMenuItemsCnt = 2;
}
cy.get(".v-navigation-drawer__content")

Loading…
Cancel
Save