Skip to content

Commit b600f73

Browse files
Fixed more spelling issues
1 parent abb65ff commit b600f73

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

docs/utility-guides/CalendarPicker.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ You provide a date and a playwright locator and it will enter the date in the fo
108108
#### How This Function Works
109109

110110
1. This calls the `format_date` method from DateTimeUtils to get the date in the correct format.
111-
1. As the formatting for the `datetime` function differes between operating systems, there is a check first to see what OS is in use.
111+
1. As the formatting for the `datetime` function differs between operating systems, there is a check first to see what OS is in use.
112112
2. From here it calls the correct formatting option.
113113
2. Once the date is formatted correctly it enters it into the provided locator.
114114

@@ -169,7 +169,7 @@ This is called to move the V1 calendar picker to the correct year
169169

170170
#### How This Function Works
171171

172-
1. If `years_to_traverse` is negative, it mutplies it by -1 and runs a `FOR` loop for the value of this variable.
172+
1. If `years_to_traverse` is negative, it multiplies it by -1 and runs a `FOR` loop for the value of this variable.
173173
1. For each iteration of the loop it clicks on the previous year button: `«`
174174
2. If `years_to_traverse` is positive, it runs a `FOR` loop for the value of this variable.
175175
1. For each iteration of the loop it clicks on the next year button: `»`
@@ -186,7 +186,7 @@ This is called to move the V1 calendar picker to the correct month.
186186

187187
#### How This Function Works
188188

189-
1. If `months_to_traverse` is negative, it mutplies it by -1 and runs a `FOR` loop for the value of this variable.
189+
1. If `months_to_traverse` is negative, it multiplies it by -1 and runs a `FOR` loop for the value of this variable.
190190
1. For each iteration of the loop it clicks on the previous month button: ``
191191
2. If `months_to_traverse` is positive, it runs a `FOR` loop for the value of this variable.
192192
1. For each iteration of the loop it clicks on the next month button: ``
@@ -391,7 +391,7 @@ This is called to select the day of the date we want the calendar picker to go t
391391
1. If Windows is found then it calls the `format_date` method from DateTimeUtils and passes the formatting string `"%#d"`.
392392
2. Otherwise it calls the `format_date` method from DateTimeUtils and passes the formatting string `"%-d"`.
393393
3. This is done to get the day without any leading zeros. E.g. *05 11 1996* will turn into *5*.
394-
2. Then it calcualtes how many cells contain the date we are looking for and stores it in the variable `number_of_cells_with_day`.
394+
2. Then it calculates how many cells contain the date we are looking for and stores it in the variable `number_of_cells_with_day`.
395395
1. This is done as if we were to select the 1st of April, the 1st of May may also show up on the same screen. The same goes for other low or high dates.
396396
3. Then we store all of the cells with a date in a variable `all_days`.
397397
4. After we check how many of the cells in `all_days` match the date we want to select and store them as a list in the variable `matching_days`.
@@ -444,7 +444,7 @@ This is called to move the book appointments calendar to the month we desire.
444444

445445
#### How This Function Works
446446

447-
1. Firstly it caclulates the difference between `current_displayed_month` and `wanted_month` and stores the result in `month_difference`.
447+
1. Firstly it calculates the difference between `current_displayed_month` and `wanted_month` and stores the result in `month_difference`.
448448
2. Then if `month_difference` is greater than 0, it runs a for loop for the value of `month_difference` clicking on the previous month button once per loop.
449449
3. If `month_difference` is less than 0, it runs a for loop for the value of `month_difference` clicking on the next month button once per loop.
450450

tests/smokescreen/test_compartment_4.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,10 @@ def test_compartment_4(page: Page, smokescreen_properties: dict) -> None:
4545
"""
4646
This is the main compartment 4 method
4747
First it obtains the necessary test data from the DB
48-
Then it logs on as a Screening Centre Manager and sets the availablity of a practitioner from 09:00 to 17:15 from todays date for the next 6 weeks
48+
Then it logs on as a Screening Centre Manager and sets the availability of a practitioner from 09:00 to 17:15 from todays date for the next 6 weeks
4949
After It logs out an logs back in as a Hub Manager
5050
Once logging back in it books appointments for the subjects retrieved earlier
51-
Finally it processes the necessary batches to send out the letters and checks the subjects satus has been updated to what is expected
51+
Finally it processes the necessary batches to send out the letters and checks the subjects status has been updated to what is expected
5252
"""
5353

5454
subjects_df = get_subjects_for_appointments(

utils/calendar_picker.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def calculate_years_and_months_to_traverse(
6868
It calculates how many years and months it needs to traverse
6969
7070
Args:
71-
date (datetime): The date wewant to go to
71+
date (datetime): The date we want to go to
7272
current_date (datetime): The current date
7373
7474
Returns:
@@ -411,7 +411,7 @@ def check_for_eligible_appointment_dates(
411411
self, locator: Locator, bg_colours: list
412412
) -> bool:
413413
"""
414-
This function loops through all of the appointment date cells and if the bacground colour matches
414+
This function loops through all of the appointment date cells and if the background colour matches
415415
It then checks that the length of the name is less than 5.
416416
This is done the name length is the only differentiating factor between the two calendar tables on the page
417417
- 1st table has a length of 4 (e.g. wed2, fri5) and the 2nd table has a length of 5 (e.g. wed11, fri14)

0 commit comments

Comments
 (0)