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:
parent
dbc8e39d5e
commit
dc96811940
@ -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();
|
||||
|
@ -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');
|
||||
|
@ -147,4 +147,5 @@ setsize
|
||||
Comprar
|
||||
seguidores
|
||||
devbox
|
||||
tablist
|
||||
Ökonomie
|
Loading…
Reference in New Issue
Block a user