ci: Update Cypress & increase amount of e2e containers (#8282)

Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>
This commit is contained in:
oleg
2024-01-10 12:35:47 +01:00
committed by GitHub
parent ccde38a8a8
commit de088bfcf8
6 changed files with 34 additions and 33 deletions

View File

@@ -174,14 +174,15 @@ export class WorkflowPage extends BasePage {
this.getters.nodeCreatorSearchBar().type(nodeDisplayName);
this.getters.nodeCreatorSearchBar().type('{enter}');
cy.wait(500);
cy.get('body').then((body) => {
if (body.find('[data-test-id=node-creator]').length > 0) {
if (action) {
cy.contains(action).click();
} else {
// Select the first action
cy.get('[data-keyboard-nav-type="action"]').eq(0).click();
if (body.find('[data-keyboard-nav-type="action"]').length > 0) {
cy.get('[data-keyboard-nav-type="action"]').eq(0).click();
}
}
}
});