diff --git a/ionic/components/action-sheet/action-sheet.ts b/ionic/components/action-sheet/action-sheet.ts index 4bdd447d6c..9b0de676f6 100644 --- a/ionic/components/action-sheet/action-sheet.ts +++ b/ionic/components/action-sheet/action-sheet.ts @@ -310,7 +310,8 @@ class ActionSheetCmp { } isEnabled() { - return (this.created + 750 < Date.now()); + let tm = this._config.getNumber('overlayCreatedDiff', 750); + return (this.created + tm < Date.now()); } } diff --git a/ionic/components/alert/alert.ts b/ionic/components/alert/alert.ts index d4e1f2fd45..9f2309d764 100644 --- a/ionic/components/alert/alert.ts +++ b/ionic/components/alert/alert.ts @@ -530,7 +530,8 @@ class AlertCmp { } isEnabled() { - return (this.created + 750 < Date.now()); + let tm = this._config.getNumber('overlayCreatedDiff', 750); + return (this.created + tm < Date.now()); } } diff --git a/scripts/e2e/e2e.template.js b/scripts/e2e/e2e.template.js index 4dd246edfd..34aeb4a0ba 100644 --- a/scripts/e2e/e2e.template.js +++ b/scripts/e2e/e2e.template.js @@ -1,7 +1,7 @@ describe('<%= relativePath %>: <%= platform %>', function() { it('should init', function() { - browser.get('http://localhost:<%= buildConfig.protractorPort %>/dist/e2e/<%= relativePath %>/index.html?ionicplatform=<%= platform %>&ionicanimate=false&snapshot=true'); + browser.get('http://localhost:<%= buildConfig.protractorPort %>/dist/e2e/<%= relativePath %>/index.html?ionicplatform=<%= platform %>&ionicOverlayCreatedDiff=0&ionicanimate=false&snapshot=true'); }); <%= contents %>