From f721020dc09cb6340133d9a8e23ff13fe0990fda Mon Sep 17 00:00:00 2001 From: Adam Bradley Date: Thu, 29 Oct 2015 22:29:44 -0500 Subject: [PATCH] chore(snapshot): no css animations --- scripts/e2e/e2e.template.html | 9 ++++++++- scripts/snapshot/snapshot.config.js | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/scripts/e2e/e2e.template.html b/scripts/e2e/e2e.template.html index 8d1af65331..3e78fe667e 100644 --- a/scripts/e2e/e2e.template.html +++ b/scripts/e2e/e2e.template.html @@ -22,10 +22,17 @@ /* disable scrollbars */ overflow: hidden !important; } - .snapshot * { + .snapshot *, + .snapshot *:before, + .snapshot *:after { + /* do not allow css animations during snapshot */ -webkit-transition-duration: 0ms !important; transition-duration: 0ms !important; } + .snapshot ion-loading-icon, + .snapshot md-ripple { + display: none !important; + } /* hack to create tall scrollable areas for testing using */ f { diff --git a/scripts/snapshot/snapshot.config.js b/scripts/snapshot/snapshot.config.js index be9207c0b9..f361236d85 100644 --- a/scripts/snapshot/snapshot.config.js +++ b/scripts/snapshot/snapshot.config.js @@ -11,7 +11,7 @@ exports.config = { specs: 'dist/e2e/**/*e2e.js', //specs: 'dist/e2e/search-bar/**/*e2e.js', - sleepBetweenSpecs: 300, + sleepBetweenSpecs: 250, platformDefauls: { browser: 'chrome',