Skip to content

Commit

Permalink
🪟🔧 Fix broken cypress login (#12126)
Browse files Browse the repository at this point in the history
  • Loading branch information
timroes committed Apr 15, 2024
1 parent 6186c64 commit 84c8a1c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions airbyte-webapp/cypress/commands/cloud.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,11 @@ Cypress.Commands.add("login", (user: TestUserCredentials = testUser) => {
}
cy.visit("/login");

cy.get("[data-testid='login.email']", { timeout: 10000 }).type(user.email);
cy.get("[data-testid='login.password']").type(user.password);
cy.get("[data-testid='login.submit']").click();
cy.get("button").contains("Continue with Email").click();
cy.get("input[name=username]").type(testUser.email);
cy.get("input[name=password]").type(testUser.password);
cy.get("input[name=login]").click();

cy.hasNavigatedTo("/workspaces");
});

Expand Down

0 comments on commit 84c8a1c

Please sign in to comment.