mirror of
https://github.com/keycloak/keycloak.git
synced 2026-01-10 15:32:05 -03:30
Fix and enable account-ui tests
Fixes #40498 Signed-off-by: Stan Silvert <ssilvert@redhat.com>
This commit is contained in:
parent
5526458d19
commit
81d29a0247
2
.github/workflows/js-ci.yml
vendored
2
.github/workflows/js-ci.yml
vendored
@ -173,7 +173,7 @@ jobs:
|
||||
working-directory: js
|
||||
|
||||
- name: Run Playwright tests
|
||||
run: pnpm --fail-if-no-match --filter ${{ env.WORKSPACE }} test:integration
|
||||
run: pnpm --fail-if-no-match --filter ${{ env.WORKSPACE }} test
|
||||
working-directory: js
|
||||
|
||||
- name: Upload Playwright report
|
||||
|
||||
@ -95,7 +95,7 @@ test.describe("Account linking", () => {
|
||||
|
||||
// Expect an error shown that the account cannot be unlinked
|
||||
await expect(page.getByTestId("last-alert")).toContainText(
|
||||
"You can't remove last federated identity as you don't have a password.",
|
||||
"You can not remove last federated identity as you do not have a password.",
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
@ -62,7 +62,7 @@ test.describe("Applications test", () => {
|
||||
await page.goto("/");
|
||||
await expect(page).toHaveURL(getAdminUrl());
|
||||
await page.waitForURL(getAdminUrl());
|
||||
await expect(page.getByTestId("realmSelector")).toBeVisible();
|
||||
await expect(page.getByTestId("options-toggle")).toBeVisible();
|
||||
|
||||
await page.goto(getRootPath());
|
||||
await page.waitForURL(getAccountUrl());
|
||||
|
||||
@ -80,10 +80,10 @@ test.describe("Personal info with userprofile enabled", () => {
|
||||
test("render long list of locales as typeahead", async ({ page }) => {
|
||||
await login(page, user, "jdoe", realm);
|
||||
|
||||
await page.locator("#locale").click();
|
||||
await page.locator("#attributes\\.locale").click();
|
||||
await page.waitForSelector("text=Italiano");
|
||||
|
||||
await page.locator("#locale").click();
|
||||
await page.locator("#attributes\\.locale").click();
|
||||
await page.locator("*:focus").press("Control+A");
|
||||
await page.locator("*:focus").pressSequentially("S");
|
||||
await expect(page.getByText("Italiano")).toHaveCount(0);
|
||||
@ -126,14 +126,14 @@ test.describe("Realm localization", () => {
|
||||
);
|
||||
|
||||
await login(page, user, "pwd", realm);
|
||||
await page.locator("#locale").click();
|
||||
await page.locator("#attributes\\.locale").click();
|
||||
page.getByRole("option").filter({ hasText: "Deutsch" });
|
||||
await page.getByRole("option", { name: "English" }).click();
|
||||
await page.getByTestId("save").click();
|
||||
await page.reload();
|
||||
|
||||
expect(
|
||||
page.locator("#locale").filter({ hasText: /^English$/ }),
|
||||
page.locator("#attributes\\.locale").filter({ hasText: /^English$/ }),
|
||||
).toBeDefined();
|
||||
});
|
||||
});
|
||||
|
||||
@ -10,7 +10,7 @@ test.describe("Signing in with referrer link", () => {
|
||||
}) => {
|
||||
const referrer = "security-admin-console";
|
||||
const referrerUrl = getAdminUrl();
|
||||
const referrerName = "security admin console";
|
||||
const referrerName = "Security Admin Console";
|
||||
|
||||
const queryParams = {
|
||||
referrer,
|
||||
|
||||
@ -212,7 +212,7 @@ missingIdentityProviderMessage=Identity provider not specified.
|
||||
invalidFederatedIdentityActionMessage=Invalid or missing action.
|
||||
identityProviderNotFoundMessage=Specified identity provider not found.
|
||||
federatedIdentityLinkNotActiveMessage=This identity is not active anymore.
|
||||
federatedIdentityRemovingLastProviderMessage=You can''t remove last federated identity as you don''t have a password.
|
||||
federatedIdentityRemovingLastProviderMessage=You can not remove last federated identity as you do not have a password.
|
||||
federatedIdentityBoundOrganization=You cannot remove the link to an identity provider associated with an organization.
|
||||
identityProviderRedirectErrorMessage=Failed to redirect to identity provider.
|
||||
identityProviderRemovedMessage=Identity provider removed successfully.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user