Skip to content

Commit

Permalink
test: fix e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolas Burtey committed Jul 16, 2023
1 parent 74c6901 commit 07d813c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions e2e/02-login-flow.e2e.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ describe("Login Flow", () => {
const emailInput = await $(
selector(LL.EmailRegistrationInitiateScreen.placeholder(), "Other", "[1]"),
)

await emailInput.waitForDisplayed({ timeout })
await emailInput.click()
await emailInput.setValue(email)
Expand Down
9 changes: 9 additions & 0 deletions e2e/05-payments-receive-flow.e2e.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,18 @@ describe("Receive BTC Amount Payment Flow", () => {

it("Click Request Specific Amount", async () => {
await clickPressable(LL.ReceiveWrapperScreen.addAmount())

// we need to wait for the notifications permissions pop up
// and click allow before we can continue
await browser.pause(4000)
try {
const allowButton = await $(selector("Allow", "Button"))
if (await allowButton.isDisplayed()) {
await allowButton.click()
}
} catch (error) {
// Ignore the error if the "Allow" button isn't found
}
})

it("Enter Amount", async () => {
Expand Down

0 comments on commit 07d813c

Please sign in to comment.