fix(all): snapshot tests

This commit is contained in:
Manu Mtz.-Almeida
2018-05-08 16:05:06 +02:00
parent 427222cc29
commit cc7ab4e3c6
117 changed files with 2121 additions and 2116 deletions

3982
core/package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -103,12 +103,12 @@ class Snapshot {
// TODO remove the modified url/description once we're happy with the comparison to v3
let platform = 'android';
if (url.indexOf('ionicplatform') > -1) {
platform = this._getQueryString('ionicplatform', url);
if (url.indexOf('ionic:mode') > -1) {
platform = this._getQueryString('ionic:mode', url);
}
let replacedUrl = url.replace('3333', '8876').replace('src/components', '/e2e').replace('test/', '').replace(`?ionicplatform=${platform}`, '');
url = replacedUrl + `/index.html?ionicplatform=${platform}&ionicOverlayCreatedDiff=0&snapshot=true`;
let replacedUrl = url.replace('3333', '8876').replace('src/components', '/e2e').replace('test/', '').replace(`?ionic:mode=${platform}`, '');
url = replacedUrl + `/index.html?ionic:mode=${platform}&ionicOverlayCreatedDiff=0&snapshot=true`;
let description = options.name.replace(': ', `: ${platform} `) + '.';

View File

@ -32,7 +32,7 @@ let AppPreview = class AppPreview {
}
render () {
const url = `${this.demoUrl}?ionicplatform=${this.demoMode}`;
const url = `${this.demoUrl}?ionic:mode=${this.demoMode}`;
return [
h("div", null,
h("iframe", {src: url, ref: el => this.iframe = el, onLoad: this.onIframeLoad.bind(this)}))

View File

@ -112,7 +112,7 @@ export class AppPreview {
}
render () {
const url = `${this.demoUrl}?ionicplatform=${this.demoMode}`;
const url = `${this.demoUrl}?ionic:mode=${this.demoMode}`;
return [
<div>

View File

@ -5719,7 +5719,7 @@ declare global {
/**
* the value of the select.
*/
'value': string | string[];
'value': any;
}
}
@ -5801,7 +5801,7 @@ declare global {
/**
* the value of the select.
*/
'value'?: string | string[];
'value'?: any;
}
}
}

View File

@ -5,7 +5,7 @@ const { Page, platforms, register } = require('../../../../../scripts/e2e');
class E2ETestPage extends Page {
constructor(driver, platform) {
super(driver, `http://localhost:3333/src/components/action-sheet/test/basic?ionicplatform=${platform}`);
super(driver, `http://localhost:3333/src/components/action-sheet/test/basic?ionic:mode=${platform}`);
}
async present(buttonId) {

View File

@ -5,7 +5,7 @@ const { Page, platforms, register } = require('../../../../../scripts/e2e');
class E2ETestPage extends Page {
constructor(driver, platform) {
super(driver, `http://localhost:3333/src/components/action-sheet/test/standalone?ionicplatform=${platform}`);
super(driver, `http://localhost:3333/src/components/action-sheet/test/standalone?ionic:mode=${platform}`);
}
async present(buttonId) {

View File

@ -5,7 +5,7 @@ const { register, Page, platforms } = require('../../../../../scripts/e2e');
class E2ETestPage extends Page {
constructor(driver, platform) {
super(driver, `http://localhost:3333/src/components/alert/test/basic?ionicplatform=${platform}`);
super(driver, `http://localhost:3333/src/components/alert/test/basic?ionic:mode=${platform}`);
}
async present(buttonId) {

View File

@ -5,7 +5,7 @@ const { register, Page, platforms } = require('../../../../../scripts/e2e');
class E2ETestPage extends Page {
constructor(driver, platform) {
super(driver, `http://localhost:3333/src/components/alert/test/standalone?ionicplatform=${platform}`);
super(driver, `http://localhost:3333/src/components/alert/test/standalone?ionic:mode=${platform}`);
}
async present(buttonId) {

View File

@ -6,7 +6,7 @@
// class E2ETestPage extends Page {
// constructor(driver, platform) {
// super(driver, `http://localhost:3333/src/components/app/test/cordova?ionicplatform=${platform}&ts=${Date.now()}`);
// super(driver, `http://localhost:3333/src/components/app/test/cordova?ionic:mode=${platform}&ts=${Date.now()}`);
// }
// }

View File

@ -5,7 +5,7 @@ const { register, Page, platforms } = require('../../../../../scripts/e2e');
class E2ETestPage extends Page {
constructor(driver, platform) {
super(driver, `http://localhost:3333/src/components/avatar/test/standalone?ionicplatform=${platform}`);
super(driver, `http://localhost:3333/src/components/avatar/test/standalone?ionic:mode=${platform}`);
}
}

View File

@ -5,7 +5,7 @@ const { register, Page, platforms } = require('../../../../../scripts/e2e');
class E2ETestPage extends Page {
constructor(driver, platform) {
super(driver, `http://localhost:3333/src/components/badge/test/basic?ionicplatform=${platform}`);
super(driver, `http://localhost:3333/src/components/badge/test/basic?ionic:mode=${platform}`);
}
}

View File

@ -5,7 +5,7 @@ const { register, Page, platforms } = require('../../../../../scripts/e2e');
class E2ETestPage extends Page {
constructor(driver, platform) {
super(driver, `http://localhost:3333/src/components/badge/test/standalone?ionicplatform=${platform}`);
super(driver, `http://localhost:3333/src/components/badge/test/standalone?ionic:mode=${platform}`);
}
}

View File

@ -5,7 +5,7 @@ const { register, Page, platforms } = require('../../../../../scripts/e2e');
class E2ETestPage extends Page {
constructor(driver, platform) {
super(driver, `http://localhost:3333/src/components/button/test/anchor?ionicplatform=${platform}`);
super(driver, `http://localhost:3333/src/components/button/test/anchor?ionic:mode=${platform}`);
}
}

View File

@ -5,7 +5,7 @@ const { register, Page, platforms } = require('../../../../../scripts/e2e');
class E2ETestPage extends Page {
constructor(driver, platform) {
super(driver, `http://localhost:3333/src/components/button/test/basic?ionicplatform=${platform}`);
super(driver, `http://localhost:3333/src/components/button/test/basic?ionic:mode=${platform}`);
}
}

View File

@ -5,7 +5,7 @@ const { register, Page, platforms } = require('../../../../../scripts/e2e');
class E2ETestPage extends Page {
constructor(driver, platform) {
super(driver, `http://localhost:3333/src/components/button/test/expand?ionicplatform=${platform}`);
super(driver, `http://localhost:3333/src/components/button/test/expand?ionic:mode=${platform}`);
}
}

View File

@ -5,7 +5,7 @@ const { register, Page, platforms } = require('../../../../../scripts/e2e');
class E2ETestPage extends Page {
constructor(driver, platform) {
super(driver, `http://localhost:3333/src/components/button/test/fill?ionicplatform=${platform}`);
super(driver, `http://localhost:3333/src/components/button/test/fill?ionic:mode=${platform}`);
}
}

View File

@ -5,7 +5,7 @@ const { register, Page, platforms } = require('../../../../../scripts/e2e');
class E2ETestPage extends Page {
constructor(driver, platform) {
super(driver, `http://localhost:3333/src/components/button/test/icon?ionicplatform=${platform}`);
super(driver, `http://localhost:3333/src/components/button/test/icon?ionic:mode=${platform}`);
}
}

View File

@ -5,7 +5,7 @@ const { register, Page, platforms } = require('../../../../../scripts/e2e');
class E2ETestPage extends Page {
constructor(driver, platform) {
super(driver, `http://localhost:3333/src/components/button/test/round?ionicplatform=${platform}`);
super(driver, `http://localhost:3333/src/components/button/test/round?ionic:mode=${platform}`);
}
}

View File

@ -5,7 +5,7 @@ const { register, Page, platforms } = require('../../../../../scripts/e2e');
class E2ETestPage extends Page {
constructor(driver, platform) {
super(driver, `http://localhost:3333/src/components/button/test/size?ionicplatform=${platform}`);
super(driver, `http://localhost:3333/src/components/button/test/size?ionic:mode=${platform}`);
}
}

View File

@ -5,7 +5,7 @@ const { register, Page, platforms } = require('../../../../../scripts/e2e');
class E2ETestPage extends Page {
constructor(driver, platform) {
super(driver, `http://localhost:3333/src/components/button/test/standalone?ionicplatform=${platform}`);
super(driver, `http://localhost:3333/src/components/button/test/standalone?ionic:mode=${platform}`);
}
}

View File

@ -5,7 +5,7 @@ const { register, Page, platforms } = require('../../../../../scripts/e2e');
class E2ETestPage extends Page {
constructor(driver, platform) {
super(driver, `http://localhost:3333/src/components/button/test/strong?ionicplatform=${platform}`);
super(driver, `http://localhost:3333/src/components/button/test/strong?ionic:mode=${platform}`);
}
}

View File

@ -5,7 +5,7 @@ const { register, Page, platforms } = require('../../../../../scripts/e2e');
class E2ETestPage extends Page {
constructor(driver, platform) {
super(driver, `http://localhost:3333/src/components/button/test/toolbar?ionicplatform=${platform}`);
super(driver, `http://localhost:3333/src/components/button/test/toolbar?ionic:mode=${platform}`);
}
}

View File

@ -5,7 +5,7 @@ const { register, Page, platforms } = require('../../../../../scripts/e2e');
class E2ETestPage extends Page {
constructor(driver, platform) {
super(driver, `http://localhost:3333/src/components/card/test/basic?ionicplatform=${platform}`);
super(driver, `http://localhost:3333/src/components/card/test/basic?ionic:mode=${platform}`);
}
}

View File

@ -5,7 +5,7 @@ const { register, Page, platforms } = require('../../../../../scripts/e2e');
class E2ETestPage extends Page {
constructor(driver, platform) {
super(driver, `http://localhost:3333/src/components/card/test/standalone?ionicplatform=${platform}`);
super(driver, `http://localhost:3333/src/components/card/test/standalone?ionic:mode=${platform}`);
}
}

View File

@ -5,7 +5,7 @@ const { register, Page, platforms } = require('../../../../../scripts/e2e');
class E2ETestPage extends Page {
constructor(driver, platform) {
super(driver, `http://localhost:3333/src/components/checkbox/test/basic?ionicplatform=${platform}`);
super(driver, `http://localhost:3333/src/components/checkbox/test/basic?ionic:mode=${platform}`);
}
}

View File

@ -5,7 +5,7 @@ const { register, Page, platforms } = require('../../../../../scripts/e2e');
class E2ETestPage extends Page {
constructor(driver, platform) {
super(driver, `http://localhost:3333/src/components/checkbox/test/standalone?ionicplatform=${platform}`);
super(driver, `http://localhost:3333/src/components/checkbox/test/standalone?ionic:mode=${platform}`);
}
}

View File

@ -5,7 +5,7 @@ const { register, Page, platforms } = require('../../../../../scripts/e2e');
class E2ETestPage extends Page {
constructor(driver, platform) {
super(driver, `http://localhost:3333/src/components/chip/test/basic?ionicplatform=${platform}`);
super(driver, `http://localhost:3333/src/components/chip/test/basic?ionic:mode=${platform}`);
}
}

View File

@ -5,7 +5,7 @@ const { register, Page, platforms } = require('../../../../../scripts/e2e');
class E2ETestPage extends Page {
constructor(driver, platform) {
super(driver, `http://localhost:3333/src/components/chip/test/standalone?ionicplatform=${platform}`);
super(driver, `http://localhost:3333/src/components/chip/test/standalone?ionic:mode=${platform}`);
}
}

View File

@ -5,7 +5,7 @@ const { register, Page, platforms } = require('../../../../../scripts/e2e');
class E2ETestPage extends Page {
constructor(driver, platform) {
super(driver, `http://localhost:3333/src/components/content/test/basic?ionicplatform=${platform}`);
super(driver, `http://localhost:3333/src/components/content/test/basic?ionic:mode=${platform}`);
}
}

View File

@ -5,7 +5,7 @@ const { register, Page, platforms } = require('../../../../../scripts/e2e');
class E2ETestPage extends Page {
constructor(driver, platform) {
super(driver, `http://localhost:3333/src/components/content/test/standalone?ionicplatform=${platform}`);
super(driver, `http://localhost:3333/src/components/content/test/standalone?ionic:mode=${platform}`);
}
}

View File

@ -5,7 +5,7 @@ const { register, Page, platforms } = require('../../../../../scripts/e2e');
class E2ETestPage extends Page {
constructor(driver, platform) {
super(driver, `http://localhost:3333/src/components/datetime/test/basic?ionicplatform=${platform}`);
super(driver, `http://localhost:3333/src/components/datetime/test/basic?ionic:mode=${platform}`);
}
async present(buttonId) {

View File

@ -5,7 +5,7 @@ const { register, Page, platforms } = require('../../../../../scripts/e2e');
class E2ETestPage extends Page {
constructor(driver, platform) {
super(driver, `http://localhost:3333/src/components/datetime/test/standalone?ionicplatform=${platform}`);
super(driver, `http://localhost:3333/src/components/datetime/test/standalone?ionic:mode=${platform}`);
}
async present(buttonId) {

View File

@ -5,7 +5,7 @@ const { register, Page, platforms } = require('../../../../../scripts/e2e');
class E2ETestPage extends Page {
constructor(driver, platform) {
super(driver, `http://localhost:3333/src/components/fab/test/basic?ionicplatform=${platform}`);
super(driver, `http://localhost:3333/src/components/fab/test/basic?ionic:mode=${platform}`);
}
}

View File

@ -5,7 +5,7 @@ const { register, Page, platforms } = require('../../../../../scripts/e2e');
class E2ETestPage extends Page {
constructor(driver, platform) {
super(driver, `http://localhost:3333/src/components/fab/test/standalone?ionicplatform=${platform}`);
super(driver, `http://localhost:3333/src/components/fab/test/standalone?ionic:mode=${platform}`);
}
}

View File

@ -5,7 +5,7 @@ const { register, Page, platforms } = require('../../../../../scripts/e2e');
class E2ETestPage extends Page {
constructor(driver, platform) {
super(driver, `http://localhost:3333/src/components/grid/test/basic?ionicplatform=${platform}`);
super(driver, `http://localhost:3333/src/components/grid/test/basic?ionic:mode=${platform}`);
}
}

View File

@ -5,7 +5,7 @@ const { register, Page, platforms } = require('../../../../../scripts/e2e');
class E2ETestPage extends Page {
constructor(driver, platform) {
super(driver, `http://localhost:3333/src/components/grid/test/standalone?ionicplatform=${platform}`);
super(driver, `http://localhost:3333/src/components/grid/test/standalone?ionic:mode=${platform}`);
}
}

View File

@ -5,7 +5,7 @@ const { register, Page, platforms } = require('../../../../../scripts/e2e');
class E2ETestPage extends Page {
constructor(driver, platform) {
super(driver, `http://localhost:3333/src/components/icon/test/basic?ionicplatform=${platform}`);
super(driver, `http://localhost:3333/src/components/icon/test/basic?ionic:mode=${platform}`);
}
}

View File

@ -5,7 +5,7 @@ const { register, Page, platforms } = require('../../../../../scripts/e2e');
class E2ETestPage extends Page {
constructor(driver, platform) {
super(driver, `http://localhost:3333/src/components/icon/test/items?ionicplatform=${platform}`);
super(driver, `http://localhost:3333/src/components/icon/test/items?ionic:mode=${platform}`);
}
}

View File

@ -5,7 +5,7 @@ const { register, Page, platforms } = require('../../../../../scripts/e2e');
class E2ETestPage extends Page {
constructor(driver, platform) {
super(driver, `http://localhost:3333/src/components/icon/test/standalone?ionicplatform=${platform}`);
super(driver, `http://localhost:3333/src/components/icon/test/standalone?ionic:mode=${platform}`);
}
}

View File

@ -5,7 +5,7 @@ const { register, Page, platforms } = require('../../../../../scripts/e2e');
class E2ETestPage extends Page {
constructor(driver, platform) {
super(driver, `http://localhost:3333/src/components/infinite-scroll/test/basic?ionicplatform=${platform}`);
super(driver, `http://localhost:3333/src/components/infinite-scroll/test/basic?ionic:mode=${platform}`);
}
}

View File

@ -5,7 +5,7 @@ const { register, Page, platforms } = require('../../../../../scripts/e2e');
class E2ETestPage extends Page {
constructor(driver, platform) {
super(driver, `http://localhost:3333/src/components/infinite-scroll/test/standalone?ionicplatform=${platform}`);
super(driver, `http://localhost:3333/src/components/infinite-scroll/test/standalone?ionic:mode=${platform}`);
}
}

View File

@ -5,7 +5,7 @@ const { register, Page, platforms } = require('../../../../../scripts/e2e');
class E2ETestPage extends Page {
constructor(driver, platform) {
super(driver, `http://localhost:3333/src/components/input/test/basic?ionicplatform=${platform}`);
super(driver, `http://localhost:3333/src/components/input/test/basic?ionic:mode=${platform}`);
}
}

View File

@ -5,7 +5,7 @@ const { register, Page, platforms } = require('../../../../../scripts/e2e');
class E2ETestPage extends Page {
constructor(driver, platform) {
super(driver, `http://localhost:3333/src/components/input/test/standalone?ionicplatform=${platform}`);
super(driver, `http://localhost:3333/src/components/input/test/standalone?ionic:mode=${platform}`);
}
}

View File

@ -5,7 +5,7 @@ const { register, Page, platforms } = require('../../../../../scripts/e2e');
class E2ETestPage extends Page {
constructor(driver, platform) {
super(driver, `http://localhost:3333/src/components/item-sliding/test/basic?ionicplatform=${platform}`);
super(driver, `http://localhost:3333/src/components/item-sliding/test/basic?ionic:mode=${platform}`);
}
}

View File

@ -5,7 +5,7 @@ const { register, Page, platforms } = require('../../../../../scripts/e2e');
class E2ETestPage extends Page {
constructor(driver, platform) {
super(driver, `http://localhost:3333/src/components/item-sliding/test/standalone?ionicplatform=${platform}`);
super(driver, `http://localhost:3333/src/components/item-sliding/test/standalone?ionic:mode=${platform}`);
}
}

View File

@ -5,7 +5,7 @@ const { register, Page, platforms } = require('../../../../../scripts/e2e');
class E2ETestPage extends Page {
constructor(driver, platform) {
super(driver, `http://localhost:3333/src/components/item/test/basic?ionicplatform=${platform}`);
super(driver, `http://localhost:3333/src/components/item/test/basic?ionic:mode=${platform}`);
}
}

View File

@ -5,7 +5,7 @@ const { register, Page, platforms } = require('../../../../../scripts/e2e');
class E2ETestPage extends Page {
constructor(driver, platform) {
super(driver, `http://localhost:3333/src/components/item/test/buttons?ionicplatform=${platform}`);
super(driver, `http://localhost:3333/src/components/item/test/buttons?ionic:mode=${platform}`);
}
}

View File

@ -5,7 +5,7 @@ const { register, Page, platforms } = require('../../../../../scripts/e2e');
class E2ETestPage extends Page {
constructor(driver, platform) {
super(driver, `http://localhost:3333/src/components/item/test/colors?ionicplatform=${platform}`);
super(driver, `http://localhost:3333/src/components/item/test/colors?ionic:mode=${platform}`);
}
}

View File

@ -5,7 +5,7 @@ const { register, Page, platforms } = require('../../../../../scripts/e2e');
class E2ETestPage extends Page {
constructor(driver, platform) {
super(driver, `http://localhost:3333/src/components/item/test/dividers?ionicplatform=${platform}`);
super(driver, `http://localhost:3333/src/components/item/test/dividers?ionic:mode=${platform}`);
}
}

View File

@ -5,7 +5,7 @@ const { register, Page, platforms } = require('../../../../../scripts/e2e');
class E2ETestPage extends Page {
constructor(driver, platform) {
super(driver, `http://localhost:3333/src/components/item/test/groups?ionicplatform=${platform}`);
super(driver, `http://localhost:3333/src/components/item/test/groups?ionic:mode=${platform}`);
}
}

View File

@ -5,7 +5,7 @@ const { register, Page, platforms } = require('../../../../../scripts/e2e');
class E2ETestPage extends Page {
constructor(driver, platform) {
super(driver, `http://localhost:3333/src/components/item/test/icons?ionicplatform=${platform}`);
super(driver, `http://localhost:3333/src/components/item/test/icons?ionic:mode=${platform}`);
}
}

View File

@ -5,7 +5,7 @@ const { register, Page, platforms } = require('../../../../../scripts/e2e');
class E2ETestPage extends Page {
constructor(driver, platform) {
super(driver, `http://localhost:3333/src/components/item/test/images?ionicplatform=${platform}`);
super(driver, `http://localhost:3333/src/components/item/test/images?ionic:mode=${platform}`);
}
}

View File

@ -5,7 +5,7 @@ const { register, Page, platforms } = require('../../../../../scripts/e2e');
class E2ETestPage extends Page {
constructor(driver, platform) {
super(driver, `http://localhost:3333/src/components/item/test/inputs?ionicplatform=${platform}`);
super(driver, `http://localhost:3333/src/components/item/test/inputs?ionic:mode=${platform}`);
}
}

View File

@ -5,7 +5,7 @@ const { register, Page, platforms } = require('../../../../../scripts/e2e');
class E2ETestPage extends Page {
constructor(driver, platform) {
super(driver, `http://localhost:3333/src/components/item/test/media?ionicplatform=${platform}`);
super(driver, `http://localhost:3333/src/components/item/test/media?ionic:mode=${platform}`);
}
}

View File

@ -5,7 +5,7 @@ const { register, Page, platforms } = require('../../../../../scripts/e2e');
class E2ETestPage extends Page {
constructor(driver, platform) {
super(driver, `http://localhost:3333/src/components/item/test/reorder?ionicplatform=${platform}`);
super(driver, `http://localhost:3333/src/components/item/test/reorder?ionic:mode=${platform}`);
}
}

View File

@ -5,7 +5,7 @@ const { register, Page, platforms } = require('../../../../../scripts/e2e');
class E2ETestPage extends Page {
constructor(driver, platform) {
super(driver, `http://localhost:3333/src/components/item/test/sliding?ionicplatform=${platform}`);
super(driver, `http://localhost:3333/src/components/item/test/sliding?ionic:mode=${platform}`);
}
}

View File

@ -5,7 +5,7 @@ const { register, Page, platforms } = require('../../../../../scripts/e2e');
class E2ETestPage extends Page {
constructor(driver, platform) {
super(driver, `http://localhost:3333/src/components/item/test/standalone?ionicplatform=${platform}`);
super(driver, `http://localhost:3333/src/components/item/test/standalone?ionic:mode=${platform}`);
}
}

View File

@ -5,7 +5,7 @@ const { register, Page, platforms } = require('../../../../../scripts/e2e');
class E2ETestPage extends Page {
constructor(driver, platform) {
super(driver, `http://localhost:3333/src/components/item/test/text?ionicplatform=${platform}`);
super(driver, `http://localhost:3333/src/components/item/test/text?ionic:mode=${platform}`);
}
}

View File

@ -5,7 +5,7 @@ const { register, Page, platforms } = require('../../../../../scripts/e2e');
class E2ETestPage extends Page {
constructor(driver, platform) {
super(driver, `http://localhost:3333/src/components/label/test/standalone?ionicplatform=${platform}`);
super(driver, `http://localhost:3333/src/components/label/test/standalone?ionic:mode=${platform}`);
}
}

View File

@ -5,7 +5,7 @@ const { register, Page, platforms } = require('../../../../../scripts/e2e');
class E2ETestPage extends Page {
constructor(driver, platform) {
super(driver, `http://localhost:3333/src/components/list/test/basic?ionicplatform=${platform}`);
super(driver, `http://localhost:3333/src/components/list/test/basic?ionic:mode=${platform}`);
}
}

View File

@ -5,7 +5,7 @@ const { register, Page, platforms } = require('../../../../../scripts/e2e');
class E2ETestPage extends Page {
constructor(driver, platform) {
super(driver, `http://localhost:3333/src/components/list/test/inset?ionicplatform=${platform}`);
super(driver, `http://localhost:3333/src/components/list/test/inset?ionic:mode=${platform}`);
}
}

View File

@ -5,7 +5,7 @@ const { register, Page, platforms } = require('../../../../../scripts/e2e');
class E2ETestPage extends Page {
constructor(driver, platform) {
super(driver, `http://localhost:3333/src/components/list/test/standalone?ionicplatform=${platform}`);
super(driver, `http://localhost:3333/src/components/list/test/standalone?ionic:mode=${platform}`);
}
}

View File

@ -5,7 +5,7 @@ const { register, Page, platforms } = require('../../../../../scripts/e2e');
class E2ETestPage extends Page {
constructor(driver, platform) {
super(driver, `http://localhost:3333/src/components/loading/test/basic?ionicplatform=${platform}`);
super(driver, `http://localhost:3333/src/components/loading/test/basic?ionic:mode=${platform}`);
}
async present(buttonId) {

View File

@ -5,7 +5,7 @@ const { register, Page, platforms } = require('../../../../../scripts/e2e');
class E2ETestPage extends Page {
constructor(driver, platform) {
super(driver, `http://localhost:3333/src/components/loading/test/standalone?ionicplatform=${platform}`);
super(driver, `http://localhost:3333/src/components/loading/test/standalone?ionic:mode=${platform}`);
}
async present(buttonId) {

View File

@ -5,7 +5,7 @@ const { register, Page, platforms } = require('../../../../../scripts/e2e');
class E2ETestPage extends Page {
constructor(driver, platform) {
super(driver, `http://localhost:3333/src/components/menu/test/basic?ionicplatform=${platform}`);
super(driver, `http://localhost:3333/src/components/menu/test/basic?ionic:mode=${platform}`);
}
async present(buttonId) {

View File

@ -5,7 +5,7 @@ const { register, Page, platforms } = require('../../../../../scripts/e2e');
class E2ETestPage extends Page {
constructor(driver, platform) {
super(driver, `http://localhost:3333/src/components/menu/test/standalone?ionicplatform=${platform}`);
super(driver, `http://localhost:3333/src/components/menu/test/standalone?ionic:mode=${platform}`);
}
}

View File

@ -5,7 +5,7 @@ const { register, Page, platforms } = require('../../../../../scripts/e2e');
class E2ETestPage extends Page {
constructor(driver, platform) {
super(driver, `http://localhost:3333/src/components/modal/test/basic?ionicplatform=${platform}`);
super(driver, `http://localhost:3333/src/components/modal/test/basic?ionic:mode=${platform}`);
}
}

View File

@ -5,7 +5,7 @@ const { register, Page, platforms } = require('../../../../../scripts/e2e');
class E2ETestPage extends Page {
constructor(driver, platform) {
super(driver, `http://localhost:3333/src/components/modal/test/standalone?ionicplatform=${platform}`);
super(driver, `http://localhost:3333/src/components/modal/test/standalone?ionic:mode=${platform}`);
}
async present(buttonId) {

View File

@ -5,7 +5,7 @@
// class E2ETestPage extends Page {
// constructor(driver, platform) {
// super(driver, `http://localhost:3333/src/components/nav/test/basic?ionicplatform=${platform}`);
// super(driver, `http://localhost:3333/src/components/nav/test/basic?ionic:mode=${platform}`);
// }
// }

View File

@ -5,7 +5,7 @@
// class E2ETestPage extends Page {
// constructor(driver, platform) {
// super(driver, `http://localhost:3333/src/components/nav/test/host-elements?ionicplatform=${platform}`);
// super(driver, `http://localhost:3333/src/components/nav/test/host-elements?ionic:mode=${platform}`);
// }
// }

View File

@ -5,7 +5,7 @@
// class E2ETestPage extends Page {
// constructor(driver, platform) {
// super(driver, `http://localhost:3333/src/components/nav/test/basic?ionicplatform=${platform}`);
// super(driver, `http://localhost:3333/src/components/nav/test/basic?ionic:mode=${platform}`);
// }
// }

View File

@ -6,7 +6,7 @@
// class E2ETestPage extends Page {
// constructor(driver, platform) {
// super(driver, `http://localhost:3333/src/components/nav/test/simple-nested-navs?ionicplatform=${platform}`);
// super(driver, `http://localhost:3333/src/components/nav/test/simple-nested-navs?ionic:mode=${platform}`);
// }
// }

View File

@ -5,7 +5,7 @@ const { register, Page, platforms } = require('../../../../../scripts/e2e');
class E2ETestPage extends Page {
constructor(driver, platform) {
super(driver, `http://localhost:3333/src/components/popover/test/basic?ionicplatform=${platform}`);
super(driver, `http://localhost:3333/src/components/popover/test/basic?ionic:mode=${platform}`);
}
async present(buttonId) {

View File

@ -5,7 +5,7 @@ const { register, Page, platforms } = require('../../../../../scripts/e2e');
class E2ETestPage extends Page {
constructor(driver, platform) {
super(driver, `http://localhost:3333/src/components/popover/test/standalone?ionicplatform=${platform}`);
super(driver, `http://localhost:3333/src/components/popover/test/standalone?ionic:mode=${platform}`);
}
async present(buttonId) {

View File

@ -5,7 +5,7 @@ const { register, Page, platforms } = require('../../../../../scripts/e2e');
class E2ETestPage extends Page {
constructor(driver, platform) {
super(driver, `http://localhost:3333/src/components/radio-group/test/standalone?ionicplatform=${platform}`);
super(driver, `http://localhost:3333/src/components/radio-group/test/standalone?ionic:mode=${platform}`);
}
}

View File

@ -5,7 +5,7 @@ const { register, Page, platforms } = require('../../../../../scripts/e2e');
class E2ETestPage extends Page {
constructor(driver, platform) {
super(driver, `http://localhost:3333/src/components/radio/test/basic?ionicplatform=${platform}`);
super(driver, `http://localhost:3333/src/components/radio/test/basic?ionic:mode=${platform}`);
}
}

View File

@ -5,7 +5,7 @@ const { register, Page, platforms } = require('../../../../../scripts/e2e');
class E2ETestPage extends Page {
constructor(driver, platform) {
super(driver, `http://localhost:3333/src/components/radio/test/standalone?ionicplatform=${platform}`);
super(driver, `http://localhost:3333/src/components/radio/test/standalone?ionic:mode=${platform}`);
}
}

View File

@ -5,7 +5,7 @@ const { register, Page, platforms } = require('../../../../../scripts/e2e');
class E2ETestPage extends Page {
constructor(driver, platform) {
super(driver, `http://localhost:3333/src/components/range/test/basic?ionicplatform=${platform}`);
super(driver, `http://localhost:3333/src/components/range/test/basic?ionic:mode=${platform}`);
}
}

View File

@ -5,7 +5,7 @@ const { register, Page, platforms } = require('../../../../../scripts/e2e');
class E2ETestPage extends Page {
constructor(driver, platform) {
super(driver, `http://localhost:3333/src/components/range/test/standalone?ionicplatform=${platform}`);
super(driver, `http://localhost:3333/src/components/range/test/standalone?ionic:mode=${platform}`);
}
}

View File

@ -5,7 +5,7 @@ const { register, Page, platforms } = require('../../../../../scripts/e2e');
class E2ETestPage extends Page {
constructor(driver, platform) {
super(driver, `http://localhost:3333/src/components/refresher/test/basic?ionicplatform=${platform}`);
super(driver, `http://localhost:3333/src/components/refresher/test/basic?ionic:mode=${platform}`);
}
}

View File

@ -5,7 +5,7 @@ const { register, Page, platforms } = require('../../../../../scripts/e2e');
class E2ETestPage extends Page {
constructor(driver, platform) {
super(driver, `http://localhost:3333/src/components/reorder/test/basic?ionicplatform=${platform}`);
super(driver, `http://localhost:3333/src/components/reorder/test/basic?ionic:mode=${platform}`);
}
}

View File

@ -5,7 +5,7 @@ const { register, Page, platforms } = require('../../../../../scripts/e2e');
class E2ETestPage extends Page {
constructor(driver, platform) {
super(driver, `http://localhost:3333/src/components/reorder/test/standalone?ionicplatform=${platform}`);
super(driver, `http://localhost:3333/src/components/reorder/test/standalone?ionic:mode=${platform}`);
}
}

View File

@ -5,7 +5,7 @@ const { register, Page, platforms } = require('../../../../../scripts/e2e');
class E2ETestPage extends Page {
constructor(driver, platform) {
super(driver, `http://localhost:3333/src/components/searchbar/test/basic?ionicplatform=${platform}`);
super(driver, `http://localhost:3333/src/components/searchbar/test/basic?ionic:mode=${platform}`);
}
}

View File

@ -5,7 +5,7 @@ const { register, Page, platforms } = require('../../../../../scripts/e2e');
class E2ETestPage extends Page {
constructor(driver, platform) {
super(driver, `http://localhost:3333/src/components/searchbar/test/standalone?ionicplatform=${platform}`);
super(driver, `http://localhost:3333/src/components/searchbar/test/standalone?ionic:mode=${platform}`);
}
}

View File

@ -5,7 +5,7 @@ const { register, Page, platforms } = require('../../../../../scripts/e2e');
class E2ETestPage extends Page {
constructor(driver, platform) {
super(driver, `http://localhost:3333/src/components/segment/test/basic?ionicplatform=${platform}`);
super(driver, `http://localhost:3333/src/components/segment/test/basic?ionic:mode=${platform}`);
}
}

View File

@ -5,7 +5,7 @@ const { register, Page, platforms } = require('../../../../../scripts/e2e');
class E2ETestPage extends Page {
constructor(driver, platform) {
super(driver, `http://localhost:3333/src/components/segment/test/standalone?ionicplatform=${platform}`);
super(driver, `http://localhost:3333/src/components/segment/test/standalone?ionic:mode=${platform}`);
}
}

View File

@ -110,7 +110,7 @@ The text to display instead of the selected option's value.
#### value
string
any
the value of the select.
@ -186,7 +186,7 @@ The text to display instead of the selected option's value.
#### value
string
any
the value of the select.

View File

@ -86,7 +86,7 @@ export class Select {
/**
* the value of the select.
*/
@Prop({ mutable: true }) value?: string | string[];
@Prop({ mutable: true }) value?: any;
/**
* Emitted when the value has changed.
@ -502,14 +502,14 @@ export class Select {
}
}
function parseValue(value: string[]|string|undefined) {
function parseValue(value: any) {
if (value == null) {
return undefined;
}
if (typeof value === 'string') {
return value;
}
if (Array.isArray(value)) {
return value.join(',');
}
return value.toString();
}
let selectIds = 0;

View File

@ -6,7 +6,7 @@ const { register, Page, platforms } = require('../../../../../scripts/e2e');
class E2ETestPage extends Page {
constructor(driver, platform) {
super(driver, `http://localhost:3333/src/components/select/test/basic?ionicplatform=${platform}`);
super(driver, `http://localhost:3333/src/components/select/test/basic?ionic:mode=${platform}`);
}
}

View File

@ -6,7 +6,7 @@ const { register, Page, platforms } = require('../../../../../scripts/e2e');
class E2ETestPage extends Page {
constructor(driver, platform) {
super(driver, `http://localhost:3333/src/components/select/test/multiple-value?ionicplatform=${platform}`);
super(driver, `http://localhost:3333/src/components/select/test/multiple-value?ionic:mode=${platform}`);
}
}

View File

@ -6,7 +6,7 @@ const { register, Page, platforms } = require('../../../../../scripts/e2e');
class E2ETestPage extends Page {
constructor(driver, platform) {
super(driver, `http://localhost:3333/src/components/select/test/single-value?ionicplatform=${platform}`);
super(driver, `http://localhost:3333/src/components/select/test/single-value?ionic:mode=${platform}`);
}
}

View File

@ -192,7 +192,12 @@
year.appendChild(option);
}
debugger;
year.componentOnReady().then(() => {
year.value = 1994;
});
setResults(year);
var currencies = [

View File

@ -5,7 +5,7 @@ const { register, Page, platforms } = require('../../../../../scripts/e2e');
class E2ETestPage extends Page {
constructor(driver, platform) {
super(driver, `http://localhost:3333/src/components/select/test/standalone?ionicplatform=${platform}`);
super(driver, `http://localhost:3333/src/components/select/test/standalone?ionic:mode=${platform}`);
}
}

View File

@ -5,7 +5,7 @@ const { register, Page, platforms } = require('../../../../../scripts/e2e');
class E2ETestPage extends Page {
constructor(driver, platform) {
super(driver, `http://localhost:3333/src/components/slides/test/basic?ionicplatform=${platform}`);
super(driver, `http://localhost:3333/src/components/slides/test/basic?ionic:mode=${platform}`);
}
}

View File

@ -5,7 +5,7 @@ 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}`);
super(driver, `http://localhost:3333/src/components/slides/test/standalone?ionic:mode=${platform}`);
}
}

View File

@ -5,7 +5,7 @@ const { register, Page, platforms } = require('../../../../../scripts/e2e');
class E2ETestPage extends Page {
constructor(driver, platform) {
super(driver, `http://localhost:3333/src/components/spinner/test/basic?ionicplatform=${platform}`);
super(driver, `http://localhost:3333/src/components/spinner/test/basic?ionic:mode=${platform}`);
}
}

View File

@ -5,7 +5,7 @@ const { register, Page, platforms } = require('../../../../../scripts/e2e');
class E2ETestPage extends Page {
constructor(driver, platform) {
super(driver, `http://localhost:3333/src/components/spinner/test/color?ionicplatform=${platform}`);
super(driver, `http://localhost:3333/src/components/spinner/test/color?ionic:mode=${platform}`);
}
}

View File

@ -5,7 +5,7 @@ const { register, Page, platforms } = require('../../../../../scripts/e2e');
class E2ETestPage extends Page {
constructor(driver, platform) {
super(driver, `http://localhost:3333/src/components/spinner/test/standalone?ionicplatform=${platform}`);
super(driver, `http://localhost:3333/src/components/spinner/test/standalone?ionic:mode=${platform}`);
}
}

View File

@ -5,7 +5,7 @@ const { register, Page, platforms } = require('../../../../../scripts/e2e');
class E2ETestPage extends Page {
constructor(driver, platform) {
super(driver, `http://localhost:3333/src/components/split-pane/test/basic?ionicplatform=${platform}`);
super(driver, `http://localhost:3333/src/components/split-pane/test/basic?ionic:mode=${platform}`);
}
}

Some files were not shown because too many files have changed in this diff Show More