Browse Source

feat(nc-gui): Integrated menuWithoutSubmenuCount in the case of Shared base in roleValidation test

pull/3612/head
Muhammed Mustafa 2 years ago
parent
commit
8aab03565d
  1. 3
      scripts/cypress/integration/spec/roleValidation.spec.js

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

@ -267,7 +267,8 @@ export function _viewMenu(roleType, mode) {
menuWithSubmenuCount = 2; menuWithSubmenuCount = 2;
// Get API Snippet and ERD // Get API Snippet and ERD
menuWithoutSubmenuCount = 2 menuWithoutSubmenuCount = 2
if(mode === 'baseShare') menuWithoutSubmenuCount = 0 // ERD
if(mode === 'baseShare') menuWithoutSubmenuCount = 1
} else if (roleType === "commenter" || roleType === "viewer") { } else if (roleType === "commenter" || roleType === "viewer") {
// Download CSV & Download excel // Download CSV & Download excel
menuWithSubmenuCount = 0; menuWithSubmenuCount = 0;

Loading…
Cancel
Save