From a8aae3d648e875bbbc0b613eeb61242a3b7c4017 Mon Sep 17 00:00:00 2001 From: Wim Selles Date: Sat, 27 Jul 2019 21:05:40 +0200 Subject: [PATCH] chore: update dependencies and fix tests --- package.json | 28 ++++++++++++++-------------- tests/specs/mobile.spec.js | 20 ++++++++++---------- 2 files changed, 24 insertions(+), 24 deletions(-) diff --git a/package.json b/package.json index 735d0a8f..1afbdb54 100644 --- a/package.json +++ b/package.json @@ -27,25 +27,25 @@ "author": "wswebcreation", "license": "MIT", "devDependencies": { - "@babel/cli": "^7.4.3", - "@babel/core": "^7.4.5", - "@babel/preset-env": "^7.4.5", - "@babel/register": "^7.4.0", - "@wdio/cli": "^5.9.2", - "@wdio/jasmine-framework": "^5.9.1", - "@wdio/local-runner": "^5.9.2", - "@wdio/sauce-service": "^5.9.2", - "@wdio/selenium-standalone-service": "^5.9.2", - "@wdio/spec-reporter": "^5.7.13", - "@wdio/sync": "^5.9.2", + "@babel/cli": "^7.5.5", + "@babel/core": "^7.5.5", + "@babel/preset-env": "^7.5.5", + "@babel/register": "^7.5.5", + "@wdio/cli": "^5.11.10", + "@wdio/jasmine-framework": "^5.11.0", + "@wdio/local-runner": "^5.11.10", + "@wdio/sauce-service": "^5.11.1", + "@wdio/selenium-standalone-service": "^5.11.2", + "@wdio/spec-reporter": "^5.11.7", + "@wdio/sync": "^5.11.10", "babel-jest": "^24.8.0", "eslint": "^5.16.0", - "eslint-plugin-import": "^2.17.3", + "eslint-plugin-import": "^2.18.2", "fs-extra": "^7.0.1", "jest": "^24.8.0", - "np": "^5.0.2", + "np": "^5.0.3", "rimraf": "^2.6.3", - "webdriverio": "^5.9.2" + "webdriverio": "^5.11.10" }, "dependencies": { "webdriver-image-comparison": "^0.7.0" diff --git a/tests/specs/mobile.spec.js b/tests/specs/mobile.spec.js index 504bfd50..66c22c8c 100644 --- a/tests/specs/mobile.spec.js +++ b/tests/specs/mobile.spec.js @@ -1,21 +1,21 @@ describe('wdio-image-comparison-service mobile', () => { - beforeEach(() => { + beforeEach(() => { browser.url(''); $('.uk-button:nth-child(1)').waitForDisplayed(5000); browser.pause(1500) - }); + }); - // Chrome remembers the last postion when the url is loaded again, this will reset it. - afterEach(() => browser.executeScript('window.scrollTo(0, 0);', [])); + // Chrome remembers the last postion when the url is loaded again, this will reset it. + afterEach(() => browser.executeScript('window.scrollTo(0, 0);', [])); - describe('compare screen', () => { - it('should compare successful with a baseline', () => { - expect(browser.checkScreen('examplePage')).toEqual(0); - }); - }); + describe('compare screen', () => { + it('should compare successful with a baseline', () => { + expect(browser.checkScreen('examplePage')).toEqual(0); + }); + }); describe('compare element', () => { - it('should compare successful with a baseline', async () => { + it('should compare successful with a baseline', () => { expect(browser.checkElement($('.uk-button:nth-child(1)'), 'firstButtonElement')).toEqual(0); }); });