Skip to content

Commit 75ca827

Browse files
tests: fix uitests for UIAutomator2
1 parent d753aff commit 75ca827

File tree

4 files changed

+15
-37452
lines changed

4 files changed

+15
-37452
lines changed

e2e/pages/animation-builder-page.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ import { BasePage } from "./base-page";
33

44
export class AnimationBuilderPage extends BasePage {
55
static tapToDisappear: string = "tapToDisappear";
6-
private _btnTapToDisappear: Promise<UIElement>;
7-
6+
87
constructor(driver: AppiumDriver) {
98
super(driver);
109
}
@@ -15,12 +14,12 @@ export class AnimationBuilderPage extends BasePage {
1514
}
1615

1716
async executeAnimation() {
18-
this._btnTapToDisappear = this._driver.waitForElement(AnimationBuilderPage.tapToDisappear);
17+
const btnTapToDisappear = await this._driver.waitForElement(AnimationBuilderPage.tapToDisappear);
1918
console.log("Btn tap to disappear should disappear");
20-
await (await this._btnTapToDisappear).click();
19+
await btnTapToDisappear.click();
2120
}
2221

2322
async waitElementToHide(wait: number) {
24-
return this.waitElementTo(() => this._btnTapToDisappear, false, wait);
23+
return this.waitElementTo(() => this._driver.waitForElement(AnimationBuilderPage.tapToDisappear), false, wait);
2524
}
2625
}

package.json

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
"id": "org.nativescript.ng4animations",
88
"tns-ios": {
99
"version": "latest"
10+
},
11+
"tns-android": {
12+
"version": "5.4.0-2019-05-02-235338-05"
1013
}
1114
},
1215
"dependencies": {
@@ -19,11 +22,11 @@
1922
"@angular/platform-browser": "~7.2.0",
2023
"@angular/platform-browser-dynamic": "~7.2.0",
2124
"@angular/router": "~7.2.0",
22-
"nativescript-angular": "next",
25+
"nativescript-angular": "^7.2.4-next-2019-05-06-201428-01",
2326
"nativescript-theme-core": "~1.0.2",
2427
"reflect-metadata": "~0.1.8",
2528
"rxjs": "^6.3.3",
26-
"tns-core-modules": "latest",
29+
"tns-core-modules": "^5.4.0-next-2019-05-01-141636-02",
2730
"zone.js": "^0.8.4"
2831
},
2932
"devDependencies": {
@@ -40,14 +43,17 @@
4043
"mochawesome": "~3.1.2",
4144
"nativescript-css-loader": "~0.26.0",
4245
"nativescript-dev-appium": "next",
43-
"nativescript-dev-typescript": "^0.7.0",
44-
"nativescript-dev-webpack": "next",
46+
"nativescript-dev-typescript": "^0.9.1-next-2019-03-12-162713-03",
47+
"nativescript-dev-webpack": "^0.22.0-next-2019-04-17-111030-01",
4548
"typescript": "~3.1.1"
4649
},
4750
"scripts": {
4851
"u": "update-ns-webpack",
4952
"e2e": "tsc -p e2e && mocha --opts ./e2e/config/mocha.opts",
5053
"e2e-watch": "tsc -p e2e --watch",
51-
"e2e-compile": "tsc -p e2e"
54+
"e2e-compile": "tsc -p e2e",
55+
"update-app-ng-deps": "update-app-ng-deps",
56+
"ns-verify-bundle": "ns-verify-bundle",
57+
"update-ns-webpack": "update-ns-webpack"
5258
}
5359
}

report/report.html

Lines changed: 0 additions & 25 deletions
This file was deleted.

0 commit comments

Comments
 (0)