Fix and enable account-ui tests

Fixes #40498

Signed-off-by: Stan Silvert <ssilvert@redhat.com>
This commit is contained in:
Stan Silvert 2025-06-24 01:51:19 -04:00 committed by GitHub
parent 5526458d19
commit 81d29a0247
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 9 additions and 9 deletions

View File

@ -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

View File

@ -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.",
);
});
});

View File

@ -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());

View File

@ -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();
});
});

View File

@ -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,

View File

@ -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.