Skip to content

Commit 7e08167

Browse files
Historical records and guide link
1 parent 45e03c4 commit 7e08167

File tree

6 files changed

+22
-9
lines changed

6 files changed

+22
-9
lines changed

pages/pg_dashboard.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ class pg_dashboard:
1212
LNK_CHILDREN = f"heading{escape_characters.SEPARATOR}Children"
1313
LNK_NOTICES = f"heading{escape_characters.SEPARATOR}Important Notices"
1414
LNK_ORGANISATION = f"heading{escape_characters.SEPARATOR}Your organisation"
15-
LNK_DASHBOARD = "Manage vaccinations in schools"
15+
LNK_NHS_LOGO = "Manage vaccinations in schools"
16+
LNK_GUIDE = "Service guidance (opens in a"
1617

1718
def click_programmes(self):
1819
self.po.perform_action(locator=self.LNK_PROGRAMMES, action=actions.CLICK_LINK)
@@ -34,7 +35,7 @@ def click_your_organisation(self):
3435

3536
def go_to_dashboard(self):
3637
wait(timeout=wait_time.MIN) # Scripts sometimes error out without this wait when called as a teardown action
37-
self.po.perform_action(locator=self.LNK_DASHBOARD, action=actions.CLICK_LINK)
38+
self.po.perform_action(locator=self.LNK_NHS_LOGO, action=actions.CLICK_LINK)
3839

3940
def verify_all_expected_links(self):
4041
self.po.verify(locator=self.LNK_PROGRAMMES, property=object_properties.VISIBILITY, value=True, exact=True)
@@ -48,3 +49,9 @@ def verify_all_expected_links(self):
4849
value=True,
4950
exact=True,
5051
)
52+
self.po.verify(
53+
locator=self.LNK_GUIDE,
54+
property=object_properties.HREF,
55+
value="https://guide.manage-vaccinations-in-schools.nhs.uk/",
56+
exact=True,
57+
)

pages/pg_sessions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,10 +354,10 @@ def schedule_a_valid_session(self, for_today: bool = False):
354354

355355
def edit_a_session_to_today(self):
356356
_future_date = get_offset_date(offset_days=0)
357-
_expected_message = f"Session dates {self.__get_display_formatted_date(date_to_format=_future_date)}"
358357
self.click_scheduled()
359358
self.click_school1()
360359
self.edit_session(to_date=_future_date)
360+
# _expected_message = f"Session dates {self.__get_display_formatted_date(date_to_format=_future_date)}"
361361
# self.verify_scheduled_date(message=_expected_message)
362362

363363
def delete_all_sessions(self):

test_data/hpv/i_dup_1.csv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
TEST_DESC_IGNORED,ORGANISATION_CODE,SCHOOL_URN,SCHOOL_NAME,NHS_NUMBER,PERSON_FORENAME,PERSON_SURNAME,PERSON_DOB,PERSON_GENDER_CODE,PERSON_POSTCODE,DATE_OF_VACCINATION,VACCINE_GIVEN,BATCH_NUMBER,BATCH_EXPIRY_DATE,ANATOMICAL_SITE,DOSE_SEQUENCE,VACCINATED,CARE_SETTING,PERFORMING_PROFESSIONAL_FORENAME,PERFORMING_PROFESSIONAL_SURNAME,PERFORMING_PROFESSIONAL_EMAIL,CLINIC_NAME,TIME_OF_VACCINATION,REASON_NOT_VACCINATED
22
P_Gardasil9,R1L,142181,Bohunt School Wokingham,9000000000,ChildFirst1,ChildLast1,20100811,Male,DN9 1PB,<<VACCS_DATE>>,Gardasil9,AutoBatch1,20301231,Left Thigh,1,Y,1,,,[email protected],Clinic,00:01,
3+
P_Gardasil9,R1L,142181,Bohunt School Wokingham,9000000000,ChildFirst1,ChildLast1,20100811,Male,DN9 1PB,<<VACCS_DATE>>,Gardasil9,AutoBatch1,20301231,Left Thigh,1,Y,1,,,[email protected],Clinic,00:01,

test_data/hpv/i_hist_negative.csv

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ N_EmptyBatchNumber,R1L,142181,Bohunt School Wokingham,<<NHS_NO>>,<<FNAME>>,<<LNA
2323
N_EmptyExpiryDate,R1L,142181,Bohunt School Wokingham,<<NHS_NO>>,<<FNAME>>,<<LNAME>>,20100228,Female,DN9 1PB,<<HIST_VACCS_DATE>>,Gardasil9,Batch1,,left thigh,1,Y,1,,,[email protected],Clinic,00:01,
2424
N_EmptyAnatomicalSite,R1L,142181,Bohunt School Wokingham,<<NHS_NO>>,<<FNAME>>,<<LNAME>>,20100228,Female,DN9 1PB,<<HIST_VACCS_DATE>>,Gardasil9,Batch1,20301231,,1,Y,1,,,[email protected],Clinic,00:01,
2525
N_InvalidAnatomicalSite,R1L,142181,Bohunt School Wokingham,<<NHS_NO>>,<<FNAME>>,<<LNAME>>,20100228,Female,DN9 1PB,<<HIST_VACCS_DATE>>,Gardasil9,Batch1,20301231,Nasal,1,Y,1,,,[email protected],Clinic,00:01,
26+
N_InvalidAnatomicalSite,R1L,142181,Bohunt School Wokingham,<<NHS_NO>>,<<FNAME>>,<<LNAME>>,20100228,Female,DN9 1PB,<<HIST_VACCS_DATE>>,Gardasil9,Batch1,20301231,Left Buttock,1,Y,1,,,[email protected],Clinic,00:01,
27+
N_InvalidAnatomicalSite,R1L,142181,Bohunt School Wokingham,<<NHS_NO>>,<<FNAME>>,<<LNAME>>,20100228,Female,DN9 1PB,<<HIST_VACCS_DATE>>,Gardasil9,Batch1,20301231,Right Buttock,1,Y,1,,,[email protected],Clinic,00:01,
2628
N_EmptyDoseSeq,R1L,142181,Bohunt School Wokingham,<<NHS_NO>>,<<FNAME>>,<<LNAME>>,20100228,Female,DN9 1PB,<<HIST_VACCS_DATE>>,Gardasil9,Batch1,20301231,left thigh,,Y,1,,,[email protected],Clinic,00:01,
2729
N_InvalidDoseSeq,R1L,142181,Bohunt School Wokingham,<<NHS_NO>>,<<FNAME>>,<<LNAME>>,20100228,Female,DN9 1PB,<<HIST_VACCS_DATE>>,Gardasil9,Batch1,20301231,left thigh,10,Y,1,,,[email protected],Clinic,00:01,
2830
N_EmptyCareSetting,R1L,142181,Bohunt School Wokingham,<<NHS_NO>>,<<FNAME>>,<<LNAME>>,20100228,Female,DN9 1PB,<<HIST_VACCS_DATE>>,Gardasil9,Batch1,20301231,left thigh,1,Y,,,,[email protected],Clinic,00:01,

test_data/hpv/o_dup_1.csv

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Completed
2+
0 previously imported records were omitted
3+
2 vaccination records

test_data/hpv/o_hist_negative.csv

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ Row 20 VACCINE_GIVEN: Enter a valid vaccine, eg Gardasil9.
2121
Row 21 BATCH_NUMBER: Enter a batch number.
2222
Row 22 BATCH_EXPIRY_DATE: Enter a batch expiry date.
2323
Row 23 ANATOMICAL_SITE: Enter an anatomical site.
24-
Row 25 DOSE_SEQUENCE: The dose sequence number cannot be greater than 3. Enter a dose sequence number, for example, 1, 2 or 3.
25-
Row 26 DOSE_SEQUENCE: must be less than or equal to 3
26-
Row 27 CARE_SETTING: Enter a care setting.
27-
Row 32 TIME_OF_VACCINATION: Enter a time in the correct format
28-
Row 34 VACCINATED: You need to record whether the child was vaccinated or not. Enter ‘Y’ or ‘N’ in the ‘vaccinated’ column.BATCH_EXPIRY_DATE: must be blankBATCH_NUMBER: must be blankANATOMICAL_SITE: must be blankREASON_NOT_VACCINATED: Enter a valid reasonVACCINE_GIVEN: must be blank
29-
Row 35 CARE_SETTING: Enter a valid care setting.
24+
Row 27 DOSE_SEQUENCE: The dose sequence number cannot be greater than 3. Enter a dose sequence number, for example, 1, 2 or 3.
25+
Row 28 DOSE_SEQUENCE: must be less than or equal to 3
26+
Row 29 CARE_SETTING: Enter a care setting.
27+
Row 34 TIME_OF_VACCINATION: Enter a time in the correct format
28+
Row 36 VACCINATED: You need to record whether the child was vaccinated or not. Enter ‘Y’ or ‘N’ in the ‘vaccinated’ column.BATCH_EXPIRY_DATE: must be blankBATCH_NUMBER: must be blankANATOMICAL_SITE: must be blankREASON_NOT_VACCINATED: Enter a valid reasonVACCINE_GIVEN: must be blank
29+
Row 37 CARE_SETTING: Enter a valid care setting.

0 commit comments

Comments
 (0)