The header of the details sidebar shows a text: the name, or a part of its line of size, date and owner ("115 B", "User").
Examples
Then the details should show "meeting-notes.md"
Then the details should show "User"
Then the details should show "< 1 KB"
And the details should show "Project files"
Then the details should show "Editor"
Pattern
Then(/^the details should show "([^"]*)"$/, …)
Part of @webship-js/nextcloud-steps (github.com/webship/nextcloud-steps), a step pack for Webship-js 2.0.x.