Skip to content

Commit

Permalink
fix: ios timing bugs and device id
Browse files Browse the repository at this point in the history
  • Loading branch information
ntheile committed Nov 22, 2022
1 parent cee14bf commit b53979f
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 2 deletions.
11 changes: 11 additions & 0 deletions docs/e2e-testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,3 +111,14 @@ android
"automationName": "UiAutomator2"
}
```

ios on browserstack - choose 'select cloud providers' then 'browserstack'

```
{
"appium:deviceName": "iPhone 13",
"appium:automationName": "XCUITest",
"appium:platformVersion": "15.1",
"appium:app": "bs://{YOUR_BROWSERSTACK_ID_FROM_CIRCLE_CI}"
}
```
2 changes: 2 additions & 0 deletions e2e/02-login-flow.e2e.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ describe("Login Flow", async () => {
const buildButton = await $(selector("Version Build Text", "StaticText"))
await buildButton.waitForDisplayed({ timeout })
await buildButton.click()
await browser.pause(800)
await buildButton.click()
await browser.pause(800)
await buildButton.click()
})

Expand Down
13 changes: 13 additions & 0 deletions e2e/04-payments-receive-flow.e2e.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,19 @@ describe("Receive Payment Flow", async () => {
expect(payResult).toBeTruthy()
})

it("Click ok for allowing push notifications popup", async () => {
try {
const okButton = await $(selector(LL.common.ok()))
await okButton.waitForDisplayed({ timeout: 3000 })
await okButton.click()
const allowButton = await $(selector("Allow"))
await allowButton.waitForDisplayed({ timeout: 3000 })
await allowButton.click()
} catch (e) {
// keep going, it might have already been clicked
}
})

it("Wait for Green check", async () => {
const successCheck = await $(selector("Success Icon", "Other"))
await successCheck.waitForDisplayed({ timeout })
Expand Down
4 changes: 2 additions & 2 deletions e2e/config/browserstack.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ if (process.env.E2E_DEVICE === "ios") {
"project": "ios Test",
"build": "ios Local",
"name": "local_test_ios",
"device": "iPhone 11 Pro",
"os_version": "13.4",
"device": "iPhone 13",
"os_version": "15.1",
"app": process.env.BROWSERSTACK_APP_ID,
"browserstack.local": true,
"browserstack.debug": true,
Expand Down

0 comments on commit b53979f

Please sign in to comment.