@@ -211,13 +211,10 @@ def test_create_preprint_from_landing(
211
211
affiliated_institutions_names_review_page = (
212
212
submit_page .get_preprint_institution_list_review ()
213
213
)
214
- assert (
215
- affiliated_institutions_names_metadata_page
216
- == affiliated_institutions_names_review_page
217
- ), (
218
- f'Affiliated institutions on the Review Page do not match expected values.\n '
219
- f'Expected: { affiliated_institutions_names_metadata_page } \n '
220
- f'Actual: { affiliated_institutions_names_review_page } '
214
+ submit_page .assert_affiliated_institutions_equal (
215
+ affiliated_institutions_names_metadata_page ,
216
+ affiliated_institutions_names_review_page ,
217
+ 'Preprint Review Page' ,
221
218
)
222
219
submit_page .info_toast .here_then_gone ()
223
220
submit_page .create_preprint_button .click ()
@@ -227,13 +224,10 @@ def test_create_preprint_from_landing(
227
224
affiliated_institutions_names_detail_page = (
228
225
submit_page .get_preprint_institution_list_detail ()
229
226
)
230
- assert (
231
- affiliated_institutions_names_metadata_page
232
- == affiliated_institutions_names_detail_page
233
- ), (
234
- f'Affiliated institutions on the Preprint Detail Page do not match expected values.\n '
235
- f'Expected: { affiliated_institutions_names_metadata_page } \n '
236
- f'Actual: { affiliated_institutions_names_detail_page } '
227
+ submit_page .assert_affiliated_institutions_equal (
228
+ affiliated_institutions_names_metadata_page ,
229
+ affiliated_institutions_names_detail_page ,
230
+ 'Preprint Detail Page' ,
237
231
)
238
232
# Capture guid of supplemental materials project created during workflow
239
233
supplemental_url = preprint_detail .view_page .get_attribute ('href' )
0 commit comments