mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-27 10:32:58 +02:00
18 lines
446 B
TypeScript
18 lines
446 B
TypeScript
|
|
||
|
import { Page, Locator } from '@playwright/test';
|
||
|
|
||
|
export default class SettingsScreen {
|
||
|
public readonly okayButton: Locator;
|
||
|
public readonly appearanceTabButton: Locator;
|
||
|
|
||
|
public constructor(page: Page) {
|
||
|
this.okayButton = page.locator('button', { hasText: 'OK' });
|
||
|
this.appearanceTabButton = page.getByText('Appearance');
|
||
|
}
|
||
|
|
||
|
public async waitFor() {
|
||
|
await this.okayButton.waitFor();
|
||
|
await this.appearanceTabButton.waitFor();
|
||
|
}
|
||
|
}
|