mirror of
https://github.com/andwati/zitadel.git
synced 2026-11-22 04:48:46 +00:00
* new console * move npm ci to angular build * rel path for assets * local grpc copy * login policy, rm clear views, features rel path * lock Co-authored-by: Livio Amstutz <[email protected]>
46 lines
1.5 KiB
TypeScript
46 lines
1.5 KiB
TypeScript
import { apiAuth } from "../../support/api/apiauth";
|
|
import { ensureHumanUserExists } from "../../support/api/users";
|
|
import { login, User } from "../../support/login/users";
|
|
|
|
describe("login policy", ()=> {
|
|
|
|
const orgPath = `${Cypress.env('consoleUrl')}/org`
|
|
|
|
;[User.OrgOwner].forEach(user => {
|
|
|
|
describe(`as user "${user}"`, () => {
|
|
|
|
beforeEach(()=> {
|
|
login(user)
|
|
cy.visit(orgPath)
|
|
// TODO: Why force?
|
|
cy.contains('[data-e2e=policy-card]', 'Login Policy').contains('button', 'Modify').click({force: true}) // TODO: select data-e2e
|
|
apiAuth().then(api => {
|
|
ensureHumanUserExists(api, User.LoginPolicyUser)
|
|
})
|
|
})
|
|
|
|
// TODO: verify email
|
|
|
|
it.skip(`username and password disallowed`, () => {
|
|
login(User.LoginPolicyUser, "123abcABC?&*")
|
|
})
|
|
it(`registering is allowed`)
|
|
it(`registering is disallowed`)
|
|
it(`login by an external IDP is allowed`)
|
|
it(`login by an external IDP is disallowed`)
|
|
it(`MFA is forced`)
|
|
it(`MFA is not forced`)
|
|
it(`the password reset option is hidden`)
|
|
it(`the password reset option is shown`)
|
|
it(`passwordless login is allowed`)
|
|
it(`passwordless login is disallowed`)
|
|
describe('identity providers', () => {
|
|
|
|
})
|
|
})
|
|
})
|
|
})
|
|
|
|
|