mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +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:
@@ -38,8 +38,7 @@ export class WorkflowPage extends BasePage {
|
||||
actions = {
|
||||
visit: () => {
|
||||
cy.visit(this.url);
|
||||
cy.getByTestId('node-view-loader', { timeout: 5000 }).should('not.exist');
|
||||
cy.get('.el-loading-mask', { timeout: 5000 }).should('not.exist');
|
||||
cy.waitForLoad();
|
||||
},
|
||||
addInitialNodeToCanvas: (nodeDisplayName: string) => {
|
||||
this.getters.canvasPlusButton().click();
|
||||
@@ -98,6 +97,9 @@ export class WorkflowPage extends BasePage {
|
||||
this.getters.workflowTagsInput().type('{enter}');
|
||||
});
|
||||
cy.get('body').type('{enter}');
|
||||
// For a brief moment the Element UI tag component shows the tags as(+X) string
|
||||
// so we need to wait for it to disappear
|
||||
this.getters.workflowTagsContainer().should('not.contain', `+${tags.length}`);
|
||||
},
|
||||
zoomToFit: () => {
|
||||
cy.getByTestId('zoom-to-fit').click();
|
||||
|
||||
Reference in New Issue
Block a user