mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-27 13:39:44 -08:00
16 lines
348 B
TypeScript
16 lines
348 B
TypeScript
|
import { BasePage } from './base';
|
||
|
|
||
|
export class CanvasNode extends BasePage {
|
||
|
getters = {
|
||
|
nodes: () => cy.getByTestId('canvas-node'),
|
||
|
nodeByName: (nodeName: string) =>
|
||
|
this.getters.nodes().filter(`:contains("${nodeName}")`),
|
||
|
};
|
||
|
|
||
|
actions = {
|
||
|
openNode: (nodeName: string) => {
|
||
|
this.getters.nodeByName(nodeName).dblclick();
|
||
|
},
|
||
|
};
|
||
|
}
|