Skip to content

add: missing test images #1843

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 3, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions e2e/config/appium.capabilities.json
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,13 @@
"noReset": true,
"fullReset": false
},
"sim.iPhone7.ios12": {
"platformName": "iOS",
"platformVersion": "12.0",
"deviceName": "iPhone 7",
"noReset": true,
"fullReset": false
},
"sim.iPhone8.iOS112": {
"platformName": "iOS",
"platformVersion": "11.2",
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions e2e/routable-animations/e2e/setup.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { startServer, stopServer } from "nativescript-dev-appium";

before("start server", async () => {
before("start server", async function () {
await startServer();
});

after("stop server", async () => {
after("stop server", async function () {
await stopServer();
});
8 changes: 4 additions & 4 deletions e2e/routable-animations/e2e/tests.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ describe("sample scenario", () => {
const defaultWaitTime = 5000;
let driver: AppiumDriver;

before(async () => {
before(async function () {
driver = await createDriver();
});

after(async () => {
after(async function () {
await driver.quit();
console.log("Quit driver!");
});
Expand All @@ -20,7 +20,7 @@ describe("sample scenario", () => {
}
});

it("should go to support page", async () => {
it("should go to support page", async function () {
const btnGoToSupportPage = await driver.findElementByAutomationText("go to support page");
const homeImage = await driver.compareScreen("home");
assert.isTrue(homeImage);
Expand All @@ -29,7 +29,7 @@ describe("sample scenario", () => {
console.log(await titleSupportPage.text());
});

it("should go back to home page", async () => {
it("should go back to home page", async function () {
const btnGoBackToHomePage = await driver.findElementByAutomationText("go back to home page");
const supportImage = await driver.compareScreen("support");
assert.isTrue(supportImage);
Expand Down
12 changes: 6 additions & 6 deletions e2e/router/e2e/router.e2e-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@ describe("Simple navigate and back should trigger only one CD on FirstComponent"
describe("Simple navigate and back should trigger only one CD on FirstComponent even with 3 changes in service", () => {
let driver: AppiumDriver;

before(async () => {
before(async function () {
driver = await createDriver();
await driver.resetApp();
});
Expand All @@ -529,30 +529,30 @@ describe("Simple navigate and back should trigger only one CD on FirstComponent
}
});

it("should find First", async () => {
it("should find First", async function () {
await assureFirstComponent(driver);
});

it("should reset counter", async () => {
it("should reset counter", async function () {
await findAndClick(driver, "RESET");
await driver.waitForElement("CHECK: 1");
await driver.waitForElement("COUNTER: 0");
});

it("should navigate to Second(1)/master", async () => {
it("should navigate to Second(1)/master", async function () {
await findAndClick(driver, "GO TO SECOND");

await assureSecondComponent(driver, 1);
await assureNestedMasterComponent(driver);
});

it("should increase counter", async () => {
it("should increase counter", async function () {
await findAndClick(driver, "TICK");
await findAndClick(driver, "TICK");
await findAndClick(driver, "TICK");
});

it("should navigate back to First", async () => {
it("should navigate back to First", async function () {
await goBack(driver);
await assureFirstComponent(driver);
await driver.waitForElement("CHECK: 2");
Expand Down