Skip to content

Files

Latest commit

e3657c4 · Nov 17, 2020

History

History

e2e

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Nov 17, 2020
Oct 7, 2019
Jul 30, 2020
Jul 30, 2020
Jul 30, 2020
Jul 30, 2020
Jul 30, 2020
Jul 30, 2020
Jul 30, 2020
Sep 21, 2020
Apr 27, 2018

README.md

NativeScript Angular E2E Tests

This folder contains a number of projects containing e2e tests for NativeScript Angular integration.

Projects Description

  • renderer - Tests for the nativescript-angular renderer features. Creating/adding/removing elements for the nativescript visual tree.

  • router - Tests for angular router and navigation. This app contains a mixed scenario with <page-router-outlet> and <router-outlet>.

  • single-page - Tests for angular router and navigation. This is a simple app with only one level navigation using <router-outlet>.

  • modal-navigation-ng - Tests for different scenarios of showing and navigation in modal dialogs.

  • router-tab-view - Tests for navigation in a TabComponent containing named(aux) <page-router-outlet> instances.

Global Appium Setup

Install external dependencies for nativescript-dev-appium described here.

All projects use the same appium capabilities files.

Running Tests

Make sure you build or run the project with the NativeScript CLI first:

tns build android
tns run ios

Run appium tests with the e2e npm task. Check ns-dev-appium options here

Examples:

npm run e2e -- --runType android23

npm run e2e -- --runType sim.iPhone8.iOS112

For development you can use --devMode flag to reuse the current emulator and the currently installed application:

Examples:

npm run e2e -- --runType android23 --devMode

npm run e2e -- --runType sim.iPhone8.iOS112 --devMode