You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-11-23 22:36:32 +02:00
17 lines
407 B
TypeScript
17 lines
407 B
TypeScript
import { Locator, Page } from '@playwright/test';
|
|
|
|
export default class EditorCodeDialog {
|
|
private readonly dialog: Locator;
|
|
public readonly textArea: Locator;
|
|
|
|
public constructor(page: Page) {
|
|
this.dialog = page.getByRole('dialog', { name: 'Edit' });
|
|
this.textArea = this.dialog.locator('textarea');
|
|
}
|
|
|
|
public async waitFor() {
|
|
await this.dialog.waitFor();
|
|
await this.textArea.waitFor();
|
|
}
|
|
}
|