Then the robots.txt file should be served

Assert the site serves robots.txt as plain text. WordPress generates a virtual one when no file exists. A web server that does not hand the request to WordPress, such as the stock DDEV nginx configuration, answers 404.

Examples

Then the robots.txt file should be served
And the robots.txt file should be served
Then robots.txt should be served
And robots.txt should be served
But the robots.txt file should be served

Pattern

Then(/^(?:the )?robots\.txt(?: file)? should be served$/, …)

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