Skip to content

Commit

Permalink
update integration test for webdriver_v5
Browse files Browse the repository at this point in the history
babel compile step removed
  • Loading branch information
sullenor committed Dec 14, 2019
1 parent 2d8aca5 commit e20b0a9
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 17 deletions.
2 changes: 1 addition & 1 deletion lib/message.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ var events = {
'onTestEnd': '##teamcity[testFinished flowId=\'[flowId]\' name=\'[name]\']',
'onTestFail': '##teamcity[testFailed flowId=\'[flowId]\' name=\'[name]\' message=\'[message]\' details=\'[details]\']',
'onTestSkip': '##teamcity[testIgnored flowId=\'[flowId]\' name=\'[name]\' message=\'pending\']',
'onSuiteEnd': '##teamcity[testSuiteFinished flowId=\'[flowId]\' name=\'[name]\']'
'onSuiteEnd': '##teamcity[testSuiteFinished flowId=\'[flowId]\' name=\'[name]\']',
};

exports.buildFormatter = buildFormatter;
Expand Down
15 changes: 3 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,15 @@
{
"name": "wdio-teamcity-reporter",
"version": "1.1.1",
"version": "2.0.0",
"description": "WebdriverIO Teamcity reporter",
"main": "index.js",
"engines": {
"node": ">=8.11.0"
},
"scripts": {
"cleanup": "git reset --hard",
"compile": "babel lib --out-dir lib && babel index.js --out-file index.js",
"lint": "eslint lib/*.js test/**/*.js *.js",
"prepublish": "in-publish && npm run -s compile || in-install",
"publish": "in-publish && npm run -s cleanup || in-install",
"test": "tape --require babel-register test/unit/*.js",
"unit": "tape test/unit/*.js",
"test": "tape test/unit/*.js",
"wdio": "wdio test/integration/wdio.conf.js"
},
"repository": {
Expand All @@ -37,14 +33,9 @@
"@wdio/local-runner": "^5.7.0",
"@wdio/mocha-framework": "^5.7.0",
"@wdio/reporter": "^5.7.0",
"@wdio/selenium-standalone-service": "^5.7.0",
"@wdio/selenium-standalone-service": "^5.16.10",
"@wdio/sync": "^5.7.0",
"babel-cli": "^6.11.4",
"babel-preset-env": "^1.7.0",
"babel-preset-es2015": "^6.13.2",
"babel-register": "^6.11.6",
"eslint": "^6.7.2",
"in-publish": "^2.0.0",
"tape": "^4.6.0"
},
"peerDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion test/integration/dom.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ suite('simple assertions for the DOM', () => {
});

test('does body exists', () => {
assert.equal(browser.getAttribute('body', 'class'), 'hp vasq');
assert.equal(browser.$('body').getAttribute('class'), 'hp vasq');
});
});
2 changes: 1 addition & 1 deletion test/integration/fail.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ suite('simple exception', () => {
test.skip('pending test', () => {});

test('artificial error', () => {
assert.equal(browser.getAttribute('body', 'non-existing-attribute'), 'guess');
assert.equal(browser.$('body').getAttribute('non-existing-attribute'), null);
});
});
2 changes: 1 addition & 1 deletion test/integration/wdio.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ exports.config = {

capabilities: [{
maxInstances: 2,
browserName: 'firefox',
browserName: 'chrome',
}],

sync: true,
Expand Down
2 changes: 1 addition & 1 deletion test/unit/events.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,6 @@ test('formatter for events', t => {
});

function assertMsg(util, expectation, result) {
util.ok(result.indexOf(expectation) === 0,
util.ok(result.startsWith(expectation),
`message should start from \`${expectation}\` instead got \`${result}\``);
}

0 comments on commit e20b0a9

Please sign in to comment.