feat: Add workflow and credential sharing access e2e tests (#5463)

feat: add workflow and credential sharing access e2e tests
This commit is contained in:
Alex Grozav
2023-02-14 16:13:00 +02:00
committed by GitHub
parent b25c10a0e1
commit 246189f6da
10 changed files with 239 additions and 22 deletions

View File

@@ -40,10 +40,7 @@ Cypress.Commands.add('createFixtureWorkflow', (fixtureKey, workflowName) => {
WorkflowPage.getters
.workflowImportInput()
.selectFile(`cypress/fixtures/${fixtureKey}`, { force: true });
WorkflowPage.getters.workflowNameInput().should('be.disabled');
WorkflowPage.getters.workflowNameInput().parent().click();
WorkflowPage.getters.workflowNameInput().should('be.enabled');
WorkflowPage.getters.workflowNameInput().clear().type(workflowName).type('{enter}');
WorkflowPage.actions.setWorkflowName(workflowName);
WorkflowPage.getters.saveButton().should('contain', 'Saved');
});