diff --git a/assets/styles.css b/assets/styles.css index b06955989..50a3e6b88 100644 --- a/assets/styles.css +++ b/assets/styles.css @@ -39,10 +39,11 @@ a:hover { } .hideLemur .lemurInYourFace { opacity: 0; + visibility: hidden; transform: translateZ(200px); } .lemurInYourFace { - transition: 750ms ease; + transition: transform 750ms ease, opacity 750ms ease, visibility 800ms ease; width: 50%; z-index: 1; position: relative; @@ -68,7 +69,7 @@ a:hover { transform: translateZ(50px); } .BackstopJS3 { - transition: 750ms ease; + transition: transform 750ms ease; width: 75%; } .getItBlock, .supportsBlock { diff --git a/backstop_data/engine_scripts/setCookies b/backstop_data/engine_scripts/setCookies new file mode 100644 index 000000000..b7b8f4257 --- /dev/null +++ b/backstop_data/engine_scripts/setCookies @@ -0,0 +1,15 @@ +var fs = require('fs'), + cookiePath = "backstop_data/cookies.json"; + +module.exports = function(casper, scenario, vp) { + var cookies = []; + + if (fs.exists(cookiePath)) { + cookies = JSON.parse(fs.read(cookiePath)); + } + + casper.page.cookies = cookies; + console.log('Cookie state restored with cookies:', JSON.stringify(cookies)); + casper.echo('setting user agent', 'INFO'); + casper.userAgent('Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36'); +}; diff --git a/index.html b/index.html index 1deab7fdf..a3828f9d2 100644 --- a/index.html +++ b/index.html @@ -19,8 +19,8 @@
- +
@@ -57,21 +57,56 @@