Browse Source

(test) cypress: enable editor mode schema validation checks

Signed-off-by: Raju Udava <sivadstala@gmail.com>
pull/769/head
Raju Udava 3 years ago
parent
commit
69db59cd0d
  1. 11
      scripts/cypress/integration/common/5a_user_role.js

11
scripts/cypress/integration/common/5a_user_role.js

@ -68,10 +68,10 @@ export const genTest = (type, xcdb) => {
// Test suite
const errHndl = (err, runnable, done) => {
expect(err.message).to.include('Not allowed')
done()
return false
}
expect(err.message).to.include('Not allowed')
done()
return false
}
it(`[${roles[roleType].name}] Left navigation menu, New User add`, (done) => {
cy.on('uncaught:exception', (err, runnable) => errHndl(err, runnable, done))
@ -109,8 +109,7 @@ export const genTest = (type, xcdb) => {
// Table data related validations
// - Add/delete/modify row
//
if (roleType != 'editor')
_editData(roleType, false)
_editData(roleType, false)
cy.wait(2000).then(() => {
done()

Loading…
Cancel
Save