From 128a8342e1ca1b22c4664c4dbd950690e94d4aff Mon Sep 17 00:00:00 2001 From: Brandy Carney Date: Fri, 1 Apr 2016 14:00:36 -0400 Subject: [PATCH] test(loading): add another page to the loading test --- ionic/components/loading/test/basic/index.ts | 32 ++++++++++++++++++-- 1 file changed, 30 insertions(+), 2 deletions(-) diff --git a/ionic/components/loading/test/basic/index.ts b/ionic/components/loading/test/basic/index.ts index 0624cefac7..15ae5a244f 100644 --- a/ionic/components/loading/test/basic/index.ts +++ b/ionic/components/loading/test/basic/index.ts @@ -90,8 +90,12 @@ class E2EPage { this.nav.present(loading); setTimeout(() => { - this.goToPage2(); - }, 1000); + this.nav.push(Page2); + }, 3000); + + setTimeout(() => { + this.nav.push(Page3); + }, 3000); setTimeout(() => { loading.dismiss(); @@ -109,10 +113,34 @@ class E2EPage { Page 2 Some content + + + + + ` }) class Page2 { constructor(private nav: NavController, private platform: Platform) {} + + goToPage3() { + this.nav.push(Page3); + } +} + +@Page({ + template: ` + + Page 3 + + Some content + ` +}) +class Page3 { + constructor(private nav: NavController, private platform: Platform) {} } @App({