Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
Frederik Rothenberger committed Mar 14, 2024
1 parent dcb1f0c commit 9273bb3
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/frontend/src/test-e2e/flows.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,18 +120,19 @@ export const FLOWS = {
// * Expecting an error because PIN is not allowed
// If the PIN authn view is returned then carry forward;
// otherwise return that PIN is not allowed
console.error("before promise race")
console.error("before promise race");
const result = await Promise.race([
pinAuthView.waitForDisplay()
pinAuthView
.waitForDisplay()
.then(() => console.error("Race: promise pin_allowed settled"))
.then(() => "pin_allowed" as const),
browser
.$("#errorContainer [data-error-code=\"pinNotAllowed\"]")
.$('#errorContainer [data-error-code="pinNotAllowed"]')
.waitForDisplayed()
.then(() => console.error("Race: promise pin_disallowed settled"))
.then(() => "pin_disallowed" as const)
.then(() => "pin_disallowed" as const),
]);
console.error("after promise race")
console.error("after promise race");
if (result === "pin_disallowed") {
return "pin_disallowed";
}
Expand Down

0 comments on commit 9273bb3

Please sign in to comment.