diff --git a/test/e2e/cypress/integration/profiles/email/error/ui.spec.ts b/test/e2e/cypress/integration/profiles/email/error/ui.spec.ts index 2943bde32723..dcedbf354e5b 100644 --- a/test/e2e/cypress/integration/profiles/email/error/ui.spec.ts +++ b/test/e2e/cypress/integration/profiles/email/error/ui.spec.ts @@ -5,6 +5,7 @@ import { routes as express } from "../../../../helpers/express" import { routes as react } from "../../../../helpers/react" import { appPrefix } from "../../../../helpers" +// playwright:migrated describe("Handling self-service error flows", () => { ;[ { @@ -24,6 +25,7 @@ describe("Handling self-service error flows", () => { cy.proxy(app) }) + // playwright:migrated it("should show the error", () => { cy.visit(`${route}/error?id=stub:500`, { failOnStatusCode: false, diff --git a/test/e2e/cypress/integration/profiles/email/login/error.spec.ts b/test/e2e/cypress/integration/profiles/email/login/error.spec.ts index 6291888e6eae..2bba75bddbb7 100644 --- a/test/e2e/cypress/integration/profiles/email/login/error.spec.ts +++ b/test/e2e/cypress/integration/profiles/email/login/error.spec.ts @@ -5,6 +5,7 @@ import { appPrefix, gen } from "../../../../helpers" import { routes as express } from "../../../../helpers/express" import { routes as react } from "../../../../helpers/react" +// playwright:migrated describe("Basic email profile with failing login flows", () => { ;[ { @@ -29,6 +30,7 @@ describe("Basic email profile with failing login flows", () => { cy.visit(route) }) + // playwright:migrated it("fails when CSRF cookies are missing", () => { cy.get(`${appPrefix(app)}input[name="identifier"]`).type( "i-do-not-exist", @@ -38,6 +40,7 @@ describe("Basic email profile with failing login flows", () => { cy.shouldHaveCsrfError({ app }) }) + // playwright:migrated it("fails when a disallowed return_to url is requested", () => { cy.shouldErrorOnDisallowedReturnTo( route + "?return_to=https://not-allowed", @@ -45,7 +48,9 @@ describe("Basic email profile with failing login flows", () => { ) }) + // playwright:migrated - partially describe("shows validation errors when invalid signup data is used", () => { + // playwright:migrated it("should show an error when the identifier is missing", () => { // the browser will prevent the form from submitting if the fields are empty since they are required // here we just remove the required attribute to make the form submit @@ -64,6 +69,7 @@ describe("Basic email profile with failing login flows", () => { ) }) + // playwright:migrated it("should show an error when the password is missing", () => { const identity = gen.email() cy.get('input[name="identifier"]') @@ -85,6 +91,7 @@ describe("Basic email profile with failing login flows", () => { }) }) + // playwright:migrated it("should show fail to sign in", () => { cy.get('input[name="identifier"]').type("i-do-not-exist") cy.get('input[name="password"]').type("invalid-password") diff --git a/test/e2e/cypress/integration/profiles/email/login/success.spec.ts b/test/e2e/cypress/integration/profiles/email/login/success.spec.ts index c820eb3d4d8c..54d1dac6950a 100644 --- a/test/e2e/cypress/integration/profiles/email/login/success.spec.ts +++ b/test/e2e/cypress/integration/profiles/email/login/success.spec.ts @@ -5,6 +5,7 @@ import { APP_URL, appPrefix, gen, website } from "../../../../helpers" import { routes as express } from "../../../../helpers/express" import { routes as react } from "../../../../helpers/react" +// playwright:migrated describe("Basic email profile with succeeding login flows", () => { const email = gen.email() const password = gen.password() @@ -35,6 +36,7 @@ describe("Basic email profile with succeeding login flows", () => { cy.visit(route) }) + // playwright:migrated it("should sign in and be logged in", () => { cy.get(`${appPrefix(app)}input[name="identifier"]`).type(email) cy.get('input[name="password"]').type(password) @@ -51,6 +53,7 @@ describe("Basic email profile with succeeding login flows", () => { }) }) + // playwright:migrated it("should sign in with case insensitive identifier surrounded by whitespace", () => { cy.get('input[name="identifier"]').type( " " + email.toUpperCase() + " ", @@ -69,6 +72,7 @@ describe("Basic email profile with succeeding login flows", () => { }) }) + // playwright:migrated it("should sign in and be redirected", () => { cy.browserReturnUrlOry() cy.visit(route + "?return_to=https://www.example.org/") @@ -82,6 +86,7 @@ describe("Basic email profile with succeeding login flows", () => { }) }) + // playwright:migrated describe("for app express handle return_to correctly for expired flows", () => { before(() => { cy.proxy("express") @@ -94,6 +99,7 @@ describe("Basic email profile with succeeding login flows", () => { cy.clearAllCookies() }) + // playwright:migrated it("should redirect to return_to when retrying expired flow", () => { cy.shortLoginLifespan() cy.wait(500) diff --git a/test/e2e/cypress/integration/profiles/email/login/ui.spec.ts b/test/e2e/cypress/integration/profiles/email/login/ui.spec.ts index ff65ea6ca6b4..a093d1dd7934 100644 --- a/test/e2e/cypress/integration/profiles/email/login/ui.spec.ts +++ b/test/e2e/cypress/integration/profiles/email/login/ui.spec.ts @@ -5,6 +5,7 @@ import { routes as express } from "../../../../helpers/express" import { routes as react } from "../../../../helpers/react" import { appPrefix } from "../../../../helpers" +// playwright:migrated context("UI tests using the email profile", () => { ;[ { @@ -28,6 +29,7 @@ context("UI tests using the email profile", () => { cy.visit(route) }) + // playwright:migrated it("should use the json schema titles", () => { cy.get(`${appPrefix(app)}input[name="identifier"]`) .parent() @@ -39,6 +41,7 @@ context("UI tests using the email profile", () => { cy.get('button[value="password"]').should("contain.text", "Sign in") }) + // playwright:migrated it("clicks the log in link", () => { cy.get('a[href*="registration"]').click() cy.location("pathname").should("include", "registration")