Skip to content

Commit 684ac2f

Browse files
committed
updated with markers
1 parent 2d97858 commit 684ac2f

File tree

5 files changed

+53
-2
lines changed

5 files changed

+53
-2
lines changed

pytest.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,4 @@ markers =
4242
notes_tests: tests that are part of the notes test suite
4343
subject_tests: tests that are part of the subject tests suite
4444
subject_search: tests that are part of the subject search test suite
45+

tests/regression/notes/test_additional_care_notes.py

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ def test_subject_does_not_have_an_additional_care_note(
7272
)
7373

7474

75+
@pytest.mark.regression
76+
@pytest.mark.note_tests
7577
def test_add_an_additional_care_note_for_a_subject_without_a_note(
7678
page: Page, general_properties: dict
7779
) -> None:
@@ -157,6 +159,8 @@ def test_add_an_additional_care_note_for_a_subject_without_a_note(
157159
)
158160

159161

162+
@pytest.mark.regression
163+
@pytest.mark.note_tests
160164
def test_add_additional_care_note_for_subject_with_existing_note(
161165
page: Page, general_properties: dict
162166
) -> None:
@@ -237,6 +241,8 @@ def test_add_additional_care_note_for_subject_with_existing_note(
237241
)
238242

239243

244+
@pytest.mark.regression
245+
@pytest.mark.note_tests
240246
def test_identify_subject_with_additional_care_note(
241247
page: Page, general_properties: dict
242248
) -> None:
@@ -271,6 +277,8 @@ def test_identify_subject_with_additional_care_note(
271277
)
272278

273279

280+
@pytest.mark.regression
281+
@pytest.mark.note_tests
274282
def test_view_active_additional_care_note(page: Page, general_properties: dict) -> None:
275283
"""
276284
Test to verify if an active Additional Care note is visible for a subject.
@@ -339,6 +347,8 @@ def test_view_active_additional_care_note(page: Page, general_properties: dict)
339347
), f"Note does not match. UI: '{ui_data['note']}', DB: '{db_data['note']}'"
340348

341349

350+
@pytest.mark.regression
351+
@pytest.mark.note_tests
342352
def test_update_existing_additional_care_note(
343353
page: Page, general_properties: dict
344354
) -> None:
@@ -422,6 +432,8 @@ def test_update_existing_additional_care_note(
422432
)
423433

424434

435+
@pytest.mark.regression
436+
@pytest.mark.note_tests
425437
def test_remove_existing_additional_care_note(
426438
page: Page, general_properties: dict
427439
) -> None:
@@ -453,7 +465,7 @@ def test_remove_existing_additional_care_note(
453465
logging.info(
454466
f"Verifying that the Additional Care Note is visible for the subject with NHS Number: {nhs_no}."
455467
)
456-
SubjectScreeningSummaryPage(page).verify_note_link_not_present(
468+
SubjectScreeningSummaryPage(page).verify_note_link_present(
457469
general_properties["additional_care_note_name"]
458470
)
459471

@@ -485,6 +497,8 @@ def test_remove_existing_additional_care_note(
485497
)
486498

487499

500+
@pytest.mark.regression
501+
@pytest.mark.note_tests
488502
def test_remove_existing_additional_care_note_for_subject_with_multiple_notes(
489503
page: Page, general_properties: dict
490504
) -> None:

tests/regression/notes/test_episode_notes.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@
2828
)
2929

3030

31+
@pytest.mark.regression
32+
@pytest.mark.note_tests
3133
def test_subject_does_not_have_a_episode_note(
3234
page: Page, general_properties: dict
3335
) -> None:
@@ -70,6 +72,8 @@ def test_subject_does_not_have_a_episode_note(
7072
)
7173

7274

75+
@pytest.mark.regression
76+
@pytest.mark.note_tests
7377
def test_add_a_episode_note_for_a_subject_without_a_note(
7478
page: Page, general_properties: dict
7579
) -> None:
@@ -150,6 +154,9 @@ def test_add_a_episode_note_for_a_subject_without_a_note(
150154
f"Title and note matched the provided values. Title: '{note_title}', Note: '{note_text}'."
151155
)
152156

157+
158+
@pytest.mark.regression
159+
@pytest.mark.note_tests
153160
def test_identify_subject_with_episode_note(
154161
page: Page, general_properties: dict
155162
) -> None:
@@ -183,6 +190,8 @@ def test_identify_subject_with_episode_note(
183190
)
184191

185192

193+
@pytest.mark.regression
194+
@pytest.mark.note_tests
186195
def test_view_active_episode_note(page: Page, general_properties: dict) -> None:
187196
"""
188197
Test to verify if an active episode note is visible for a subject.
@@ -250,6 +259,8 @@ def test_view_active_episode_note(page: Page, general_properties: dict) -> None:
250259
), f"Note does not match. UI: '{ui_data['note']}', DB: '{db_data['note']}'"
251260

252261

262+
@pytest.mark.regression
263+
@pytest.mark.note_tests
253264
def test_update_existing_episode_note(page: Page, general_properties: dict) -> None:
254265
"""
255266
Test to verify if an existing episode note can be updated successfully.

tests/regression/notes/test_kit_notes.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@
2828
)
2929

3030

31+
@pytest.mark.regression
32+
@pytest.mark.note_tests
3133
def test_subject_does_not_have_a_kit_note(page: Page, general_properties: dict) -> None:
3234
"""
3335
Test to check if I can identify if a subject does not have a kit note
@@ -68,6 +70,8 @@ def test_subject_does_not_have_a_kit_note(page: Page, general_properties: dict)
6870
)
6971

7072

73+
@pytest.mark.regression
74+
@pytest.mark.note_tests
7175
def test_add_a_kit_note_for_a_subject_without_a_note(
7276
page: Page, general_properties: dict
7377
) -> None:
@@ -151,6 +155,9 @@ def test_add_a_kit_note_for_a_subject_without_a_note(
151155
f"Title and note matched the provided values. Title: '{note_title}', Note: '{note_text}'."
152156
)
153157

158+
159+
@pytest.mark.regression
160+
@pytest.mark.note_tests
154161
def test_identify_subject_with_kit_note(page: Page, general_properties: dict) -> None:
155162
"""
156163
Test to identify if a subject has a kit note.
@@ -183,6 +190,8 @@ def test_identify_subject_with_kit_note(page: Page, general_properties: dict) ->
183190
)
184191

185192

193+
@pytest.mark.regression
194+
@pytest.mark.note_tests
186195
def test_view_active_kit_note(page: Page, general_properties: dict) -> None:
187196
"""
188197
Test to verify if an active kit note is visible for a subject.
@@ -251,6 +260,8 @@ def test_view_active_kit_note(page: Page, general_properties: dict) -> None:
251260
), f"Note does not match. UI: '{ui_data['note']}', DB: '{db_data['note']}'"
252261

253262

263+
@pytest.mark.regression
264+
@pytest.mark.note_tests
254265
def test_update_existing_kit_note(page: Page, general_properties: dict) -> None:
255266
"""
256267
Test to verify if an existing kit note can be updated successfully.

tests/regression/notes/test_subject_notes.py

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@
2828
)
2929

3030

31+
@pytest.mark.regression
32+
@pytest.mark.note_tests
3133
def test_subject_does_not_have_a_subject_note(
3234
page: Page, general_properties: dict
3335
) -> None:
@@ -71,6 +73,8 @@ def test_subject_does_not_have_a_subject_note(
7173
)
7274

7375

76+
@pytest.mark.regression
77+
@pytest.mark.note_tests
7478
def test_add_a_subject_note_for_a_subject_without_a_note(
7579
page: Page, general_properties: dict
7680
) -> None:
@@ -155,6 +159,8 @@ def test_add_a_subject_note_for_a_subject_without_a_note(
155159
)
156160

157161

162+
@pytest.mark.regression
163+
@pytest.mark.note_tests
158164
def test_identify_subject_with_subject_note(
159165
page: Page, general_properties: dict
160166
) -> None:
@@ -189,6 +195,8 @@ def test_identify_subject_with_subject_note(
189195
)
190196

191197

198+
@pytest.mark.regression
199+
@pytest.mark.note_tests
192200
def test_view_active_subject_note(page: Page, general_properties: dict) -> None:
193201
"""
194202
Test to verify if an active subject note is visible for a subject.
@@ -254,6 +262,8 @@ def test_view_active_subject_note(page: Page, general_properties: dict) -> None:
254262
), f"Note does not match. UI: '{ui_data['note']}', DB: '{db_data['note']}'"
255263

256264

265+
@pytest.mark.regression
266+
@pytest.mark.note_tests
257267
def test_update_existing_subject_note(page: Page, general_properties: dict) -> None:
258268
"""
259269
Test to verify if an existing subject note can be updated successfully.
@@ -286,7 +296,7 @@ def test_update_existing_subject_note(page: Page, general_properties: dict) -> N
286296
SubjectScreeningSummaryPage(page).click_subjects_events_notes()
287297
SubjectEventsNotes(page).select_note_type(NotesOptions.SUBJECT_NOTE)
288298
BasePage(page).safe_accept_dialog_select_option(
289-
SubjectEventsNotes(page).episode_note_status, NotesStatusOptions.INVALID
299+
SubjectEventsNotes(page).note_status, NotesStatusOptions.INVALID
290300
)
291301
SubjectEventsNotes(page).fill_note_title("updated subject title")
292302
SubjectEventsNotes(page).fill_notes("updated subject note")
@@ -332,6 +342,8 @@ def test_update_existing_subject_note(page: Page, general_properties: dict) -> N
332342
)
333343

334344

345+
@pytest.mark.regression
346+
@pytest.mark.note_tests
335347
def test_remove_existing_subject_note(page: Page, general_properties: dict) -> None:
336348
"""
337349
Test to verify if an existing Subject note can be removed for a subject with one Subject note.
@@ -388,6 +400,8 @@ def test_remove_existing_subject_note(page: Page, general_properties: dict) -> N
388400
)
389401

390402

403+
@pytest.mark.regression
404+
@pytest.mark.note_tests
391405
def test_remove_existing_subject_note_for_subject_with_multiple_notes(
392406
page: Page, general_properties: dict
393407
) -> None:

0 commit comments

Comments
 (0)