test(snapshot): update e2e tests that snapshot uses to be correct

This commit is contained in:
Brandy Carney
2016-08-04 12:46:04 -04:00
parent d5da8ab0e2
commit 1bd5b59ee0
3 changed files with 8 additions and 2 deletions

View File

@@ -8,6 +8,7 @@ import { ionicBootstrap } from '../../../../../src';
})
class E2EPage {
loginForm: any;
userForm: any;
login = {
email: 'help@ionic.io',
@@ -33,6 +34,11 @@ class E2EPage {
comments: ['', Validators.required],
gender: ['', Validators.required]
});
this.userForm = fb.group({
username: ['', Validators.required],
password: ['', Validators.required],
});
}
emailValidator(control: any) {

View File

@@ -54,7 +54,7 @@
</ion-list>
</form>
<form [formGroup]="loginForm" (ngSubmit)="submit($event, user)" #lf="ngForm">
<form [formGroup]="userForm" (ngSubmit)="submit($event, user)" #lf="ngForm">
<ion-list>
<ion-item>
<ion-label floating>Username</ion-label>

View File

@@ -139,7 +139,7 @@ class FirstPage {
<p><button class="e2eFrom2To3" (click)="pushPrimaryHeaderPage()">Push to PrimaryHeaderPage</button></p>
<p><button (click)="pushAnother()">Push to AnotherPage</button></p>
<p><button (click)="pushFirstPage()">Push to FirstPage</button></p>
<p><button class="e2eFrom2To1" nav-pop>Pop with NavPop (Go back to 1st)</button></p>
<p><button class="e2eFrom2To1" navPop>Pop with NavPop (Go back to 1st)</button></p>
<p><button (click)="setPages()">setPages() (Go to PrimaryHeaderPage, FirstPage 1st in history)</button></p>
<p><button (click)="presentAlert()">Present Alert</button></p>
</ion-content>