mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
test: Migrate data pinning tests from Cypress to Playwright (#18462)
This commit is contained in:
@@ -37,6 +37,10 @@ export class CanvasPage extends BasePage {
|
||||
await this.clickByTestId('canvas-plus-button');
|
||||
}
|
||||
|
||||
getCanvasNodes() {
|
||||
return this.page.getByTestId('canvas-node');
|
||||
}
|
||||
|
||||
async clickNodeCreatorPlusButton(): Promise<void> {
|
||||
await this.clickByTestId('node-creator-plus-button');
|
||||
}
|
||||
@@ -81,6 +85,10 @@ export class CanvasPage extends BasePage {
|
||||
await this.clickSaveWorkflowButton();
|
||||
}
|
||||
|
||||
getExecuteWorkflowButton(): Locator {
|
||||
return this.page.getByTestId('execute-workflow-button');
|
||||
}
|
||||
|
||||
async clickExecuteWorkflowButton(): Promise<void> {
|
||||
await this.page.getByTestId('execute-workflow-button').click();
|
||||
}
|
||||
@@ -256,6 +264,11 @@ export class CanvasPage extends BasePage {
|
||||
await this.getProductionChecklistActionItem(actionText).click();
|
||||
}
|
||||
|
||||
async duplicateNode(nodeName: string): Promise<void> {
|
||||
await this.nodeByName(nodeName).click({ button: 'right' });
|
||||
await this.page.getByTestId('context-menu').getByText('Duplicate').click();
|
||||
}
|
||||
|
||||
getCanvasNodes(): Locator {
|
||||
return this.page.getByTestId('canvas-node');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user