fix(editor): Fix workflows list status filter (#13621)

Co-authored-by: Charlie Kolb <charlie@n8n.io>
This commit is contained in:
Milorad FIlipović
2025-03-03 10:37:20 +01:00
committed by GitHub
parent 6ef8d34f96
commit 4067fb0b12
3 changed files with 40 additions and 13 deletions

View File

@@ -64,13 +64,17 @@ describe('Workflows', () => {
it('should delete all the workflows', () => {
WorkflowsPage.getters.workflowCards().should('have.length', multipleWorkflowsCount + 1);
WorkflowsPage.getters.workflowCards().each(($el) => {
const workflowName = $el.find('[data-test-id="workflow-card-name"]').text();
WorkflowsPage.getters.workflowCards().then(($cards) => {
const workflowNames = $cards
.map((_, $el) => Cypress.$($el).find('[data-test-id="workflow-card-name"]').text())
.get();
WorkflowsPage.getters.workflowCardActions(workflowName).click();
WorkflowsPage.getters.workflowDeleteButton().click();
workflowNames.forEach((workflowName) => {
WorkflowsPage.getters.workflowCardActions(workflowName).click();
WorkflowsPage.getters.workflowDeleteButton().click();
cy.get('button').contains('delete').click();
cy.get('button').contains('delete').click();
});
});
WorkflowsPage.getters.newWorkflowButtonCard().should('be.visible');