1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-18 09:35:20 +02:00

Chore: Desktop: Fix automated test that makes assumptions about which plugins are loaded (#11522)

This commit is contained in:
Henry Heino 2024-12-16 01:47:23 -08:00 committed by GitHub
parent dbc8e39d5e
commit dc96811940
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 7 additions and 2 deletions

View File

@ -14,6 +14,10 @@ export default class SettingsScreen {
return this.page.getByRole('tab', { name: tabName });
}
public getLastTab() {
return this.page.getByRole('tablist').getByRole('tab').last();
}
public async waitFor() {
await this.okayButton.waitFor();
await this.appearanceTabButton.waitFor();

View File

@ -75,7 +75,7 @@ test.describe('settings', () => {
// Pressing Up when the first item is focused should focus the last item
await mainWindow.keyboard.press('ArrowUp');
await expect(focusedItem).toHaveText('Backup');
await expect(settingsScreen.getLastTab()).toBeFocused();
await mainWindow.keyboard.press('ArrowDown');
await mainWindow.keyboard.press('ArrowDown');

View File

@ -147,4 +147,5 @@ setsize
Comprar
seguidores
devbox
Ökonomie
tablist
Ökonomie