test(app): update typography e2e test to work

This commit is contained in:
Brandy Carney
2017-05-01 11:09:44 -04:00
parent d701799d8b
commit b96e31bf30
7 changed files with 63 additions and 31 deletions

View File

@ -1,25 +0,0 @@
import { Component, NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { IonicApp, IonicModule, App } from '../../../..';
@Component({
templateUrl: 'main.html'
})
export class AppComponent {
constructor(app: App) {
app.setTitle('Basic Buttons');
}
}
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
IonicModule.forRoot(AppComponent)
],
bootstrap: [IonicApp]
})
export class AppModule {}

View File

@ -0,0 +1,9 @@
import { Component } from '@angular/core';
import { PageOne } from '../pages/page-one/page-one';
@Component({
template: '<ion-nav [root]="rootPage"></ion-nav>'
})
export class AppComponent {
rootPage = PageOne;
}

View File

@ -0,0 +1,21 @@
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { IonicApp, IonicModule } from '../../../../..';
import { AppComponent } from './app.component';
import { PageOneModule } from '../pages/page-one/page-one.module';
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
IonicModule.forRoot(AppComponent, {}),
PageOneModule
],
bootstrap: [IonicApp],
entryComponents: [
]
})
export class AppModule {}

View File

@ -11,11 +11,11 @@
<h1>H1: The quick brown fox jumps over the lazy dog</h1> <h1>H1: The quick brown fox jumps over the lazy dog</h1>
<h2 primary>H2: The quick brown fox jumps over the lazy dog</h2> <h2 ion-text color="primary">H2: The quick brown fox jumps over the lazy dog</h2>
<h3>H3: The quick brown fox jumps over the lazy dog</h3> <h3>H3: The quick brown fox jumps over the lazy dog</h3>
<h4 danger>H4: The quick brown fox jumps over the lazy dog</h4> <h4 ion-text color="danger">H4: The quick brown fox jumps over the lazy dog</h4>
<h5>H5: The quick brown fox jumps over the lazy dog</h5> <h5>H5: The quick brown fox jumps over the lazy dog</h5>
@ -23,9 +23,9 @@
<p> <p>
I saw a werewolf with a Chinese menu in his hand. I saw a werewolf with a Chinese menu in his hand.
Walking through the <sub danger>streets</sub> of Soho in the rain. Walking through the <sub ion-text color="danger">streets</sub> of Soho in the rain.
He <i primary>was</i> looking for a place called Lee Ho Fook's. He <i ion-text color="primary">was</i> looking for a place called Lee Ho Fook's.
Gonna get a <a secondary>big dish of beef chow mein.</a> Gonna get a <a ion-text color="secondary">big dish of beef chow mein.</a>
</p> </p>
<p> <p>
@ -34,7 +34,7 @@
Better stay away from him. Better stay away from him.
He'll rip your lungs out, Jim. He'll rip your lungs out, Jim.
I'd like to meet his tailor. I'd like to meet his tailor.
<ion-icon danger name="cut"></ion-icon> <ion-icon ion-text color="danger" name="cut"></ion-icon>
</p> </p>
</ion-content> </ion-content>

View File

@ -0,0 +1,17 @@
import { NgModule } from '@angular/core';
import { IonicPageModule } from '../../../../../..';
import { PageOne } from './page-one';
@NgModule({
declarations: [
PageOne,
],
imports: [
IonicPageModule.forChild(PageOne),
],
entryComponents: [
PageOne,
]
})
export class PageOneModule {}

View File

@ -0,0 +1,10 @@
import { Component } from '@angular/core';
import { IonicPage } from '../../../../../..';
@IonicPage({
name: 'page-one'
})
@Component({
templateUrl: 'page-one.html'
})
export class PageOne { }