Skip to content

Commit

Permalink
chore: synchronize workspaces
Browse files Browse the repository at this point in the history
  • Loading branch information
aeneasr committed Aug 13, 2024
1 parent 0d77806 commit b6d5942
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 6 deletions.
1 change: 1 addition & 0 deletions test/e2e/playwright/models/elements/login.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ export class LoginPage {
? this.page.waitForURL(opts.waitForURL)
: Promise.resolve(),
]

if (opts?.submitWithKeyboard) {
waitFor.push(this.page.keyboard.press("Enter"))
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { test } from "../../../fixtures"
import { extractCode, toConfig } from "../../../lib/helper"
import { LoginPage } from "../../../models/elements/login"

test.describe.parallel("account enumeration protection off", () => {
test.describe("account enumeration protection off", () => {
test.use({
configOverride: toConfig({
style: "identifier_first",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,19 @@ test.describe("account enumeration protection off", () => {
configOverride: toConfig({
style: "identifier_first",
mitigateEnumeration: false,
selfservice:{
methods: {
password: {
enabled: true
},
code: {
passwordless_enabled: false,
},
},
}
}),
})

test.describe.configure({ mode: "parallel" })

test("login fails because user does not exist", async ({ page, config }) => {
const login = new LoginPage(page, config)
await login.open()
Expand Down Expand Up @@ -118,10 +126,19 @@ test.describe("account enumeration protection on", () => {
configOverride: toConfig({
style: "identifier_first",
mitigateEnumeration: true,
selfservice: {
methods: {
password: {
enabled: true
},
code: {
passwordless_enabled: false,
},
},
},
}),
})

test.describe.configure({ mode: "parallel" })
test("login fails because user does not exist", async ({ page, config }) => {
const login = new LoginPage(page, config)
await login.open()
Expand Down
2 changes: 0 additions & 2 deletions test/e2e/playwright/tests/mobile/app_login.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
import { expect, Page } from "@playwright/test"
import { test } from "../../fixtures"

test.describe.configure({ mode: "parallel" })

async function performOidcLogin(popup: Page, username: string) {
await popup.waitForLoadState()

Expand Down

0 comments on commit b6d5942

Please sign in to comment.