-
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
a46fcec
commit 533cd31
Showing
2 changed files
with
45 additions
and
0 deletions.
There are no files selected for viewing
40 changes: 40 additions & 0 deletions
40
...tings/orders/user-without-permission-is-not-able-to-edit-routing-list-configuration.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,40 @@ | ||
import permissions from '../../../support/dictionary/permissions'; | ||
import ListConfiguration from '../../../support/fragments/settings/orders/listConfiguration'; | ||
import SettingsMenu from '../../../support/fragments/settingsMenu'; | ||
import Users from '../../../support/fragments/users/users'; | ||
|
||
Cypress.on('uncaught:exception', () => false); | ||
|
||
describe('orders: Settings', () => { | ||
let user; | ||
|
||
before(() => { | ||
cy.getAdminToken(); | ||
|
||
cy.createTempUser([permissions.uiSettingsOrdersCanViewAllSettings.gui]).then( | ||
(userProperties) => { | ||
user = userProperties; | ||
cy.login(user.username, user.password, { | ||
path: SettingsMenu.ordersListConfigurationPath, | ||
waiter: ListConfiguration.waitLoading, | ||
}); | ||
}, | ||
); | ||
}); | ||
|
||
after(() => { | ||
cy.getAdminToken(); | ||
Users.deleteViaApi(user.userId); | ||
}); | ||
|
||
it( | ||
'C466273 A user without " Settings (Orders): Can view and edit all settings" permission is not able to edit routing list configuration (thunderjet)', | ||
{ tags: ['criticalPath', 'thunderjet'] }, | ||
() => { | ||
ListConfiguration.editIsDisabled(); | ||
ListConfiguration.preview(); | ||
ListConfiguration.closePreviewModal(); | ||
ListConfiguration.editIsDisabled(); | ||
}, | ||
); | ||
}); |
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