Skip to content

Commit

Permalink
Refactor tests to use new LinkedIn provider (keycloak#23133)
Browse files Browse the repository at this point in the history
Co-authored-by: stianst <[email protected]>
  • Loading branch information
jonkoops and stianst authored Sep 11, 2023
1 parent 82bf84e commit 403d678
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/js-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ jobs:
- name: Start Keycloak server
run: |
tar xfvz keycloak-999.0.0-SNAPSHOT.tar.gz
keycloak-999.0.0-SNAPSHOT/bin/kc.sh start-dev --features=admin-fine-grained-authz,declarative-user-profile,linkedin-oauth &> ~/server.log &
keycloak-999.0.0-SNAPSHOT/bin/kc.sh start-dev --features=admin-fine-grained-authz,declarative-user-profile &> ~/server.log &
env:
KEYCLOAK_ADMIN: admin
KEYCLOAK_ADMIN_PASSWORD: admin
Expand Down
10 changes: 7 additions & 3 deletions js/apps/admin-ui/cypress/e2e/identity_providers_test.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,11 @@ describe("Identity provider test", () => {
{ testName: "Gitlab", displayName: "Gitlab", alias: "gitlab" },
{ testName: "Google", displayName: "Google", alias: "google" },
{ testName: "Instagram", displayName: "Instagram", alias: "instagram" },
{ testName: "Linkedin", displayName: "LinkedIn", alias: "linkedin" },
{
testName: "LinkedIn OpenID Connect",
displayName: "LinkedIn OpenID Connect",
alias: "linkedin-openid-connect",
},
{ testName: "Microsoft", displayName: "Microsoft", alias: "microsoft" },
{
testName: "Openshift-v3",
Expand Down Expand Up @@ -177,8 +181,8 @@ describe("Identity provider test", () => {
it("create and delete provider by item details", () => {
createProviderPage
.clickCreateDropdown()
.clickItem("linkedin")
.fill("linkedin", "123")
.clickItem("linkedin-openid-connect")
.fill("linkedin-openid-connect", "123")
.clickAdd();
masthead.checkNotificationMessage(createSuccessMsg, true);

Expand Down

0 comments on commit 403d678

Please sign in to comment.