Skip to content

Commit

Permalink
add status badge
Browse files Browse the repository at this point in the history
  • Loading branch information
christian-bromann committed Nov 9, 2021
1 parent deb3af8 commit 653f68a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
wdio-teamcity-reporter
wdio-teamcity-reporter [![Test](https://github.com/webdriverio-community/wdio-teamcity-reporter/actions/workflows/test.yaml/badge.svg?branch=main)](https://github.com/webdriverio-community/wdio-teamcity-reporter/actions/workflows/test.yaml)
======================

WebdriverIO Teamcity reporter which makes it possible to display test results in real-time, makes test information available on the Tests tab of the Build Results page.
Expand Down
4 changes: 2 additions & 2 deletions test/e2e/dom.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ const assert = require('assert');

suite('simple assertions for the DOM', () => {
setup(async () => {
await browser.url('https://www.google.ru/');
await browser.url('http://guinea-pig.webdriver.io/');
});

test('does body exists', async () => {
const klass = await browser.$('body').getAttribute('class');
const klass = await browser.$('.page').getAttribute('class');
// do simple assertions assuming that google generates class names
assert.strictEqual(typeof klass, 'string');
assert(klass.length > 0);
Expand Down
4 changes: 2 additions & 2 deletions test/e2e/fail.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const assert = require('assert');

suite('simple exception', () => {
setup(async () => {
await browser.url('https://www.google.ru/');
await browser.url('http://guinea-pig.webdriver.io/');
});

test.skip('pending test', () => {});
Expand All @@ -14,7 +14,7 @@ suite('simple exception', () => {

suite('exception in hook', () => {
setup(async () => {
await browser.url('https://www.google.ru/');
await browser.url('http://guinea-pig.webdriver.io/');
assert.strictEqual(await browser.$('body').getAttribute('non-existing-attribute'), null);
});

Expand Down
4 changes: 2 additions & 2 deletions test/e2e/url.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ const assert = require('assert');

suite('simple assertions for the title', () => {
setup(async () => {
await browser.url('https://www.google.ru/');
await browser.url('http://guinea-pig.webdriver.io/');
});

test('is url valid', async () => {
assert.strictEqual(await browser.getUrl(), 'https://www.google.ru/');
assert.strictEqual(await browser.getUrl(), 'http://guinea-pig.webdriver.io/');
});
});

0 comments on commit 653f68a

Please sign in to comment.