Assert a feed is valid RSS or Atom: the site feed, the comments feed or a feed at a path, such as a category feed, an author feed or the Atom feed at /feed/atom/. It checks the status, the XML content type, the root element of the format (rss with a channel, or feed in the Atom namespace) and the feed title, and optionally that the feed has at least a number of items.
Examples
Then the site feed should be a valid RSS feed
And the comments feed should be a valid RSS feed
Then the feed "/category/uncategorized/feed/" should be a valid RSS feed
And the site feed should be a valid RSS feed with at least 1 item
Then the feed "/feed/atom/" should be a valid Atom feed with at least 1 item
Pattern
Then(/^the (?:(site|comments) feed|feed "([^"]*)") should be a valid (RSS|Atom) feed(?: with at least (\d+) items?)?$/, …)
Part of @webship-js/wordpress-steps (github.com/webship/wordpress-steps), a step pack for Webship-js 2.0.x.