mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-21 09:38:01 +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 });
|
return this.page.getByRole('tab', { name: tabName });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public getLastTab() {
|
||||||
|
return this.page.getByRole('tablist').getByRole('tab').last();
|
||||||
|
}
|
||||||
|
|
||||||
public async waitFor() {
|
public async waitFor() {
|
||||||
await this.okayButton.waitFor();
|
await this.okayButton.waitFor();
|
||||||
await this.appearanceTabButton.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
|
// Pressing Up when the first item is focused should focus the last item
|
||||||
await mainWindow.keyboard.press('ArrowUp');
|
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');
|
||||||
await mainWindow.keyboard.press('ArrowDown');
|
await mainWindow.keyboard.press('ArrowDown');
|
||||||
|
@ -147,4 +147,5 @@ setsize
|
|||||||
Comprar
|
Comprar
|
||||||
seguidores
|
seguidores
|
||||||
devbox
|
devbox
|
||||||
|
tablist
|
||||||
Ökonomie
|
Ökonomie
|
Loading…
Reference in New Issue
Block a user