Browse Source

test: role validation to include api-snippet menu change

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
pull/3421/head
Raju Udava 2 years ago
parent
commit
e7fab0d189
  1. 5
      scripts/cypress-v2/integration/spec/roleValidation.spec.js

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

@ -211,7 +211,7 @@ export function _viewMenu(roleType, mode) {
let menuWithSubmenuCount = 3;
// share view list, webhook
let menuWithoutSubmenuCount = 2;
let menuWithoutSubmenuCount = 3;
cy.openTableTab(columnName, 25);
@ -228,7 +228,8 @@ export function _viewMenu(roleType, mode) {
if (roleType === "editor") {
// Download / Upload CSV
menuWithSubmenuCount = 2;
menuWithoutSubmenuCount = 0
// Get API Snippet
menuWithoutSubmenuCount = 1
} else if (roleType === "commenter" || roleType === "viewer") {
// Download CSV & Download excel
menuWithSubmenuCount = 0;

Loading…
Cancel
Save