Skip to content

Commit 4ac4f6b

Browse files
tests: include more images for iPhone XR
1 parent 5857386 commit 4ac4f6b

12 files changed

+15
-11
lines changed

e2e/pages/animation-builder-page.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ export class AnimationBuilderPage extends BasePage {
1010
}
1111

1212
async enterExample() {
13-
const exampleBtn = await this._driver.findElementByAccessibilityId("builder");
13+
const exampleBtn = await this._driver.findElementByAutomationText("builder");
1414
await exampleBtn.click();
1515
}
1616

1717
async executeAnimation() {
18-
this._btnTapToDisappear = this._driver.findElementByAccessibilityId(AnimationBuilderPage.tapToDisappear);
18+
this._btnTapToDisappear = this._driver.waitForElement(AnimationBuilderPage.tapToDisappear);
1919
console.log("Btn tap to disappear should disappear");
2020
await (await this._btnTapToDisappear).click();
2121
}

e2e/pages/base-page.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ export class BasePage {
77
this._elementHelper = new ElementHelper(this._driver.nsCapabilities);
88
}
99

10-
async waitElementTo(element: () => Promise<UIElement>, shouldBeVissible: boolean, wait: number) {
10+
async waitElementTo(element: () => Promise<UIElement>, shouldBeVisible: boolean, wait: number) {
1111
const start = Date.now();
1212
let btn = await element();
13-
while ((await this.isBtnDisplayed(btn)) !== shouldBeVissible && Date.now() - start <= wait) {
13+
while ((await this.isBtnDisplayed(btn)) !== shouldBeVisible && Date.now() - start <= wait) {
1414
btn = await element();
1515
}
1616

e2e/pages/extarnal-animation-page.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,17 @@ export class ExternalAnimationPage extends BasePage {
77
}
88

99
async enterExample() {
10-
const exampleBtn = await this._driver.findElementByAccessibilityId("external");
10+
const exampleBtn = await this._driver.waitForElement("external");
1111
await exampleBtn.click();
1212
}
1313

1414
async toggleAnimation() {
15-
const btnTapToDisappear = await this._driver.findElementByAccessibilityId("toggleAnimation", 5);
15+
const btnTapToDisappear = await this._driver.waitForElement("toggleAnimation");
1616
await btnTapToDisappear.click();
1717
}
1818

1919
animatedBtn() {
20-
return this._driver.findElementByAccessibilityIdIfExists("animatedBtn", 5);
20+
return this._driver.waitForElement("animatedBtn");
2121
}
2222

2323
async waitElementToToggleVisibilityTo(shouldBeVisible: boolean) {
481 KB
Loading
605 KB
Loading
543 KB
Loading
299 KB
Loading
272 KB
Loading
337 KB
Loading
302 KB
Loading

0 commit comments

Comments
 (0)