Skip to content

Commit

Permalink
chore: update dependencies and fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
wswebcreation committed Jul 27, 2019
1 parent 9d4f152 commit a8aae3d
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 24 deletions.
28 changes: 14 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
20 changes: 10 additions & 10 deletions tests/specs/mobile.spec.js
Original file line number Diff line number Diff line change
@@ -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);
});
});
Expand Down

0 comments on commit a8aae3d

Please sign in to comment.