Kenzitron / protractor-jasmine2-html-reporter

HTML reporter for Jasmine2 and Protractor
32 stars 53 forks source link

tests passed 0% when use protractor's ExpectedConditions api #57

Open princewck opened 7 years ago

princewck commented 7 years ago

tests passed 0% when use protractor's ExpectedConditions api. It says "Skipped" , does it mean the test case is skipped or the result is skipped in the report ?

rafaelcs commented 7 years ago

If you put an assert after your expected conditions, this solves your problem. See the example:

    this.accessBannersPage = function() {
        this.appMenu.click();
        this.bannersMenu.click();
        basePage.isVisible(this.addBannerButton), basePage.timeout.xxl;
        expect(this.addBannerButton.isDisplayed()).toBe(true);
    };