Skip to content

Commit

Permalink
fix(all): snapshot tests
Browse files Browse the repository at this point in the history
  • Loading branch information
manucorporat committed May 8, 2018
1 parent 427222c commit cc7ab4e
Show file tree
Hide file tree
Showing 117 changed files with 2,121 additions and 2,116 deletions.
3,982 changes: 1,991 additions & 1,991 deletions core/package-lock.json

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions core/scripts/e2e/snapshot.js
Original file line number Diff line number Diff line change
Expand Up @@ -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} `) + '.';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)}))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
4 changes: 2 additions & 2 deletions core/src/components.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5719,7 +5719,7 @@ declare global {
/**
* the value of the select.
*/
'value': string | string[];
'value': any;
}
}

Expand Down Expand Up @@ -5801,7 +5801,7 @@ declare global {
/**
* the value of the select.
*/
'value'?: string | string[];
'value'?: any;
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion core/src/components/action-sheet/test/basic/e2e.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion core/src/components/action-sheet/test/standalone/e2e.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion core/src/components/alert/test/basic/e2e.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion core/src/components/alert/test/standalone/e2e.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion core/src/components/app/test/cordova/e2e.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()}`);
// }
// }

Expand Down
2 changes: 1 addition & 1 deletion core/src/components/avatar/test/standalone/e2e.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);
}
}

Expand Down
2 changes: 1 addition & 1 deletion core/src/components/badge/test/basic/e2e.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);
}
}

Expand Down
2 changes: 1 addition & 1 deletion core/src/components/badge/test/standalone/e2e.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);
}
}

Expand Down
2 changes: 1 addition & 1 deletion core/src/components/button/test/anchor/e2e.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);
}
}

Expand Down
2 changes: 1 addition & 1 deletion core/src/components/button/test/basic/e2e.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);
}
}

Expand Down
2 changes: 1 addition & 1 deletion core/src/components/button/test/expand/e2e.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);
}
}

Expand Down
2 changes: 1 addition & 1 deletion core/src/components/button/test/fill/e2e.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);
}
}

Expand Down
2 changes: 1 addition & 1 deletion core/src/components/button/test/icon/e2e.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);
}
}

Expand Down
2 changes: 1 addition & 1 deletion core/src/components/button/test/round/e2e.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);
}
}

Expand Down
2 changes: 1 addition & 1 deletion core/src/components/button/test/size/e2e.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);
}
}

Expand Down
2 changes: 1 addition & 1 deletion core/src/components/button/test/standalone/e2e.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);
}
}

Expand Down
2 changes: 1 addition & 1 deletion core/src/components/button/test/strong/e2e.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);
}
}

Expand Down
2 changes: 1 addition & 1 deletion core/src/components/button/test/toolbar/e2e.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);
}
}

Expand Down
2 changes: 1 addition & 1 deletion core/src/components/card/test/basic/e2e.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);
}
}

Expand Down
2 changes: 1 addition & 1 deletion core/src/components/card/test/standalone/e2e.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);
}
}

Expand Down
2 changes: 1 addition & 1 deletion core/src/components/checkbox/test/basic/e2e.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);
}
}

Expand Down
2 changes: 1 addition & 1 deletion core/src/components/checkbox/test/standalone/e2e.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);
}
}

Expand Down
2 changes: 1 addition & 1 deletion core/src/components/chip/test/basic/e2e.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);
}
}

Expand Down
2 changes: 1 addition & 1 deletion core/src/components/chip/test/standalone/e2e.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);
}
}

Expand Down
2 changes: 1 addition & 1 deletion core/src/components/content/test/basic/e2e.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);
}
}

Expand Down
2 changes: 1 addition & 1 deletion core/src/components/content/test/standalone/e2e.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);
}
}

Expand Down
2 changes: 1 addition & 1 deletion core/src/components/datetime/test/basic/e2e.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion core/src/components/datetime/test/standalone/e2e.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion core/src/components/fab/test/basic/e2e.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);
}
}

Expand Down
2 changes: 1 addition & 1 deletion core/src/components/fab/test/standalone/e2e.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);
}
}

Expand Down
2 changes: 1 addition & 1 deletion core/src/components/grid/test/basic/e2e.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);
}
}

Expand Down
2 changes: 1 addition & 1 deletion core/src/components/grid/test/standalone/e2e.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);
}
}

Expand Down
2 changes: 1 addition & 1 deletion core/src/components/icon/test/basic/e2e.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);
}
}

Expand Down
2 changes: 1 addition & 1 deletion core/src/components/icon/test/items/e2e.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);
}
}

Expand Down
2 changes: 1 addition & 1 deletion core/src/components/icon/test/standalone/e2e.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);
}
}

Expand Down
2 changes: 1 addition & 1 deletion core/src/components/infinite-scroll/test/basic/e2e.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);
}
}

Expand Down
2 changes: 1 addition & 1 deletion core/src/components/infinite-scroll/test/standalone/e2e.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);
}
}

Expand Down
2 changes: 1 addition & 1 deletion core/src/components/input/test/basic/e2e.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);
}
}

Expand Down
Loading

0 comments on commit cc7ab4e

Please sign in to comment.