Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Frederik Rothenberger committed Mar 14, 2024
1 parent 1319b48 commit 8093729
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 19 deletions.
14 changes: 0 additions & 14 deletions src/frontend/src/test-e2e/flows.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,20 +104,6 @@ export const FLOWS = {
const mainView = new MainView(browser);
await mainView.waitForDeviceDisplay(deviceName);
},

// login with PIN expecting the PIN disallowed error screen
loginPinAuthDisabled: async (
userNumber: string,
pin: string,
browser: WebdriverIO.Browser
): Promise<void> => {
const authenticateView = new AuthenticateView(browser);
await authenticateView.waitForDisplay();
await authenticateView.pickAnchor(userNumber);
await browser
.$('#errorContainer [data-error-code="pinNotAllowed"]')
.waitForDisplayed();
},
loginPinAuthenticateView: async (
userNumber: string,
pin: string,
Expand Down
11 changes: 6 additions & 5 deletions src/frontend/src/test-e2e/pinAuthDisabled.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,11 @@ test("Cannot auth with PIN if dapp disallows PIN", async () => {

await switchToPopup(browser);

await FLOWS.loginPinAuthDisabled(
userNumber,
pin,
browser
);
const authenticateView = new AuthenticateView(browser);
await authenticateView.waitForDisplay();
await authenticateView.pickAnchor(userNumber);
await browser
.$('#errorContainer [data-error-code="pinNotAllowed"]')
.waitForDisplayed();
}, APPLE_USER_AGENT);
}, 300_000);

0 comments on commit 8093729

Please sign in to comment.