diff --git a/tests/playwright/e2e/appstore/admin-settings-apps.spec.ts b/tests/playwright/e2e/appstore/admin-settings-apps.spec.ts index d318c3283af..64b83208192 100644 --- a/tests/playwright/e2e/appstore/admin-settings-apps.spec.ts +++ b/tests/playwright/e2e/appstore/admin-settings-apps.spec.ts @@ -179,7 +179,6 @@ test.describe('Settings: App management', () => { // Type "admin" in the search field const searchInput = appstorePage.groupSearchInput() - await expect(searchInput).toBeFocused() await searchInput.fill('admin') // Select the admin option from the dropdown diff --git a/tests/playwright/support/sections/AppstorePage.ts b/tests/playwright/support/sections/AppstorePage.ts index 053e7e0c043..e936cb998ef 100644 --- a/tests/playwright/support/sections/AppstorePage.ts +++ b/tests/playwright/support/sections/AppstorePage.ts @@ -163,10 +163,9 @@ export class AppstorePage { /** * Gets the group search input. - * NcSelectUsers uses role="combobox" on the search input, not role="textbox". */ groupSearchInput(): Locator { - return this.groupDialog().locator('input').first() + return this.groupDialog().getByRole('combobox') } /**