mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-07 07:16:54 +00:00
* fix(console, e2e): static data-e2e attributes, consistent naming * quote cypress attribute selectors * Update console/src/app/modules/policies/private-labeling-policy/private-labeling-policy.component.html Co-authored-by: Elio Bischof <eliobischof@gmail.com> * Update console/src/app/modules/project-roles-table/project-roles-table.component.html Co-authored-by: Elio Bischof <eliobischof@gmail.com> * fix , Co-authored-by: Elio Bischof <eliobischof@gmail.com>
35 lines
1.5 KiB
TypeScript
35 lines
1.5 KiB
TypeScript
import { login, User } from "../../support/login/users";
|
|
|
|
describe("password complexity", ()=> {
|
|
|
|
const orgPath = `/ui/console/org`
|
|
const testProjectName = 'e2eproject'
|
|
|
|
;[User.OrgOwner].forEach(user => {
|
|
|
|
describe(`as user "${user}"`, () => {
|
|
|
|
beforeEach(()=> {
|
|
login(user)
|
|
cy.visit(orgPath)
|
|
// TODO: Why force?
|
|
cy.contains('[data-e2e="policy-card"]', 'Password Complexity').contains('button', 'Modify').click({force: true}) // TODO: select data-e2e
|
|
})
|
|
|
|
// TODO: fix saving password complexity policy bug
|
|
|
|
it(`should restrict passwords that don't have the minimal length`)
|
|
it(`should require passwords to contain a number if option is switched on`)
|
|
it(`should not require passwords to contain a number if option is switched off`)
|
|
it(`should require passwords to contain a symbol if option is switched on`)
|
|
it(`should not require passwords to contain a symbol if option is switched off`)
|
|
it(`should require passwords to contain a lowercase letter if option is switched on`)
|
|
it(`should not require passwords to contain a lowercase letter if option is switched off`)
|
|
it(`should require passwords to contain an uppercase letter if option is switched on`)
|
|
it(`should not require passwords to contain an uppercase letter if option is switched off`)
|
|
})
|
|
})
|
|
})
|
|
|
|
|