mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
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:
@@ -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],
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import { by, element } from 'protractor';
|
||||
|
||||
it('should check apple via switch element click', function() {
|
||||
element(by.css('[formControlName="apple"]')).click();
|
||||
|
||||
5
src/components/toggle/test/basic/main.ts
Normal file
5
src/components/toggle/test/basic/main.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
|
||||
|
||||
import { AppModule } from './app.module';
|
||||
|
||||
platformBrowserDynamic().bootstrapModule(AppModule);
|
||||
Reference in New Issue
Block a user