mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
test(snapshot): update e2e tests that snapshot uses to be correct
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user