mirror of
https://github.com/n8n-io/n8n.git
synced 2026-05-26 22:35:18 +02:00
28 lines
606 B
TypeScript
28 lines
606 B
TypeScript
import type { Locator } from '@playwright/test';
|
|
|
|
import { BasePage } from './BasePage';
|
|
|
|
export class WorkflowActivationModal extends BasePage {
|
|
get container(): Locator {
|
|
return this.page.getByTestId('activation-modal');
|
|
}
|
|
|
|
getModal(): Locator {
|
|
return this.container;
|
|
}
|
|
|
|
getDontShowAgainCheckbox(): Locator {
|
|
return this.getModal().getByText("Don't show again");
|
|
}
|
|
|
|
getGotItButton(): Locator {
|
|
return this.getModal().getByRole('button', { name: 'Got it' });
|
|
}
|
|
|
|
async close(): Promise<void> {
|
|
await this.getDontShowAgainCheckbox().click();
|
|
|
|
await this.getGotItButton().click();
|
|
}
|
|
}
|