chore(snapshot): add support for ios platform and passing a folder (#13635)

* chore(snapshot): adds support for multiple platforms and passing folder

* test(e2e): update e2e tests for multiple platforms

* test(e2e): fix failing backdrop tests

* chore(snapshot): remove console logs
This commit is contained in:
Brandy Carney
2017-12-12 17:46:11 -05:00
committed by GitHub
parent ca0470dc39
commit 4838d5ebfe
90 changed files with 1402 additions and 437 deletions

View File

@ -1,7 +1,19 @@
const { register, navigate } = require('../../../../../scripts/e2e');
'use strict';
describe('slides/basic', () => {
const { By, until } = require('selenium-webdriver');
const { register, Page, platforms } = require('../../../../../scripts/e2e');
register('should init', navigate('http://localhost:3333/src/components/slides/test/basic'));
class E2ETestPage extends Page {
constructor(driver, platform) {
super(driver, `http://localhost:3333/src/components/slides/test/basic?ionicplatform=${platform}`);
}
}
platforms.forEach(platform => {
describe('slides/basic', () => {
register('should init', driver => {
const page = new E2ETestPage(driver, platform);
return page.navigate();
});
});
});

View File

@ -1,9 +1,19 @@
'use strict';
const { register, navigate } = require('../../../../../scripts/e2e');
const { By, until } = require('selenium-webdriver');
const { register, Page, platforms } = require('../../../../../scripts/e2e');
class E2ETestPage extends Page {
constructor(driver, platform) {
super(driver, `http://localhost:3333/src/components/slides/test/standalone?ionicplatform=${platform}`);
}
}
platforms.forEach(platform => {
describe('slides/standalone', () => {
register('should init', navigate('http://localhost:3333/src/components/slides/test/standalone'));
register('should init', driver => {
const page = new E2ETestPage(driver, platform);
return page.navigate();
});
});
});