mirror of
https://github.com/laurent22/joplin.git
synced 2025-01-23 18:53:36 +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();
|
|
}
|
|
}
|