E2E: remove Clerk bypass and sign in via Clerk in Cypress

This commit is contained in:
abhi1693
2026-02-07 17:01:00 +00:00
committed by Kunal
parent c4a5d8dd48
commit ecee7ecaf5
4 changed files with 42 additions and 19 deletions

View File

@@ -28,6 +28,7 @@ describe("/activity feed", () => {
.clear()
.type("jane+clerk_test@example.com");
<<<<<<< HEAD
cy.contains('button', /continue|sign in/i).click();
cy.get('input', { timeout: 20_000 })
@@ -40,6 +41,18 @@ describe("/activity feed", () => {
// Back to app
cy.contains(/live feed/i, { timeout: 30_000 }).should("be.visible");
=======
// OTP / verification code
cy.contains(/verification code|code/i).should("be.visible");
cy
.get('input')
.filter('[inputmode="numeric"], [autocomplete="one-time-code"], [type="tel"], [type="text"]')
.first()
.type("424242");
cy.contains('button', /verify|continue|sign in/i).click();
cy.contains(/live feed/i).should('be.visible');
>>>>>>> 446cfb2 (E2E: remove Clerk bypass and sign in via Clerk in Cypress)
}
<<<<<<< HEAD
@@ -82,6 +95,8 @@ describe("/activity feed", () => {
.first()
.type("000000");
cy.contains('button', /verify|continue|sign in/i).click();
// Clerk should display an error message.
cy.contains(/invalid|incorrect|try again/i).should("be.visible");
>>>>>>> a6188f5 (test(e2e): add negative auth case (wrong OTP))