Skip to content

Commit

Permalink
✔️ Updating workflow actions tests
Browse files Browse the repository at this point in the history
  • Loading branch information
MiloradFilipovic committed Aug 5, 2024
1 parent f1cd557 commit 56003d5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions cypress/e2e/7-workflow-actions.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,10 +156,11 @@ describe('Workflow Actions', () => {
WorkflowPage.getters.workflowNameInput().type('{selectall}');
WorkflowPage.getters.workflowNameInput().type('Test');
WorkflowPage.getters.saveButton().click();
WorkflowPage.getters.workflowNameInput().should('have.value', 'Test');
WorkflowPage.getters.workflowNameInput().should('have.value', oldName);
cy.visit(WorkflowPages.url);
// There should be no workflow with the old name (duplicate save)
WorkflowPages.getters.workflowCards().contains(String(oldName)).should('not.exist');
// Workflow rename should be ignored (no duplicate save)
WorkflowPages.getters.workflowCards().contains(String('Test')).should('not.exist');
WorkflowPages.getters.workflowCards().contains(String(oldName)).should('exist');
});
});

Expand Down

0 comments on commit 56003d5

Please sign in to comment.