mirror of https://github.com/Squidex/squidex.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
564 B
24 lines
564 B
/*
|
|
* Squidex Headless CMS
|
|
*
|
|
* @license
|
|
* Copyright (c) Squidex UG (haftungsbeschränkt). All rights reserved.
|
|
*/
|
|
|
|
import { Locator, Page } from '@playwright/test';
|
|
|
|
export class RenameDialog {
|
|
public root: Locator;
|
|
|
|
constructor(private readonly page: Page) {
|
|
this.root = this.page.locator('sqx-editable-title');
|
|
}
|
|
|
|
public async enterName(name: string) {
|
|
await this.root.locator('form').getByRole('textbox').fill(name);
|
|
}
|
|
|
|
public async save() {
|
|
await this.root.locator('form').getByLabel('Save').click();
|
|
}
|
|
}
|