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

@@ -50,6 +50,11 @@ Cypress.Commands.add('findChildByTestId', { prevSubject: true }, (subject: Cypre
return subject.find(`[data-test-id="${childTestId}"]`);
})
Cypress.Commands.add('waitForLoad', () => {
cy.getByTestId('node-view-loader').should('not.exist', { timeout: 10000 });
cy.get('.el-loading-mask').should('not.exist', { timeout: 10000 });
})
Cypress.Commands.add(
'signin',
({ email, password }) => {