gemini-testing / testplane

Testplane (ex-hermione) browser test runner based on mocha and wdio
https://testplane.io
MIT License
687 stars 62 forks source link

fix: do not remove spaces in runnable title #897

Closed DudaGod closed 4 months ago

DudaGod commented 4 months ago

We have to account for user spaces in test titles.

For example:

describe(' foo ', () => {
  it('bar ', () => {});
});

In hermione@6 fullTitle for this test was foo bar (with two spaces between foo, bar and one spaces at the beginning and at the end). Starting from the version hermione@7 behaviour was changed and fullTitle looks like foo bar (with only space between foo, bar and without spaces at the beginning and end). In this PR, I return the previous behavior.