Then the PDF should have 2 pages

The PDF in the viewer has a number of pages, as the PDF viewer counts them.

            And the PDF should show "Annual report 2026"

Examples

Then the PDF should have 2 pages
Then the PDF should have 1 page
And the PDF should have 2 pages
Then the PDF should have 2 pages
Then the PDF should have 12 pages

Pattern

Then(/^the PDF should have (\d+) pages?$/, …)

Part of @webship-js/nextcloud-steps (github.com/webship/nextcloud-steps), a step pack for Webship-js 2.0.x.