test(alert): fix snapshot tests

This commit is contained in:
Adam Bradley
2016-03-13 13:15:04 -05:00
parent d44f8f6fcf
commit 37beb0f4fe
3 changed files with 5 additions and 3 deletions

View File

@ -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());
}
}

View File

@ -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());
}
}

View File

@ -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 %>