Skip to content

Commit 33640e1

Browse files
More vale fixes
1 parent e7cc3a8 commit 33640e1

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

docs/utility-guides/CalendarPicker.md

Lines changed: 6 additions & 6 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 differes 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

@@ -390,11 +390,11 @@ This is called to select the day of the date we want the calendar picker to go t
390390
1. First it checks what operating system is running.
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"`.
393-
3. This is done to get the day without any leading zeros. E.g. *05 11 1996* will trun into *5*.
393+
3. This is done to get the day without any leading zeros. E.g. *05 11 1996* will turn into *5*.
394394
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`.
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`.
397-
4. After we check how many of the cells in `all_days` match the date we wnat to select and store them as a list in the variable `matching_days`.
397+
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`.
398398
5. Next we perform a few `IF` statements to see if we need to click the first, last or only cell stored in `matching_days`.
399399
1. If the date we want to select is less than 15, and `number_of_cells_with_day` is greater than 1, we select the first option in `all_days`.
400400
2. If the date we want to select is greater than 15 and `number_of_cells_with_day` is greater than 1, we select the last option in `all_days`.
@@ -423,10 +423,10 @@ This is called to select the first date with appointment slots available
423423
1. If it is windows then it calls the `format_date` method from DateTimeUtils and passes the formatting string: `"%#m"` and stores the result in `current_month_int`.
424424
2. Otherwise it calls the `format_date` method from DateTimeUtils and passes the formatting string: `"%-m"` and stores the result in `current_month_int`.
425425
3. Then it passes `current_month_displayed_int` and `current_month_int` into the `book_appointments_go_to_month` method.
426-
4. Next it runs a `while` loop to see if the calendar is showing any avaialbe appointments.
426+
4. Next it runs a `while` loop to see if the calendar is showing any available appointments.
427427
1. This is done by calling the `check_for_eligible_appointment_dates` method.
428428
2. If True is returned by the `check_for_eligible_appointment_dates` method then the `while` loop is broken.
429-
3. Otherwise it carries on the loop 3 more times, advacing the month by 1 each time.
429+
3. Otherwise it carries on the loop 3 more times, advancing the month by 1 each time.
430430
4. If at the end of the 3 loops it cannot find an appointment, it fails the test.
431431

432432
### Book Appointments Go To Month
@@ -440,7 +440,7 @@ This is called to move the book appointments calendar to the month we desire.
440440
- This is the current month shown on the calendar
441441
- `wanted_month`:
442442
- Type: `int`
443-
- This is them onth we want the calendar to go to
443+
- This is the month we want the calendar to go to
444444

445445
#### How This Function Works
446446

0 commit comments

Comments
 (0)