Assert that the comments panel of the open file lists a thread with a text, or does not (the comments mode is turned on first).
Examples
Then the comments should list "Can the hero be taller?"
Then the comments should not list "Webship test comment"
And the comments should list "Webship test comment"
Then the comments should list "Webship test note"
But the comments should not list "Webship test note"
Pattern
Then(/^the comments should( not)? list "([^"]*)"$/, …)
Part of @webship-js/penpot-steps (github.com/webship/penpot-steps), a step pack for Webship-js 2.0.x.