mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
nav/tabs snapshot tests
This commit is contained in:
16
ionic/components/nav/test/basic/e2e.ts
Normal file
16
ionic/components/nav/test/basic/e2e.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
|
||||
it('should go from 1 to 2', function() {
|
||||
element(by.css('#from1To2')).click();
|
||||
});
|
||||
|
||||
it('should go from 2 to 3', function() {
|
||||
element(by.css('#from2To3')).click();
|
||||
});
|
||||
|
||||
it('should go from 3 to 2', function() {
|
||||
element(by.css('#from3To2')).click();
|
||||
});
|
||||
|
||||
it('should go from 2 to 1', function() {
|
||||
element(by.css('#from2To1')).click();
|
||||
});
|
||||
@@ -15,7 +15,7 @@ import {ThirdPage} from './third-page';
|
||||
'</ion-navbar>' +
|
||||
'<ion-content class="padding">' +
|
||||
'<p>First Page: {{ val }}</p>' +
|
||||
'<p><button primary (click)="push()">Push (Go to 2nd)</button></p>' +
|
||||
'<p><button id="from1To2" primary (click)="push()">Push (Go to 2nd)</button></p>' +
|
||||
'<p><button primary [push-data]="pushData" [nav-push]="pushPage">Push w/ nav-push (Go to 2nd)</button></p>' +
|
||||
'<p><button primary (click)="setItems()">setItems() (Go to 3rd, no history)</button></p>' +
|
||||
'<icon class="ion-ios-arrow-back"></icon>' +
|
||||
|
||||
@@ -8,8 +8,8 @@ import {FirstPage} from './first-page';
|
||||
<ion-navbar *navbar primary><ion-title>Second Page Header</ion-title></ion-navbar>
|
||||
<ion-content class="padding">
|
||||
<p><button primary (click)="pop()">Pop (Go back to 1st)</button></p>
|
||||
<p><button primary nav-pop>Pop with NavPop (Go back to 1st)</button></p>
|
||||
<p><button primary (click)="push()">Push (Go to 3rd)</button></p>
|
||||
<p><button id="from2To1" primary nav-pop>Pop with NavPop (Go back to 1st)</button></p>
|
||||
<p><button id="from2To3" primary (click)="push()">Push (Go to 3rd)</button></p>
|
||||
<p><button primary (click)="setItems()">setItems() (Go to 3rd, FirstPage 1st in history)</button></p>
|
||||
<p>Random: {{ val }}</p>
|
||||
<div class="green"><f></f><f></f><f></f><f></f><f></f><f></f><f></f><f></f><f></f><f></f><f></f><f></f><f></f><f></f><f></f><f></f><f></f><f></f><f></f><f></f></div>
|
||||
|
||||
@@ -6,7 +6,7 @@ import {IonicView, NavController} from 'ionic/ionic';
|
||||
<ion-navbar *navbar><ion-title>Third Page Header</ion-title></ion-navbar>
|
||||
<ion-content class="padding">
|
||||
<p>
|
||||
<button primary (click)="pop()">Pop (Go back to 2nd)</button>
|
||||
<button id="from3To2" primary (click)="pop()">Pop (Go back to 2nd)</button>
|
||||
</p>
|
||||
<div class="yellow"><f></f><f></f><f></f><f></f><f></f><f></f><f></f><f></f><f></f><f></f><f></f><f></f><f></f><f></f><f></f><f></f><f></f><f></f><f></f><f></f></div>
|
||||
</ion-content>
|
||||
|
||||
Reference in New Issue
Block a user