Skip to content

Commit

Permalink
chore: synchronize workspaces
Browse files Browse the repository at this point in the history
  • Loading branch information
aeneasr committed Jan 10, 2025
1 parent 1dd18c6 commit 79085d0
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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", () => {
;[
{
Expand All @@ -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",
Expand All @@ -38,14 +40,18 @@ 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",
{ app },
)
})

// 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
Expand Down

0 comments on commit 79085d0

Please sign in to comment.