Added login command for cypress and SSO protected pages

This commit is contained in:
2022-08-25 14:10:46 +02:00
parent e20fea679a
commit f76f91e667
9 changed files with 121 additions and 44 deletions

View File

@@ -13,4 +13,13 @@ export default defineConfig({
mochaFile: "dist-tests/test-results/cypress/[hash].xml",
outputs: true,
},
env: {
oidcUrl: "https://sso.mastermindzh.tech/realms/public-tests/protocol/openid-connect/token",
oidcClientId: "demo",
oidcClientSecret: "lhlPHFUd3fC1Ky0Uwyb2ssC0XiAFeGGF",
oidcGrantType: "client_credentials",
oidcScope: "openid profile email",
oidcToken: "",
oidcCallbackUrl: "http://localhost:3000/authentication/callback",
},
});