Issue with Handling Negative Values in Certain Fields of Brute Force Detection #30058
js-ci.yml
on: pull_request
Admin Client
36s
UI Shared
46s
Account UI
54s
Admin UI
1m 42s
Matrix: Admin UI E2E
Annotations
8 errors, 29 warnings, and 1 notice
[chromium] › test/user-federation/kerberos.spec.ts:180:5 › User Fed Kerberos tests › Edit Kerberos provider › Should edit existing Kerberos provider and cancel:
js/apps/admin-ui/test/user-federation/kerberos.spec.ts#L192
6) [chromium] › test/user-federation/kerberos.spec.ts:180:5 › User Fed Kerberos tests › Edit Kerberos provider › Should edit existing Kerberos provider and cancel
Error: Timed out 5000ms waiting for expect(locator).toHaveText(expected)
Locator: locator('#kc-cache-policy')
Expected string: "DEFAULT"
Received string: "NO_CACHE"
Call log:
- Expect "toHaveText" with timeout 5000ms
- waiting for locator('#kc-cache-policy')
9 × locator resolved to <button type="button" id="kc-cache-policy" aria-expanded="false" data-ouia-safe="true" aria-label="Cache policy" data-ouia-component-type="PF5/MenuToggle" class="pf-v5-c-menu-toggle pf-m-full-width" data-ouia-component-id="OUIA-Generated-MenuToggle-8">…</button>
- unexpected value "NO_CACHE"
190 | await clickUserFederationCard(page, firstKerberosName);
191 |
> 192 | await expect(page.locator("#kc-cache-policy")).toHaveText(defaultPolicy);
| ^
193 | });
194 |
195 | test("Should disable an existing Kerberos provider", async ({ page }) => {
at /home/runner/work/keycloak/keycloak/js/apps/admin-ui/test/user-federation/kerberos.spec.ts:192:54
|
[chromium] › test/organization/main.spec.ts:78:5 › Organization CRUD › Existing organization › should modify existing organization:
js/apps/admin-ui/test/utils/form.ts#L64
5) [chromium] › test/organization/main.spec.ts:78:5 › Organization CRUD › Existing organization › should modify existing organization
Error: locator.click: Test timeout of 60000ms exceeded.
Call log:
- waiting for getByTestId('save')
- locator resolved to <button disabled type="submit" data-testid="save" aria-disabled="true" data-ouia-safe="true" data-ouia-component-type="PF5/Button" class="pf-v5-c-button pf-m-primary pf-m-disabled" data-ouia-component-id="OUIA-Generated-Button-primary-1">Save</button>
- attempting click action
2 × waiting for element to be visible, enabled and stable
- element is not enabled
- retrying click action
- waiting 20ms
2 × waiting for element to be visible, enabled and stable
- element is not enabled
- retrying click action
- waiting 100ms
113 × waiting for element to be visible, enabled and stable
- element is not enabled
- retrying click action
- waiting 500ms
at utils/form.ts:64
62 |
63 | export async function clickSaveButton(page: Page) {
> 64 | await getSaveButton(page).click();
| ^
65 | }
66 |
67 | export async function assertSaveButtonIsDisabled(page: Page) {
at clickSaveButton (/home/runner/work/keycloak/keycloak/js/apps/admin-ui/test/utils/form.ts:64:29)
at /home/runner/work/keycloak/keycloak/js/apps/admin-ui/test/organization/main.spec.ts:83:13
|
[chromium] › test/organization/main.spec.ts:78:5 › Organization CRUD › Existing organization › should modify existing organization:
js/apps/admin-ui/test/organization/main.spec.ts#L0
5) [chromium] › test/organization/main.spec.ts:78:5 › Organization CRUD › Existing organization › should modify existing organization
Test timeout of 60000ms exceeded.
|
[chromium] › test/clients/scope.spec.ts:167:3 › Client details - Client scopes subtab › Should remove multiple client scopes from search bar:
js/apps/admin-ui/test/utils/table.ts#L109
4) [chromium] › test/clients/scope.spec.ts:167:3 › Client details - Client scopes subtab › Should remove multiple client scopes from search bar
Error: locator.click: Test timeout of 60000ms exceeded.
Call log:
- waiting for getByLabel('clientScopeList-0').getByLabel('Select row 4')
at utils/table.ts:109
107 | row = rowIndex;
108 | }
> 109 | await page.getByLabel(tableName).getByLabel(`Select row ${row}`).click();
| ^
110 | }
111 |
112 | export async function expandRow(page: Page, tableName: string, row: number) {
at clickSelectRow (/home/runner/work/keycloak/keycloak/js/apps/admin-ui/test/utils/table.ts:109:68)
at /home/runner/work/keycloak/keycloak/js/apps/admin-ui/test/clients/scope.spec.ts:173:5
|
[chromium] › test/clients/scope.spec.ts:167:3 › Client details - Client scopes subtab › Should remove multiple client scopes from search bar:
js/apps/admin-ui/test/clients/scope.spec.ts#L0
4) [chromium] › test/clients/scope.spec.ts:167:3 › Client details - Client scopes subtab › Should remove multiple client scopes from search bar
Test timeout of 60000ms exceeded.
|
[chromium] › test/clients/scope.spec.ts:152:3 › Client details - Client scopes subtab › Should show items on next page are more than 11:
js/apps/admin-ui/test/clients/scope.spec.ts#L155
3) [chromium] › test/clients/scope.spec.ts:152:3 › Client details - Client scopes subtab › Should show items on next page are more than 11
Error: expect(received).toBeGreaterThan(expected)
Expected: > 1
Received: 0
153 | await clickNextPageButton(page);
154 | const rows = await getTableData(page, tableName);
> 155 | expect(rows.length).toBeGreaterThan(1);
| ^
156 | });
157 |
158 | test("Should remove client scope", async ({ page }) => {
at /home/runner/work/keycloak/keycloak/js/apps/admin-ui/test/clients/scope.spec.ts:155:25
|
[chromium] › test/clients/scope.spec.ts:140:3 › Client details - Client scopes subtab › Should change item AssignedType to default from search bar:
js/apps/admin-ui/test/clients/scope.ts#L23
2) [chromium] › test/clients/scope.spec.ts:140:3 › Client details - Client scopes subtab › Should change item AssignedType to default from search bar
Error: expect.toHaveText: Error: strict mode violation: getByTestId('cell-dropdown') resolved to 10 elements:
1) <button disabled type="button" aria-expanded="false" data-ouia-safe="true" data-testid="cell-dropdown" data-ouia-component-type="PF5/MenuToggle" data-ouia-component-id="OUIA-Generated-MenuToggle-16" class="pf-v5-c-menu-toggle pf-m-disabled keycloak__client-scope__none">…</button> aka getByRole('button', { name: 'None' })
2) <button type="button" aria-expanded="false" data-ouia-safe="true" data-testid="cell-dropdown" data-ouia-component-type="PF5/MenuToggle" data-ouia-component-id="OUIA-Generated-MenuToggle-17" class="pf-v5-c-menu-toggle keycloak__client-scope__default">…</button> aka getByRole('row', { name: 'Select row 1 acr Default' }).getByTestId('cell-dropdown')
3) <button type="button" aria-expanded="false" data-ouia-safe="true" data-testid="cell-dropdown" data-ouia-component-type="PF5/MenuToggle" data-ouia-component-id="OUIA-Generated-MenuToggle-18" class="pf-v5-c-menu-toggle keycloak__client-scope__optional">…</button> aka getByRole('row', { name: 'Select row 2 address Optional' }).getByTestId('cell-dropdown')
4) <button type="button" aria-expanded="false" data-ouia-safe="true" data-testid="cell-dropdown" data-ouia-component-type="PF5/MenuToggle" data-ouia-component-id="OUIA-Generated-MenuToggle-19" class="pf-v5-c-menu-toggle keycloak__client-scope__default">…</button> aka getByRole('row', { name: 'Select row 3 basic Default' }).getByTestId('cell-dropdown')
5) <button type="button" aria-expanded="false" data-ouia-safe="true" data-testid="cell-dropdown" data-ouia-component-type="PF5/MenuToggle" data-ouia-component-id="OUIA-Generated-MenuToggle-20" class="pf-v5-c-menu-toggle keycloak__client-scope__optional">…</button> aka getByRole('row', { name: 'Select row 4 client-scope-' }).getByTestId('cell-dropdown')
6) <button type="button" aria-expanded="false" data-ouia-safe="true" data-testid="cell-dropdown" data-ouia-component-type="PF5/MenuToggle" data-ouia-component-id="OUIA-Generated-MenuToggle-21" class="pf-v5-c-menu-toggle keycloak__client-scope__default">…</button> aka getByRole('row', { name: 'Select row 5 client-scope-' }).getByTestId('cell-dropdown')
7) <button type="button" aria-expanded="false" data-ouia-safe="true" data-testid="cell-dropdown" data-ouia-component-type="PF5/MenuToggle" data-ouia-component-id="OUIA-Generated-MenuToggle-22" class="pf-v5-c-menu-toggle keycloak__client-scope__default">…</button> aka getByRole('row', { name: 'Select row 6 client-scope-' }).getByTestId('cell-dropdown')
8) <button type="button" aria-expanded="false" data-ouia-safe="true" data-testid="cell-dropdown" data-ouia-component-type="PF5/MenuToggle" data-ouia-component-id="OUIA-Generated-MenuToggle-23" class="pf-v5-c-menu-toggle keycloak__client-scope__default">…</button> aka getByRole('row', { name: 'Select row 7 client-scope-' }).getByTestId('cell-dropdown')
9) <button type="button" aria-expanded="false" data-ouia-safe="true" data-testid="cell-dropdown" data-ouia-component-type="PF5/MenuToggle" data-ouia-component-id="OUIA-Generated-MenuToggle-24" class="pf-v5-c-menu-toggle keycloak__client-scope__default">…</button> aka getByRole('row', { name: 'Select row 8 client-scope-' }).getByTestId('cell-dropdown')
10) <button type="button" aria-expanded="false" data-ouia-safe="true" data-testid="cell-dropdown" data-ouia-component-type="PF5/MenuToggle" data-ouia-component-id="OUIA-Generated-MenuToggle-25" class="pf-v5-c-menu-toggle keycloak__client-scope__default">…</button> aka getByRole('row', { name: 'Select row 9 client-scope-' }).getByTestId('cell-dropdown')
Call log:
- Expect "toHaveText" with timeout 5000ms
- waiting for getByTestId('cell-dropdown')
at clients/scope.ts:23
21 |
22 | export async function assertTableCellDropdownValue(page: Page, val
|
[chromium] › test/clients/saml.spec.ts:134:3 › Clients SAML tests › should check SAML capabilities:
js/apps/admin-ui/test/utils/form.ts#L33
1) [chromium] › test/clients/saml.spec.ts:134:3 › Clients SAML tests › should check SAML capabilities
Error: Timed out 5000ms waiting for expect(locator).toBeChecked()
Locator: locator('[data-testid="attributes.saml_force_name_id_format"]')
Expected: checked
Received: unchecked
Call log:
- Expect "toBeChecked" with timeout 5000ms
- waiting for locator('[data-testid="attributes.saml_force_name_id_format"]')
9 × locator resolved to <input aria-label="" type="checkbox" class="pf-v5-c-switch__input" id="attributes.saml_force_name_id_format" name="attributes.saml_force_name_id_format" data-testid="attributes.saml_force_name_id_format" aria-labelledby="attributes.saml_force_name_id_format-off"/>
- unexpected value "unchecked"
at utils/form.ts:33
31 | const switchElement = typeof id === "string" ? page.locator(id) : id;
32 | await switchElement.click({ force: true });
> 33 | await expect(switchElement).toBeChecked();
| ^
34 | }
35 |
36 | export async function switchOff(page: Page, id: string | Locator) {
at switchOn (/home/runner/work/keycloak/keycloak/js/apps/admin-ui/test/utils/form.ts:33:31)
at /home/runner/work/keycloak/keycloak/js/apps/admin-ui/test/clients/saml.spec.ts:151:9
|
UI Shared:
js/libs/ui-shared/src/utils/useFetch.ts#L43
React Hook useEffect has missing dependencies: 'adminClientCall', 'callback', and 'showBoundary'. Either include them or remove the dependency array. If 'adminClientCall' changes too often, find the parent component that defines it and wrap that definition in useCallback
|
UI Shared:
js/libs/ui-shared/src/utils/useFetch.ts#L43
React Hook useEffect was passed a dependency list that is not an array literal. This means we can't statically verify whether you've passed the correct dependencies
|
UI Shared:
js/libs/ui-shared/src/user-profile/MultiInputComponent.tsx#L99
React Hook useEffect has a missing dependency: 'name'. Either include it or remove the dependency array
|
UI Shared:
js/libs/ui-shared/src/user-profile/MultiInputComponent.tsx#L72
React Hook useMemo has a missing dependency: 'defaultValue'. Either include it or remove the dependency array
|
UI Shared:
js/libs/ui-shared/src/select/SingleSelect.tsx#L52
Ref values (the `current` property) may not be accessed during render. (https://react.dev/reference/react/useRef)
|
UI Shared:
js/libs/ui-shared/src/select/SingleSelect.tsx#L52
This function accesses a ref value (the `current` property), which may not be accessed during render. (https://react.dev/reference/react/useRef)
|
UI Shared:
js/libs/ui-shared/src/controls/table/KeycloakDataTable.tsx#L489
React Hook useMemo has missing dependencies: 'convertToColumns', 'getNodeText', 'isPaginated', and 'unPaginatedData'. Either include them or remove the dependency array
|
UI Shared:
js/libs/ui-shared/src/controls/table/KeycloakDataTable.tsx#L151
React Hook useEffect has a missing dependency: 'rowsSelectedOnPage.length'. Either include it or remove the dependency array
|
UI Shared:
js/libs/ui-shared/src/context/KeycloakContext.tsx#L81
React Hook useEffect has a missing dependency: 'environment.scope'. Either include it or remove the dependency array
|
UI Shared:
js/libs/ui-shared/src/context/KeycloakContext.tsx#L46
Unexpected reassignment of a variable which was defined outside of the component. Components and hooks should be pure and side-effect free, but variable reassignment is a form of side-effect. If this variable is used in rendering, use useState instead. (https://react.dev/reference/rules/components-and-hooks-must-be-pure#side-effects-must-run-outside-of-render)
|
Account UI:
js/apps/account-ui/test/personal-info/personal-info.spec.ts#L84
Unexpected use of page.waitForSelector()
|
Account UI:
js/apps/account-ui/test/personal-info/personal-info.spec.ts#L70
Unexpected use of page.waitForSelector()
|
Account UI:
js/apps/account-ui/test/oid4vci/oid4vci.spec.ts#L7
Unexpected use of the `.skip()` annotation
|
Account UI:
js/apps/account-ui/src/utils/usePromise.ts#L73
React Hook useEffect has missing dependencies: 'callback' and 'factory'. Either include them or remove the dependency array. If 'callback' changes too often, find the parent component that defines it and wrap that definition in useCallback
|
Account UI:
js/apps/account-ui/src/utils/usePromise.ts#L73
React Hook useEffect was passed a dependency list that is not an array literal. This means we can't statically verify whether you've passed the correct dependencies
|
Account UI:
js/apps/account-ui/src/resources/ShareTheResource.tsx#L72
React Hook useEffect has a missing dependency: 'append'. Either include it or remove the dependency array
|
Account UI:
js/apps/account-ui/src/resources/EditTheResource.tsx#L42
React Hook useEffect has missing dependencies: 'permissions' and 'reset'. Either include them or remove the dependency array
|
Account UI:
js/apps/account-ui/src/oid4vci/Oid4Vci.tsx#L69
React Hook useEffect has missing dependencies: 'context', 'credentialsIssuer', 'initialSelected', and 'selectOptions'. Either include them or remove the dependency array
|
Admin UI:
js/apps/admin-ui/src/authentication/components/ExecutionConfigModal.tsx#L110
React Hook useEffect has a missing dependency: 'setupForm'. Either include it or remove the dependency array
|
Admin UI:
js/apps/admin-ui/src/authentication/components/EditFlow.tsx#L32
React Hook useEffect has a missing dependency: 'form'. Either include it or remove the dependency array
|
Admin UI:
js/apps/admin-ui/src/authentication/components/DraggableTable.tsx#L62
React Hook useMemo has a missing dependency: 'keyField'. Either include it or remove the dependency array
|
Admin UI:
js/apps/admin-ui/src/authentication/EditFlowModal.tsx#L31
React Hook useEffect has a missing dependency: 'reset'. Either include it or remove the dependency array
|
Admin UI:
js/apps/admin-ui/src/authentication/DuplicateFlowModal.tsx#L45
React Hook useEffect has missing dependencies: 'setValue' and 't'. Either include them or remove the dependency array
|
Admin UI:
js/apps/admin-ui/src/authentication/AuthenticationSection.tsx#L106
Hooks must be the same function on every render, but this value may change over time to a different function. See https://react.dev/reference/rules/react-calls-components-and-hooks#dont-dynamically-use-hooks
|
Admin UI:
js/apps/admin-ui/src/authentication/AuthenticationSection.tsx#L105
Hooks must be the same function on every render, but this value may change over time to a different function. See https://react.dev/reference/rules/react-calls-components-and-hooks#dont-dynamically-use-hooks
|
Admin UI:
js/apps/admin-ui/src/authentication/AuthenticationSection.tsx#L104
Hooks must be the same function on every render, but this value may change over time to a different function. See https://react.dev/reference/rules/react-calls-components-and-hooks#dont-dynamically-use-hooks
|
Admin UI:
js/apps/admin-ui/src/authentication/AuthenticationSection.tsx#L102
Hooks must be called at the top level in the body of a function component or custom hook, and may not be called within function expressions. See the Rules of Hooks (https://react.dev/warnings/invalid-hook-call-warning)
|
|
Account UI E2E
No files were found with the provided path: js/apps/account-ui/playwright-report. No artifacts will be uploaded.
|
🎭 Playwright Run Summary
6 flaky
[chromium] › test/clients/saml.spec.ts:134:3 › Clients SAML tests › should check SAML capabilities
[chromium] › test/clients/scope.spec.ts:140:3 › Client details - Client scopes subtab › Should change item AssignedType to default from search bar
[chromium] › test/clients/scope.spec.ts:152:3 › Client details - Client scopes subtab › Should show items on next page are more than 11
[chromium] › test/clients/scope.spec.ts:167:3 › Client details - Client scopes subtab › Should remove multiple client scopes from search bar
[chromium] › test/organization/main.spec.ts:78:5 › Organization CRUD › Existing organization › should modify existing organization
[chromium] › test/user-federation/kerberos.spec.ts:180:5 › User Fed Kerberos tests › Edit Kerberos provider › Should edit existing Kerberos provider and cancel
1 skipped
335 passed (14.6m)
|
Artifacts
Produced during runtime
Name | Size | Digest | |
---|---|---|---|
account-ui-server-log
|
1016 Bytes |
sha256:44d9426f65d0641470945702e5ee7392323eb4ab324fa375756b29b2540414f3
|
|
admin-ui-playwright-report-chromium
|
9.84 MB |
sha256:003a7a40bb853abaa257ea47f70b9d918453f24f6aff1258030f66202702849d
|
|
admin-ui-server-log-chromium
|
3.3 KB |
sha256:6521f700b5f102be5e559a479db89751737d5cc908f087064206332b1810afdf
|
|
keycloak
|
147 MB |
sha256:09a596d0d1325eb842ea7e1c27fd9838223badb5ff7f12d8ce3f205bb0e0d6af
|
|
m2-keycloak.tzts
Expired
|
365 MB |
sha256:ac3555df7c1be79652600f8e3034f2cbeb058669129750537a8d9c5fb8b5d631
|
|