Assert that the page shows no error message at all: no red alert box, no error under a field, no error toast.
Examples
Then I should not see any error message
Then we should not see any error message
And I should not see any error message
But I should not see any error message
Then I should not see any error message
Pattern
Then(/^(I |we )*should not see any error message$/, …)
Part of @webship-js/moodle-steps (github.com/webship/moodle-steps), a step pack for Webship-js 2.0.x.