mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
test(editor): Fix flaky workflow tags e2e tests and store screenshots from CI runs (#4903)
* test(editor): Fix flaky add tags e2e specs, and upload cypress artifacts on failure * Only run smoke test to debug the pipeline * Add waitForLoad command and revert debugging changes
This commit is contained in:
@@ -13,6 +13,7 @@ describe('Workflow Actions', () => {
|
||||
cy.resetAll();
|
||||
cy.skipSetup();
|
||||
WorkflowPage.actions.visit();
|
||||
cy.waitForLoad();
|
||||
});
|
||||
|
||||
it('should be able to save on button click', () => {
|
||||
@@ -66,6 +67,7 @@ describe('Workflow Actions', () => {
|
||||
it('should add more tags', () => {
|
||||
WorkflowPage.getters.newTagLink().click();
|
||||
WorkflowPage.actions.addTags(TEST_WF_TAGS);
|
||||
WorkflowPage.getters.isWorkflowSaved();
|
||||
WorkflowPage.getters.firstWorkflowTagElement().click();
|
||||
WorkflowPage.actions.addTags(['Another one']);
|
||||
WorkflowPage.getters.workflowTagElements().should('have.length', TEST_WF_TAGS.length + 1);
|
||||
@@ -84,7 +86,7 @@ describe('Workflow Actions', () => {
|
||||
WorkflowPage.getters.newTagLink().click();
|
||||
WorkflowPage.actions.addTags(TEST_WF_TAGS);
|
||||
WorkflowPage.getters.firstWorkflowTagElement().click();
|
||||
WorkflowPage.getters.workflowTagsDropdown().find('li').first().click();
|
||||
WorkflowPage.getters.workflowTagsDropdown().find('li.selected').first().click();
|
||||
cy.get('body').type('{enter}');
|
||||
WorkflowPage.getters.workflowTagElements().should('have.length', TEST_WF_TAGS.length - 1);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user