test(): snapshot updates

This commit is contained in:
Adam Bradley
2015-10-06 14:19:53 -05:00
parent 494690356a
commit 03017be8c5
4 changed files with 21 additions and 14 deletions

View File

@ -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');
}
</script>
<style>
.snapshot body {
max-height: 700px;
}
/* hack to create tall scrollable areas for testing using <f></f> */
f {
display: block;

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 %>');
browser.get('http://localhost:<%= buildConfig.protractorPort %>/dist/e2e/<%= relativePath %>/index.html?ionicplatform=<%= platform %>&snapshot=true');
});
<%= contents %>

View File

@ -9,9 +9,9 @@ exports.config = {
//domain: 'localhost:8080',
specs: 'dist/e2e/**/*e2e.js',
//specs: 'dist/e2e/switch/basic/*e2e.js',
//specs: 'dist/e2e/tabs/**/*e2e.js',
sleepBetweenSpecs: 1500,
sleepBetweenSpecs: 1400,
platformDefauls: {
browser: 'chrome',