1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-08-10 22:11:50 +02:00

Chore: Improve note list test reliability (#12019)

This commit is contained in:
Henry Heino
2025-03-27 13:58:43 -07:00
committed by GitHub
parent 6b881b226e
commit ff0321e906

View File

@@ -25,6 +25,7 @@ export default class NoteList {
public async focusContent(electronApp: ElectronApplication) { public async focusContent(electronApp: ElectronApplication) {
await activateMainMenuItem(electronApp, 'Note list', 'Focus'); 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 // The resultant locator may fail to resolve if the item is not visible