mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-14 16:44:07 -08:00
30 lines
911 B
TypeScript
30 lines
911 B
TypeScript
/**
|
|
* Getters
|
|
*/
|
|
|
|
export const getExecutionsSidebar = () => cy.getByTestId('executions-sidebar');
|
|
|
|
export const getWorkflowExecutionPreviewIframe = () => cy.getByTestId('workflow-preview-iframe');
|
|
|
|
export const getExecutionPreviewBody = () =>
|
|
getWorkflowExecutionPreviewIframe()
|
|
.its('0.contentDocument.body')
|
|
.then((el) => cy.wrap(el));
|
|
|
|
export const getExecutionPreviewBodyNodes = () =>
|
|
getExecutionPreviewBody().findChildByTestId('canvas-node');
|
|
|
|
export const getExecutionPreviewBodyNodesByName = (name: string) =>
|
|
getExecutionPreviewBody().findChildByTestId('canvas-node').filter(`[data-name="${name}"]`).eq(0);
|
|
|
|
export function getExecutionPreviewOutputPanelRelatedExecutionLink() {
|
|
return getExecutionPreviewBody().findChildByTestId('related-execution-link');
|
|
}
|
|
|
|
/**
|
|
* Actions
|
|
*/
|
|
|
|
export const openExecutionPreviewNode = (name: string) =>
|
|
getExecutionPreviewBodyNodesByName(name).dblclick();
|