Headless CMS and Content Managment Hub
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.
 
 
 
 
 

30 lines
832 B

/*
* Squidex Headless CMS
*
* @license
* Copyright (c) Squidex UG (haftungsbeschränkt). All rights reserved.
*/
import { Page } from '@playwright/test';
export class RulePage {
constructor(private readonly page: Page) {}
public async selectContentChangedTrigger() {
await this.page.getByText('Content changed').click();
}
public async selectWebhookAction() {
await this.page.getByText('Webhook').click();
await this.page.locator('sqx-formattable-input').first().getByRole('textbox').fill('https:/squidex.io');
}
public async save() {
await this.page.getByRole('button', { name: 'Save' }).click();
await this.page.getByText('Enabled').waitFor({ state: 'visible' });
}
public async back() {
await this.page.getByLabel('Back').click();
}
}