mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-23 05:58:26 +08:00
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:
@ -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();
|
||||
});
|
||||
});
|
||||
});
|
||||
|
@ -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();
|
||||
});
|
||||
});
|
||||
|
||||
});
|
||||
|
Reference in New Issue
Block a user