Chore: Improve note list test reliability (#12019)

pull/12020/head^2
Henry Heino 2025-03-27 13:58:43 -07:00 committed by GitHub
parent 6b881b226e
commit ff0321e906
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -25,6 +25,7 @@ export default class NoteList {
public async focusContent(electronApp: ElectronApplication) {
await activateMainMenuItem(electronApp, 'Note list', 'Focus');
await expect(this.container.locator(':focus')).toBeAttached();
}
// The resultant locator may fail to resolve if the item is not visible