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 ab8d9fa commit 0d77806
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions test/e2e/playwright/models/elements/login.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,16 +143,18 @@ export class LoginPage {
}

async submit(method: string, opts?: SubmitOptions) {
const nav = opts?.waitForURL
? this.page.waitForURL(opts.waitForURL)
: Promise.resolve()
const waitFor = [
opts?.waitForURL
? this.page.waitForURL(opts.waitForURL)

Check failure on line 148 in test/e2e/playwright/models/elements/login.ts

View workflow job for this annotation

GitHub Actions / Run Playwright end-to-end tests (sqlite)

[chromium] › desktop/identifier_first/password.login.spec.ts:75:7 › account enumeration protection off › login with refresh

1) [chromium] › desktop/identifier_first/password.login.spec.ts:75:7 › account enumeration protection off › login with refresh Error: page.waitForURL: Test timeout of 30000ms exceeded. =========================== logs =========================== waiting for navigation until "load" ============================================================ at ../models/elements/login.ts:148 146 | const waitFor = [ 147 | opts?.waitForURL > 148 | ? this.page.waitForURL(opts.waitForURL) | ^ 149 | : Promise.resolve(), 150 | ] 151 | if (opts?.submitWithKeyboard) { at LoginPage.submit (/home/runner/work/kratos/kratos/test/e2e/playwright/models/elements/login.ts:148:21) at /home/runner/work/kratos/kratos/test/e2e/playwright/tests/desktop/identifier_first/password.login.spec.ts:104:17

Check failure on line 148 in test/e2e/playwright/models/elements/login.ts

View workflow job for this annotation

GitHub Actions / Run Playwright end-to-end tests (postgres)

[chromium] › desktop/identifier_first/password.login.spec.ts:75:7 › account enumeration protection off › login with refresh

1) [chromium] › desktop/identifier_first/password.login.spec.ts:75:7 › account enumeration protection off › login with refresh Error: page.waitForURL: Test timeout of 30000ms exceeded. =========================== logs =========================== waiting for navigation until "load" ============================================================ at ../models/elements/login.ts:148 146 | const waitFor = [ 147 | opts?.waitForURL > 148 | ? this.page.waitForURL(opts.waitForURL) | ^ 149 | : Promise.resolve(), 150 | ] 151 | if (opts?.submitWithKeyboard) { at LoginPage.submit (/home/runner/work/kratos/kratos/test/e2e/playwright/models/elements/login.ts:148:21) at /home/runner/work/kratos/kratos/test/e2e/playwright/tests/desktop/identifier_first/password.login.spec.ts:104:17

Check failure on line 148 in test/e2e/playwright/models/elements/login.ts

View workflow job for this annotation

GitHub Actions / Run Playwright end-to-end tests (cockroach)

[chromium] › desktop/identifier_first/password.login.spec.ts:75:7 › account enumeration protection off › login with refresh

1) [chromium] › desktop/identifier_first/password.login.spec.ts:75:7 › account enumeration protection off › login with refresh Error: page.waitForURL: Test timeout of 30000ms exceeded. =========================== logs =========================== waiting for navigation until "load" ============================================================ at ../models/elements/login.ts:148 146 | const waitFor = [ 147 | opts?.waitForURL > 148 | ? this.page.waitForURL(opts.waitForURL) | ^ 149 | : Promise.resolve(), 150 | ] 151 | if (opts?.submitWithKeyboard) { at LoginPage.submit (/home/runner/work/kratos/kratos/test/e2e/playwright/models/elements/login.ts:148:21) at /home/runner/work/kratos/kratos/test/e2e/playwright/tests/desktop/identifier_first/password.login.spec.ts:104:17

Check failure on line 148 in test/e2e/playwright/models/elements/login.ts

View workflow job for this annotation

GitHub Actions / Run Playwright end-to-end tests (mysql)

[chromium] › desktop/identifier_first/password.login.spec.ts:75:7 › account enumeration protection off › login with refresh

1) [chromium] › desktop/identifier_first/password.login.spec.ts:75:7 › account enumeration protection off › login with refresh Error: page.waitForURL: Test timeout of 30000ms exceeded. =========================== logs =========================== waiting for navigation until "load" ============================================================ at ../models/elements/login.ts:148 146 | const waitFor = [ 147 | opts?.waitForURL > 148 | ? this.page.waitForURL(opts.waitForURL) | ^ 149 | : Promise.resolve(), 150 | ] 151 | if (opts?.submitWithKeyboard) { at LoginPage.submit (/home/runner/work/kratos/kratos/test/e2e/playwright/models/elements/login.ts:148:21) at /home/runner/work/kratos/kratos/test/e2e/playwright/tests/desktop/identifier_first/password.login.spec.ts:104:17
: Promise.resolve(),
]
if (opts?.submitWithKeyboard) {
await this.page.keyboard.press("Enter")
waitFor.push(this.page.keyboard.press("Enter"))
} else {
await this.submitMethod(method).click()
waitFor.push(this.submitMethod(method).click())
}

await nav
await Promise.all(waitFor)
}

//
Expand Down

0 comments on commit 0d77806

Please sign in to comment.