test: Migrate data pinning tests from Cypress to Playwright (#18462)

This commit is contained in:
shortstacked
2025-08-18 12:28:32 +01:00
committed by GitHub
parent 08d82491c8
commit 7c80086a6b
12 changed files with 603 additions and 252 deletions

View File

@@ -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');
}