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

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>