diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 000000000..712b6d6d6 --- /dev/null +++ b/.github/workflows/main.yml @@ -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 diff --git a/test/helper/WebDriverIO_test.js b/test/helper/WebDriverIO_test.js index 7634d27fc..3a079ed03 100644 --- a/test/helper/WebDriverIO_test.js +++ b/test/helper/WebDriverIO_test.js @@ -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'); @@ -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))