getTaskFullName()
includes leading space, breaking testNamePattern
#4045
Labels
p2-edge-case
Bug, but has workaround or limited in scope (priority)
Describe the bug
The
getTaskFullName()
function injects a leading space when it detects a suite. However, a suite itself includes asuite
property with an empty name, and therefore it runs twice on a suite. The end result is that every test inside a suite ends up with a full task name that has a leading single-space indentation, which breaks regular expression patterns like this:I did finally get it working, by using this to account for the leading space.
Reproduction
Will not match a suite like this:
System Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: