Simplify assertion

This commit is contained in:
Luca Palmieri 2023-02-19 18:38:47 +00:00
parent 0afe546117
commit bdd5cdaa3f

View file

@ -21,5 +21,5 @@ async fn an_error_flash_message_is_set_on_failure() {
// Act - Part 3 - Reload the login page
let html_page = app.get_login_html().await;
assert!(!html_page.contains("<p><i>Authentication failed</i></p>"));
assert!(!html_page.contains("Authentication failed"));
}