Skip to content

Commit 94b0f31

Browse files
committed
fix(e2e): accept both numerals formats across Keycloak versions
1 parent 79e1279 commit 94b0f31

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/e2e/specs/i18n-plurals.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,14 +122,14 @@ test.describe('Internationalization - Plural Forms', () => {
122122
expect(label).toContain('dni');
123123
});
124124

125-
test('Arabic shows "٣ أيام" (few form for 3-10)', async ({ page }) => {
125+
test('Arabic shows "3 أيام" (few form for 3-10)', async ({ page }) => {
126126
const otpForm = await navigateToOtpFormWithLocale(page, 'ar');
127127
await otpForm.expectTrustDeviceCheckboxVisible();
128128

129129
const label = await otpForm.getTrustDeviceLabel();
130130
// Arabic: 3 uses "few" form -> "أيام" (for 3-10)
131-
// Arabic locale uses Arabic-Indic numerals (٣ instead of 3)
132-
expect(label).toContain('٣');
131+
// Note: Some Keycloak versions use Arabic-Indic numerals (٣), others use Western (3)
132+
expect(label).toMatch(/[3٣]/);
133133
expect(label).toContain('أيام'); // few form (3-10)
134134
});
135135
});

0 commit comments

Comments
 (0)