mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 09:36:44 +00:00
fix(editor): Fix workflows list status filter (#13621)
Co-authored-by: Charlie Kolb <charlie@n8n.io>
This commit is contained in:
committed by
GitHub
parent
6ef8d34f96
commit
4067fb0b12
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user