@@ -171,17 +171,21 @@ async fn newsletter_creation_is_idempotent() {
171
171
172
172
// Act - Part 2 - Follow the redirect
173
173
let html_page = app. get_publish_newsletter_html ( ) . await ;
174
- assert ! ( html_page. contains( "<p><i>The newsletter issue has been accepted - \
175
- emails will go out shortly.</i></p>" ) ) ;
174
+ assert ! ( html_page. contains(
175
+ "<p><i>The newsletter issue has been accepted - \
176
+ emails will go out shortly.</i></p>"
177
+ ) ) ;
176
178
177
179
// Act - Part 3 - Submit newsletter form **again**
178
180
let response = app. post_publish_newsletters ( & newsletter_request_body) . await ;
179
181
assert_is_redirected_to ( "/admin/newsletters" , & response) ;
180
182
181
183
// Act - Part 4 - Follow the redirect
182
184
let html_page = app. get_publish_newsletter_html ( ) . await ;
183
- assert ! ( html_page. contains( "<p><i>The newsletter issue has been accepted - \
184
- emails will go out shortly.</i></p>" ) ) ;
185
+ assert ! ( html_page. contains(
186
+ "<p><i>The newsletter issue has been accepted - \
187
+ emails will go out shortly.</i></p>"
188
+ ) ) ;
185
189
186
190
app. dispatch_all_pending_emails ( ) . await ;
187
191
// Mock verifies on Drop that we have sent the newsletter email **once**
0 commit comments