From 03017be8c57a89d7d3da2c36368947fb4940021c Mon Sep 17 00:00:00 2001 From: Adam Bradley Date: Tue, 6 Oct 2015 14:19:53 -0500 Subject: [PATCH] test(): snapshot updates --- .../tabs/test/tab-bar-scenarios/main.html | 19 ++++++++----------- scripts/e2e/e2e.template.html | 10 ++++++++++ scripts/e2e/e2e.template.js | 2 +- scripts/snapshot/snapshot.config.js | 4 ++-- 4 files changed, 21 insertions(+), 14 deletions(-) diff --git a/ionic/components/tabs/test/tab-bar-scenarios/main.html b/ionic/components/tabs/test/tab-bar-scenarios/main.html index a48df66e70..116754739c 100644 --- a/ionic/components/tabs/test/tab-bar-scenarios/main.html +++ b/ionic/components/tabs/test/tab-bar-scenarios/main.html @@ -1,6 +1,6 @@ - + @@ -8,7 +8,7 @@ - + @@ -16,7 +16,7 @@ - + @@ -24,7 +24,7 @@ - + @@ -32,7 +32,7 @@ - + @@ -40,21 +40,21 @@ - + - + - + @@ -66,7 +66,4 @@ height: auto; border-top: 1px solid gray; } - ion-tabs .navbar-container { - display: none; - } diff --git a/scripts/e2e/e2e.template.html b/scripts/e2e/e2e.template.html index 860260d333..27eba2a0c0 100644 --- a/scripts/e2e/e2e.template.html +++ b/scripts/e2e/e2e.template.html @@ -17,9 +17,19 @@ stylesheet.setAttribute('rel', 'stylesheet'); stylesheet.setAttribute('href', '../../../css/' + theme); document.getElementsByTagName('head')[0].appendChild(stylesheet); + + if (location.href.indexOf('snapshot=true') > -1) { + document.documentElement.classList.add('snapshot'); + } else { + document.documentElement.classList.remove('snapshot'); + }