testproject-io / javascript-opensdk

TestProject OpenSDK for Node.js
Apache License 2.0
24 stars 16 forks source link

Failed assertions aren't included in test reports #24

Open ShaharGilad opened 3 years ago

ShaharGilad commented 3 years ago

Running the following code

    const { By } = require('selenium-webdriver');
    const { Builder } = require('@tpio/javascript-opensdk');
    const { assert } = require('chai');
    describe('search movie chrome', () => {
        let driver;

        before(async () => {
            driver = await new Builder().forBrowser('chrome').withToken(CONSTANT.TOKEN).build();
        });

        after(async () => {
            await driver.quit(); 
        });

        it('Check side bar option', async () => {
            await driver.get('https://www.youtube.com/');
            await driver.findElement(By.linkText('Explore')).click();
            const exploreTitle = await driver.findElement(By.id('destination-buttons')).isDisplayed();
            assert.equal(exploreTitle,false);
         });
    });

Results a fail in Mocha: image

But passes in the Reports: image