Skip to content

Commit adaf009

Browse files
committed
Fixed E2E tests fatally failing
1 parent 308c00a commit adaf009

File tree

3 files changed

+9
-14
lines changed

3 files changed

+9
-14
lines changed

demo-angular/e2e/config/appium.capabilities.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,4 +119,4 @@
119119
"fullReset": false,
120120
"app": ""
121121
}
122-
}
122+
}

demo-angular/e2e/on-raddrawer-navigate-crash.e2e-spec.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11

2-
import { AppiumDriver, createDriver, SearchOptions, nsCapabilities } from "nativescript-dev-appium";
3-
import { assert } from "chai";
4-
const addContext = require('mochawesome/addContext');
2+
import { AppiumDriver, createDriver, nsCapabilities } from "nativescript-dev-appium";
53

64
/**
75
* Iterate navigation between the home and test crash pages
@@ -14,7 +12,7 @@ async function HomeToTestCrashNavigation( driver : any, group : number, iteratio
1412
for ( let i = 0; i < iterations; i++ ) {
1513

1614
timestamp = Date.now();
17-
15+
1816
let btn = await driver.findElementByClassName('android.widget.ImageButton');
1917
await btn.click();
2018

@@ -53,7 +51,7 @@ describe( "Rad Drawer View Navigation Crash", async () => {
5351
let driver: AppiumDriver;
5452

5553
before(async function(){
56-
nsCapabilities.testReporter.context = this;
54+
nsCapabilities.testReporter.context = this;
5755
driver = await createDriver();
5856
});
5957

demo-angular/e2e/tsconfig.json

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"compilerOptions": {
3-
"module": "esnext",
4-
"target": "es2017",
3+
"module": "commonjs",
4+
"target": "es6",
55
"experimentalDecorators": true,
66
"emitDecoratorMetadata": true,
77
"importHelpers": false,
@@ -11,12 +11,9 @@
1111
"node"
1212
],
1313
"lib": [
14-
"es6",
15-
"dom",
16-
"es2017"
14+
"es2015",
15+
"dom"
1716
],
18-
"baseUrl": ".",
19-
"moduleResolution": "node",
20-
"removeComments": false
17+
"baseUrl": "."
2118
}
2219
}

0 commit comments

Comments
 (0)