Skip to content

Added workflow for check tests #2099

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 16 commits into from
Dec 23, 2019
16 changes: 16 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
on: [push]

jobs:
test:
runs-on: ubuntu-latest
name: Check Tests
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: testomatio/check-tests@master
with:
framework: mocha
tests: "./test/**/*_test.js"
token: ${{ secrets.GITHUB_TOKEN }}
has-tests-label: true
4 changes: 2 additions & 2 deletions test/helper/WebDriverIO_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ describe('WebDriverIO', function () {
});

describe('#waitForInvisible', () => {
it.only('should be no [object Object] in the error message', () => wd.amOnPage('/info')
it('should be no [object Object] in the error message', () => wd.amOnPage('/info')
.then(() => wd.waitForInvisible('//div[@id = "grab-multiple"]//a', 3))
.then(() => {
throw Error('It should never get this far');
Expand All @@ -296,7 +296,7 @@ describe('WebDriverIO', function () {
e.message.should.not.include('[object Object]');
}));

it.only('should wait for a specified element to be invisible', () => wd.amOnPage('https://www.google.de/')
it('should wait for a specified element to be invisible', () => wd.amOnPage('https://www.google.de/')
.then(() => wd.fillField('input[type="text"]', 'testing'))
.then(() => wd.click('input[type="submit"]'))
.then(() => wd.waitForInvisible('input[type="submit"]', 5, 3))
Expand Down