Skip to content
Snippets Groups Projects
Commit fcc6fbea authored by Giannis Koumoutsos's avatar Giannis Koumoutsos
Browse files

added tests for general nodes

parent f4e741e0
No related branches found
No related tags found
1 merge request!393Move General tasks and icons to the frontend
Pipeline #137371 passed
before(() => {
cy.loadAppWithoutGraph();
});
it('should display the General category', () => {
cy.findByRole('button', { name: 'General' }).should('be.visible');
});
it('General should contain the appropriete Nodes', () => {
cy.findByRole('button', { name: 'General' }).click();
cy.findByRole('button', { name: 'graphInput' }).should('be.visible');
cy.findByRole('button', { name: 'graphOutput' }).should('be.visible');
cy.findByRole('button', { name: 'taskSkeleton' }).should('be.visible');
cy.findByRole('button', { name: 'note' }).should('be.visible');
cy.findByRole('button', { name: 'subworkflow' }).should('be.visible');
});
it('General nodes should not be editable', () => {
cy.findByRole('button', { name: 'graphInput' }).click();
cy.findByRole('button', { name: 'Clone task' }).should('not.exist');
});
it('General nodes should not be draggable to the canvas', () => {
cy.dragNodeInCanvas('graphInput');
cy.get('.react-flow__node').should('be.visible');
cy.get('[data-cy="task_props"]').should('not.exist');
});
......@@ -4,7 +4,7 @@ import TaskButton from './TaskButton';
import styles from './TaskList.module.css';
function AddGeneralNodeButton() {
function AddNoteButton() {
return (
<Tooltip title="Drag to the canvas to add a note node" arrow>
<div className={styles.item}>
......@@ -22,4 +22,4 @@ function AddGeneralNodeButton() {
);
}
export default AddGeneralNodeButton;
export default AddNoteButton;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment