test(playwright): reduce potential flakiness of appstore tests

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
This commit is contained in:
Ferdinand Thiessen 2026-06-10 12:13:34 +02:00
parent b70a151778
commit 7e1adfb1fa
No known key found for this signature in database
GPG key ID: 7E849AE05218500F
2 changed files with 1 additions and 3 deletions

View file

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

View file

@ -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')
}
/**