Open heqiao opened 6 years ago
Have you tried:
describe('my test', () => {
true ? describe.skip : describe('google', () => {
it('should open home page', () => {
homePage.open();
homePage.searchBox.waitForVisible();
});
it('should search things', () => {
homePage.search('the answer to life the universe and everything');
resultPage.calculatorBox.waitForVisible();
expect(resultPage.calculatorBox.getText()).equals('42');
});
});
})
?
Got the broken result as well.
The problem
Using ternary operator on
describe
level causes this reporter generates broken xml result.Environment
Details
Setup
Expected:
Actual:
false ? describe : describe.skip('google', () => {});
anddescribe.skip
generate expected result with no problem.