Skip to content

Commit 4ce38fe

Browse files
Zdravko BranzovZdravko Branzov
Zdravko Branzov
authored and
Zdravko Branzov
committed
chore: stabilise tests
1 parent 1fc9821 commit 4ce38fe

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

e2e/config/mocha.opts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
--timeout 140000
1+
--timeout 60000
22
--recursive e2e
33
--reporter mocha-multi
44
--reporter-options spec=-,mocha-junit-reporter=test-results.xml

e2e/modal-navigation-ng/e2e/screens/screen.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { AppiumDriver } from "nativescript-dev-appium";
1+
import { AppiumDriver, SearchOptions } from "nativescript-dev-appium";
22
import { assert } from "chai";
33

44
const home = "Home Component"
@@ -166,7 +166,7 @@ export class Screen {
166166
}
167167

168168
private showSharedModalPresentationStyle = async () => {
169-
const btnTap = await this._driver.waitForElement("Show shared 'popover' modal");
169+
const btnTap = await this._driver.findElementByText("popover", SearchOptions.contains);
170170
await btnTap.click();
171171
}
172172

@@ -217,6 +217,7 @@ export class Screen {
217217
}
218218

219219
loadedModalNoFrame = async () => {
220+
await this._driver.wait(2000);
220221
const btnShowDialogConfirm = await this._driver.waitForElement(showDialog);
221222
const btnCloseModal = await this._driver.waitForElement(closeModal);
222223
assert.isTrue(await btnShowDialogConfirm.isDisplayed());

0 commit comments

Comments
 (0)