mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-23 05:58:26 +08:00
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:

committed by
Brandy Carney

parent
e7adbad962
commit
42fa36bb91
@ -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',
|
||||
|
Reference in New Issue
Block a user