Then I should see the success message "Owner Values Updated"

Assert a message the page shows after an action: a flash message the app set before its redirect (shown once, on the page after it), or an alert of the page. With a kind, the message must be of that kind (success, error, warning, info), read from its class (alert-success, alert-danger, alert-warning, alert-info).

Examples

Then I should see the success message "Owner Values Updated"
Then I should see the error message "Invalid credentials"
And I should see the message "You have been signed out"
Then I should not see the success message "Owner Values Updated"
Then we should see the success message "You have been signed out"

Pattern

Then(/^(I |we )*should( not)* see the (?:(success|error|warning|info) )?message "([^"]*)"$/, …)

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