test(alert): add test for overlays in viewDidEnter (#7606)

* chore(test): add test for overlays in viewDidEnter

* fix(test): dont break snapshot

* fix(test): fix where we import from
This commit is contained in:
Justin Willis
2016-08-08 12:13:26 -05:00
committed by Brandy Carney
parent e7adbad962
commit 42fa36bb91

View File

@ -1,5 +1,5 @@
import { Component } from '@angular/core';
import { ionicBootstrap, AlertController, LoadingController, NavController } from '../../../../index';
import { ionicBootstrap, AlertController, LoadingController, NavController } from '../../../../../src';
import { FormBuilder, ControlGroup, Validators } from '@angular/common';
@ -10,6 +10,15 @@ export class E2EPage {
constructor(public alertCtrl: AlertController, public navCtrl: NavController) {}
ionViewDidEnter() {
let alert = this.alertCtrl.create({
title: 'Alert!',
message: 'I was opened in ionViewDidEnter',
buttons: ['Ok']
});
alert.present();
}
submit() {
var alert = this.alertCtrl.create({
title: 'Not logged in',