test(e2e): refactor e2e tests to modular structure and utilize lazy loading where possible

refactor e2e tests to modular structure and utilize lazy loading where possible
This commit is contained in:
Dan Bucholtz
2017-03-02 14:37:01 -06:00
parent 0d32e5e791
commit be79382386
638 changed files with 5725 additions and 3710 deletions

View File

@@ -1,6 +1,7 @@
import { Component, NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { FormControl, FormGroup } from '@angular/forms';
import { IonicApp, IonicModule, Toggle } from '../../../../../ionic-angular';
import { IonicApp, IonicModule, Toggle } from '../../../..';
@Component({
@@ -76,6 +77,7 @@ export class E2EApp {
E2EPage
],
imports: [
BrowserModule,
IonicModule.forRoot(E2EApp)
],
bootstrap: [IonicApp],

View File

@@ -1,3 +1,4 @@
import { by, element } from 'protractor';
it('should check apple via switch element click', function() {
element(by.css('[formControlName="apple"]')).click();

View File

@@ -0,0 +1,5 @@
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
import { AppModule } from './app.module';
platformBrowserDynamic().bootstrapModule(AppModule);