Update keycloak-js and re-enable logout tests (#2490)

This commit is contained in:
Erik Jan de Wit 2022-04-22 15:24:08 +02:00 committed by GitHub
parent 495c9e917d
commit d0e8be6f67
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 20 additions and 20 deletions

View file

@ -19,12 +19,12 @@ const logOutTest = () => {
const goToAcctMgtTest = () => { const goToAcctMgtTest = () => {
sidebarPage.waitForPageLoad(); sidebarPage.waitForPageLoad();
masthead.accountManagement(); masthead.accountManagement();
cy.contains("Welcome to Keycloak Account Management"); cy.get("h1").contains("Welcome to Keycloak account management");
cy.get("#landingReferrerLink").click({ force: true }); cy.get("#landingReferrerLink").click({ force: true });
masthead.checkIsAdminConsole(); masthead.checkIsAdminConsole();
}; };
describe.skip("Masthead tests in desktop mode", () => { describe("Masthead tests in desktop mode", () => {
beforeEach(() => { beforeEach(() => {
keycloakBefore(); keycloakBefore();
loginPage.logIn(); loginPage.logIn();
@ -48,7 +48,7 @@ describe.skip("Masthead tests in desktop mode", () => {
}); });
}); });
describe.skip("Masthead tests with kebab menu", () => { describe("Masthead tests with kebab menu", () => {
beforeEach(() => { beforeEach(() => {
keycloakBefore(); keycloakBefore();
loginPage.logIn(); loginPage.logIn();

View file

@ -30,7 +30,7 @@ describe("Sessions test", () => {
sessionsPage.checkNotBeforeCleared(); sessionsPage.checkNotBeforeCleared();
}); });
it.skip("logout all sessions", () => { it("logout all sessions", () => {
sessionsPage.logoutAllSessions(); sessionsPage.logoutAllSessions();
cy.get("#kc-page-title").contains("Sign in to your account"); cy.get("#kc-page-title").contains("Sign in to your account");

30
package-lock.json generated
View file

@ -7,7 +7,7 @@
"name": "keycloak-admin-ui", "name": "keycloak-admin-ui",
"license": "Apache", "license": "Apache",
"dependencies": { "dependencies": {
"@keycloak/keycloak-admin-client": "^18.0.0", "@keycloak/keycloak-admin-client": "^18.0.0-dev.22",
"@patternfly/patternfly": "^4.185.1", "@patternfly/patternfly": "^4.185.1",
"@patternfly/react-code-editor": "^4.43.16", "@patternfly/react-code-editor": "^4.43.16",
"@patternfly/react-core": "^4.202.16", "@patternfly/react-core": "^4.202.16",
@ -3448,13 +3448,13 @@
} }
}, },
"node_modules/@keycloak/keycloak-admin-client": { "node_modules/@keycloak/keycloak-admin-client": {
"version": "18.0.0", "version": "18.0.0-dev.22",
"resolved": "https://registry.npmjs.org/@keycloak/keycloak-admin-client/-/keycloak-admin-client-18.0.0.tgz", "resolved": "https://registry.npmjs.org/@keycloak/keycloak-admin-client/-/keycloak-admin-client-18.0.0-dev.22.tgz",
"integrity": "sha512-xKmuHAUitXhOZ8Pz3M95m0ZdYsxlZW38E6vBdh4gP8NFfuIl6kdAKvDRqd+QUIGo4TpCP6GOlw7+GTIF0NTwjw==", "integrity": "sha512-xWiZip5uzVoYkzJA3uJWqIKWy1krd9b9XgNzdhibw1uLbo9HGTzpdn8ViAXQrpgFxx5tgws0cTQrSduHHZsbFg==",
"dependencies": { "dependencies": {
"axios": "^0.26.1", "axios": "^0.26.1",
"camelize-ts": "^1.0.8", "camelize-ts": "^1.0.8",
"keycloak-js": "^17.0.1", "keycloak-js": "^18.0.0",
"lodash": "^4.17.21", "lodash": "^4.17.21",
"query-string": "^7.0.1", "query-string": "^7.0.1",
"url-join": "^4.0.0", "url-join": "^4.0.0",
@ -14538,9 +14538,9 @@
"dev": true "dev": true
}, },
"node_modules/keycloak-js": { "node_modules/keycloak-js": {
"version": "17.0.1", "version": "18.0.0",
"resolved": "https://registry.npmjs.org/keycloak-js/-/keycloak-js-17.0.1.tgz", "resolved": "https://registry.npmjs.org/keycloak-js/-/keycloak-js-18.0.0.tgz",
"integrity": "sha512-mbLBSoogCBX5VYeKCdEz8BaRWVL9twzSqArRU3Mo3Z7vEO1mghGZJ5IzREfiMEi7kTUZtk5i9mu+Yc0koGkK6g==", "integrity": "sha512-kaD6nrzgYX3NhgwQfVEZiAzaZXua3PSBIBWGWf8fgqPgUdiO8uvYaKV1Ebf43IAB5M8kvubW+2J+eBS+UnWsuw==",
"dependencies": { "dependencies": {
"base64-js": "^1.5.1", "base64-js": "^1.5.1",
"js-sha256": "^0.9.0" "js-sha256": "^0.9.0"
@ -24770,13 +24770,13 @@
} }
}, },
"@keycloak/keycloak-admin-client": { "@keycloak/keycloak-admin-client": {
"version": "18.0.0", "version": "18.0.0-dev.22",
"resolved": "https://registry.npmjs.org/@keycloak/keycloak-admin-client/-/keycloak-admin-client-18.0.0.tgz", "resolved": "https://registry.npmjs.org/@keycloak/keycloak-admin-client/-/keycloak-admin-client-18.0.0-dev.22.tgz",
"integrity": "sha512-xKmuHAUitXhOZ8Pz3M95m0ZdYsxlZW38E6vBdh4gP8NFfuIl6kdAKvDRqd+QUIGo4TpCP6GOlw7+GTIF0NTwjw==", "integrity": "sha512-xWiZip5uzVoYkzJA3uJWqIKWy1krd9b9XgNzdhibw1uLbo9HGTzpdn8ViAXQrpgFxx5tgws0cTQrSduHHZsbFg==",
"requires": { "requires": {
"axios": "^0.26.1", "axios": "^0.26.1",
"camelize-ts": "^1.0.8", "camelize-ts": "^1.0.8",
"keycloak-js": "^17.0.1", "keycloak-js": "^18.0.0",
"lodash": "^4.17.21", "lodash": "^4.17.21",
"query-string": "^7.0.1", "query-string": "^7.0.1",
"url-join": "^4.0.0", "url-join": "^4.0.0",
@ -33449,9 +33449,9 @@
"dev": true "dev": true
}, },
"keycloak-js": { "keycloak-js": {
"version": "17.0.1", "version": "18.0.0",
"resolved": "https://registry.npmjs.org/keycloak-js/-/keycloak-js-17.0.1.tgz", "resolved": "https://registry.npmjs.org/keycloak-js/-/keycloak-js-18.0.0.tgz",
"integrity": "sha512-mbLBSoogCBX5VYeKCdEz8BaRWVL9twzSqArRU3Mo3Z7vEO1mghGZJ5IzREfiMEi7kTUZtk5i9mu+Yc0koGkK6g==", "integrity": "sha512-kaD6nrzgYX3NhgwQfVEZiAzaZXua3PSBIBWGWf8fgqPgUdiO8uvYaKV1Ebf43IAB5M8kvubW+2J+eBS+UnWsuw==",
"requires": { "requires": {
"base64-js": "^1.5.1", "base64-js": "^1.5.1",
"js-sha256": "^0.9.0" "js-sha256": "^0.9.0"

View file

@ -25,7 +25,7 @@
"server:import-client": "./scripts/import-client.mjs" "server:import-client": "./scripts/import-client.mjs"
}, },
"dependencies": { "dependencies": {
"@keycloak/keycloak-admin-client": "^18.0.0", "@keycloak/keycloak-admin-client": "^18.0.0-dev.22",
"@patternfly/patternfly": "^4.185.1", "@patternfly/patternfly": "^4.185.1",
"@patternfly/react-code-editor": "^4.43.16", "@patternfly/react-code-editor": "^4.43.16",
"@patternfly/react-core": "^4.202.16", "@patternfly/react-core": "^4.202.16",