-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0b398bf
commit 376597d
Showing
4 changed files
with
49 additions
and
34 deletions.
There are no files selected for viewing
28 changes: 0 additions & 28 deletions
28
cypress/e2e/eureka/settings/settings-permission-sets-absent.cy.js
This file was deleted.
Oops, something went wrong.
43 changes: 43 additions & 0 deletions
43
cypress/e2e/eureka/settings/settings-permission-tabs-absent.cy.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
import SettingsPane from '../../../support/fragments/settings/settingsPane'; | ||
import TopMenu from '../../../support/fragments/topMenu'; | ||
|
||
describe('Eureka', () => { | ||
describe('Settings', () => { | ||
const usersSubTabsPresent = ['Patron groups', 'Owners', 'Conditions']; | ||
const permissionSetsSubTab = 'Permission sets'; | ||
const usersTabName = 'Users'; | ||
const developerTabName = 'Developer'; | ||
const developerSubTabsPresent = [ | ||
'Configuration', | ||
'I can haz capabilities?', | ||
'Stripes inspector', | ||
]; | ||
const developerSubTabsAbsent = ['I can haz endpoint?', 'Permissions inspector']; | ||
|
||
before(() => { | ||
cy.loginAsAdmin({ | ||
path: TopMenu.settingsUserPath, | ||
waiter: SettingsPane.waitLoading, | ||
}); | ||
}); | ||
|
||
it( | ||
'C633353 [UID-151] "Permissions" tabs are not shown in Settings > Users, Settings > Developer (eureka)', | ||
{ tags: ['smoke', 'eureka', 'eurekaPhase1', 'C633353'] }, | ||
() => { | ||
usersSubTabsPresent.forEach((presentSubTab) => { | ||
SettingsPane.checkTabPresentInSecondPane(usersTabName, presentSubTab); | ||
}); | ||
SettingsPane.checkTabPresentInSecondPane(usersTabName, permissionSetsSubTab, false); | ||
|
||
SettingsPane.selectSettingsTab(developerTabName); | ||
developerSubTabsPresent.forEach((presentSubTab) => { | ||
SettingsPane.checkTabPresentInSecondPane(developerTabName, presentSubTab); | ||
}); | ||
developerSubTabsAbsent.forEach((absentSubTab) => { | ||
SettingsPane.checkTabPresentInSecondPane(developerTabName, absentSubTab, false); | ||
}); | ||
}, | ||
); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters