diff --git a/e2e/animation-examples/e2e/resources/images/ng4animations/iPhone 7 12/add_active_items.png b/e2e/animation-examples/e2e/resources/images/ng4animations/iPhone 7 12/add_active_items.png new file mode 100644 index 000000000..121886eda Binary files /dev/null and b/e2e/animation-examples/e2e/resources/images/ng4animations/iPhone 7 12/add_active_items.png differ diff --git a/e2e/animation-examples/e2e/resources/images/ng4animations/iPhone 7 12/add_inactive_items.png b/e2e/animation-examples/e2e/resources/images/ng4animations/iPhone 7 12/add_inactive_items.png new file mode 100644 index 000000000..c8d8ffe29 Binary files /dev/null and b/e2e/animation-examples/e2e/resources/images/ng4animations/iPhone 7 12/add_inactive_items.png differ diff --git a/e2e/animation-examples/e2e/resources/images/ng4animations/iPhone 7 12/add_remove_items.png b/e2e/animation-examples/e2e/resources/images/ng4animations/iPhone 7 12/add_remove_items.png new file mode 100644 index 000000000..121886eda Binary files /dev/null and b/e2e/animation-examples/e2e/resources/images/ng4animations/iPhone 7 12/add_remove_items.png differ diff --git a/e2e/animation-examples/e2e/resources/images/ng4animations/iPhone 7 12/add_reset_items.png b/e2e/animation-examples/e2e/resources/images/ng4animations/iPhone 7 12/add_reset_items.png new file mode 100644 index 000000000..996b6c4e5 Binary files /dev/null and b/e2e/animation-examples/e2e/resources/images/ng4animations/iPhone 7 12/add_reset_items.png differ diff --git a/e2e/config/appium.capabilities.json b/e2e/config/appium.capabilities.json index 5f36a351c..62ffb633d 100644 --- a/e2e/config/appium.capabilities.json +++ b/e2e/config/appium.capabilities.json @@ -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", diff --git a/e2e/routable-animations/e2e/resources/images/nsroanimations/Emulator-Api21-Default/home.png b/e2e/routable-animations/e2e/resources/images/nsroanimations/Emulator-Api21-Default/home.png new file mode 100644 index 000000000..c717be762 Binary files /dev/null and b/e2e/routable-animations/e2e/resources/images/nsroanimations/Emulator-Api21-Default/home.png differ diff --git a/e2e/routable-animations/e2e/resources/images/nsroanimations/Emulator-Api21-Default/support.png b/e2e/routable-animations/e2e/resources/images/nsroanimations/Emulator-Api21-Default/support.png new file mode 100644 index 000000000..c3009df52 Binary files /dev/null and b/e2e/routable-animations/e2e/resources/images/nsroanimations/Emulator-Api21-Default/support.png differ diff --git a/e2e/routable-animations/e2e/resources/images/nsroanimations/Emulator-Api22-Default/home.png b/e2e/routable-animations/e2e/resources/images/nsroanimations/Emulator-Api22-Default/home.png new file mode 100644 index 000000000..6ff400d3d Binary files /dev/null and b/e2e/routable-animations/e2e/resources/images/nsroanimations/Emulator-Api22-Default/home.png differ diff --git a/e2e/routable-animations/e2e/resources/images/nsroanimations/Emulator-Api22-Default/support.png b/e2e/routable-animations/e2e/resources/images/nsroanimations/Emulator-Api22-Default/support.png new file mode 100644 index 000000000..a55be3589 Binary files /dev/null and b/e2e/routable-animations/e2e/resources/images/nsroanimations/Emulator-Api22-Default/support.png differ diff --git a/e2e/routable-animations/e2e/resources/images/nsroanimations/Emulator-Api24-Default/home.png b/e2e/routable-animations/e2e/resources/images/nsroanimations/Emulator-Api24-Default/home.png new file mode 100644 index 000000000..7e55d9dde Binary files /dev/null and b/e2e/routable-animations/e2e/resources/images/nsroanimations/Emulator-Api24-Default/home.png differ diff --git a/e2e/routable-animations/e2e/resources/images/nsroanimations/Emulator-Api24-Default/support.png b/e2e/routable-animations/e2e/resources/images/nsroanimations/Emulator-Api24-Default/support.png new file mode 100644 index 000000000..6272bebf8 Binary files /dev/null and b/e2e/routable-animations/e2e/resources/images/nsroanimations/Emulator-Api24-Default/support.png differ diff --git a/e2e/routable-animations/e2e/resources/images/nsroanimations/Emulator-Api25-Google/home.png b/e2e/routable-animations/e2e/resources/images/nsroanimations/Emulator-Api25-Google/home.png new file mode 100644 index 000000000..d54e5fc0e Binary files /dev/null and b/e2e/routable-animations/e2e/resources/images/nsroanimations/Emulator-Api25-Google/home.png differ diff --git a/e2e/routable-animations/e2e/resources/images/nsroanimations/Emulator-Api25-Google/support.png b/e2e/routable-animations/e2e/resources/images/nsroanimations/Emulator-Api25-Google/support.png new file mode 100644 index 000000000..d583b6dcf Binary files /dev/null and b/e2e/routable-animations/e2e/resources/images/nsroanimations/Emulator-Api25-Google/support.png differ diff --git a/e2e/routable-animations/e2e/resources/images/nsroanimations/Emulator-Api26-Google/home.png b/e2e/routable-animations/e2e/resources/images/nsroanimations/Emulator-Api26-Google/home.png new file mode 100644 index 000000000..40de7e9c1 Binary files /dev/null and b/e2e/routable-animations/e2e/resources/images/nsroanimations/Emulator-Api26-Google/home.png differ diff --git a/e2e/routable-animations/e2e/resources/images/nsroanimations/Emulator-Api26-Google/support.png b/e2e/routable-animations/e2e/resources/images/nsroanimations/Emulator-Api26-Google/support.png new file mode 100644 index 000000000..bad8bb6e4 Binary files /dev/null and b/e2e/routable-animations/e2e/resources/images/nsroanimations/Emulator-Api26-Google/support.png differ diff --git a/e2e/routable-animations/e2e/resources/images/nsroanimations/Emulator-Api28-Google/home.png b/e2e/routable-animations/e2e/resources/images/nsroanimations/Emulator-Api28-Google/home.png new file mode 100644 index 000000000..985b2bacd Binary files /dev/null and b/e2e/routable-animations/e2e/resources/images/nsroanimations/Emulator-Api28-Google/home.png differ diff --git a/e2e/routable-animations/e2e/resources/images/nsroanimations/Emulator-Api28-Google/support.png b/e2e/routable-animations/e2e/resources/images/nsroanimations/Emulator-Api28-Google/support.png new file mode 100644 index 000000000..e83f97176 Binary files /dev/null and b/e2e/routable-animations/e2e/resources/images/nsroanimations/Emulator-Api28-Google/support.png differ diff --git a/e2e/routable-animations/e2e/resources/images/nsroanimations/iPhone 7 12/home.png b/e2e/routable-animations/e2e/resources/images/nsroanimations/iPhone 7 12/home.png new file mode 100644 index 000000000..81be31153 Binary files /dev/null and b/e2e/routable-animations/e2e/resources/images/nsroanimations/iPhone 7 12/home.png differ diff --git a/e2e/routable-animations/e2e/resources/images/nsroanimations/iPhone 7 12/support.png b/e2e/routable-animations/e2e/resources/images/nsroanimations/iPhone 7 12/support.png new file mode 100644 index 000000000..37ed5d73d Binary files /dev/null and b/e2e/routable-animations/e2e/resources/images/nsroanimations/iPhone 7 12/support.png differ diff --git a/e2e/routable-animations/e2e/setup.ts b/e2e/routable-animations/e2e/setup.ts index 8b26e66e9..9c7b955b3 100644 --- a/e2e/routable-animations/e2e/setup.ts +++ b/e2e/routable-animations/e2e/setup.ts @@ -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(); }); diff --git a/e2e/routable-animations/e2e/tests.e2e.ts b/e2e/routable-animations/e2e/tests.e2e.ts index 170b8813c..a8c6e0c4b 100644 --- a/e2e/routable-animations/e2e/tests.e2e.ts +++ b/e2e/routable-animations/e2e/tests.e2e.ts @@ -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!"); }); @@ -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); @@ -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); diff --git a/e2e/router/e2e/router.e2e-spec.ts b/e2e/router/e2e/router.e2e-spec.ts index 2af62f001..010d282fa 100644 --- a/e2e/router/e2e/router.e2e-spec.ts +++ b/e2e/router/e2e/router.e2e-spec.ts @@ -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(); }); @@ -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");