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:
OlegIvaniv
2022-12-13 11:55:51 +01:00
committed by GitHub
parent b4d3f12b51
commit 297a043875
7 changed files with 24 additions and 5 deletions

View File

@@ -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();