From 84c8a1c55c75813bbb871c300a1ac86fb106694e Mon Sep 17 00:00:00 2001 From: Tim Roes Date: Mon, 15 Apr 2024 22:29:58 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=AA=9F=F0=9F=94=A7=20Fix=20broken=20cypre?= =?UTF-8?q?ss=20login=20(#12126)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- airbyte-webapp/cypress/commands/cloud.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/airbyte-webapp/cypress/commands/cloud.ts b/airbyte-webapp/cypress/commands/cloud.ts index 4feaa8998dc..02e4371dc9e 100644 --- a/airbyte-webapp/cypress/commands/cloud.ts +++ b/airbyte-webapp/cypress/commands/cloud.ts @@ -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"); });