From 62cbf6b5b7fb632af6ea63c3f4fc639e3fdaed4c Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Fri, 22 Apr 2022 12:58:58 +0800 Subject: [PATCH] fix: cypress test for editor acl Signed-off-by: Wing-Kam Wong --- scripts/cypress/integration/spec/roleValidation.spec.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/cypress/integration/spec/roleValidation.spec.js b/scripts/cypress/integration/spec/roleValidation.spec.js index dddaaee322..e4412d015e 100644 --- a/scripts/cypress/integration/spec/roleValidation.spec.js +++ b/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")