diff --git a/packages/widgets/user-management-widget/e2e/user-management-widget.spec.ts b/packages/widgets/user-management-widget/e2e/user-management-widget.spec.ts index c262865fa..b3a5df53a 100644 --- a/packages/widgets/user-management-widget/e2e/user-management-widget.spec.ts +++ b/packages/widgets/user-management-widget/e2e/user-management-widget.spec.ts @@ -669,6 +669,8 @@ test.describe('widget', () => { }); }); + await page.waitForTimeout(STATE_TIMEOUT); + const searchInput = page .getByTestId('search-input') .locator('input') @@ -683,7 +685,7 @@ test.describe('widget', () => { // only search results shown in grid await expect( page.locator(`text=${mockUsers[0]['loginIds'][0]}`).first(), - ).toBeHidden({ timeout: 15000 }); + ).toBeHidden({ timeout: 20000 }); }); test('close notification', async ({ page }) => { diff --git a/packages/widgets/user-management-widget/src/lib/widget/state/selectors.ts b/packages/widgets/user-management-widget/src/lib/widget/state/selectors.ts index 2db8132e8..73576961b 100644 --- a/packages/widgets/user-management-widget/src/lib/widget/state/selectors.ts +++ b/packages/widgets/user-management-widget/src/lib/widget/state/selectors.ts @@ -119,7 +119,4 @@ export const getCanResetPassword = createSelector( (isSingleUser, isUsersEditable) => isSingleUser && isUsersEditable, ); -export const getCanDelete = createSelector( - getIsUsersSelected, - (isUsersSelected) => isUsersSelected, -); +export const getCanDelete = getIsUsersSelected;