Skip to content

Commit

Permalink
Attached_screen_shots
Browse files Browse the repository at this point in the history
  • Loading branch information
neelimaguntupalli1-nhs committed Mar 6, 2025
1 parent 2728a7b commit caad9e2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,7 @@ def check_site_vaccine_type_has_active_batch(shared_data, site, vaccine, vaccine
if shared_data["chosen_vaccine"].lower() == "covid-19" or shared_data["chosen_vaccine"].lower() == "flu":
pack_size = shared_data["pack_size"]
shared_data['pack_size'] = get_pack_size_value_vaccines_page(batch_number, expiry_date, pack_size)
attach_screenshot("pack_size_pharmacy")
elif not check_batch_number_is_active_with_date(batch_number, expiry_date, True):
click_reactivate_batch_link(batch_number)
click_reactivate_batch_confirmation_button()
Expand Down
6 changes: 3 additions & 3 deletions features/bsa_record_a_vaccine_for_community_pharmacy.feature
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ Feature: Business services authority (BSA) - Record vaccine for community pharma

Examples:
| index | nhs_number | site | care_model | eligibility | assess_date | consent | vaccination | vaccination_date | name | dob | address | chosen_vaccine | batch_number | batch_expiry_date |
| 0 | 9467361590 | Leeds Pharmacy | Outreach event | yes | today | yes | yes | today-9 | WALLIS ADEYEMO | 19/4/2015 | 1 MIDLAND ROAD, LEEDS, LS6 1BQ | COVID-19 | AUTOMATION-SJ1 | 19/10/2026 |
| 1 | 3508118053 | Leeds Pharmacy | Outreach event | yes | today | yes | yes | today-9 | WALLIS ADEYEMO | 19/4/2015 | 1 MIDLAND ROAD, LEEDS, LS6 1BQ |COVID-19 | AUTOMATION-SJ1 | 19/10/2026 |
| 0 | 9467361590 | Leeds Pharmacy | Outreach event | yes | today | yes | yes | today-9 | WALLIS ADEYEMO | 19/4/2015 | 1 MIDLAND ROAD, LEEDS, LS6 1BQ | COVID-19 | AUTO-SUP-C-1 | 19/10/2026 |
| 1 | 3508118053 | Leeds Pharmacy | Outreach event | yes | today | yes | yes | today-9 | WALLIS ADEYEMO | 19/4/2015 | 1 MIDLAND ROAD, LEEDS, LS6 1BQ |COVID-19 | AUTO-SUPER-C-1 | 19/10/2026 |
| 2 | 9734250221 | Leeds Pharmacy | Vaccination Centre | yes | today | yes | yes | today-30 | BARAK SELIGMANN | 26/5/2016 | 170 WEELSBY ROAD, GRIMSBY, S HUMBERSIDE, DN32 8QQ | Flu | AUTOMATION-SJ1 | 19/10/2026 |

@bsarecordvaccine
Expand All @@ -100,7 +100,7 @@ Feature: Business services authority (BSA) - Record vaccine for community pharma
Examples:
| index | nhs_number | site | care_model | eligibility | assess_date | consent | vaccination | vaccination_date | name | chosen_vaccine | batch_number | batch_expiry_date |
| 2 | 9449304033 | Leeds Pharmacy | Vaccination Centre | yes | today | yes | yes | today-30 | BARAK SELIGMANN | Flu | AUTOMATION-SJ1 | 19/10/2026 |
| 3 | 9449304033 | Aspire Pharmacy | Vaccination Centre | yes | today | yes | yes | today-30 | BARAK SELIGMANN | Covid-19 | AUTO-3-OM | 19/10/2026 |
| 3 | 9449304033 | Aspire Pharmacy | Vaccination Centre | yes | today | yes | yes | today-5 | BARAK SELIGMANN | Covid-19 | AUTO-3-OM | 19/10/2026 |

@bsarecordvaccine
Scenario Outline: Record a vaccine at community pharmacy - deceased patient
Expand Down
2 changes: 2 additions & 0 deletions pages/vaccines_page.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ def check_vaccine_batch_exists_with_same_number_and_expiry_date_and_is_active(si
)

javascript_click(view_vaccine_element)
attach_screenshot("clicked_view_vaccine_element")

batch_expiry_date = date_format_with_name_of_month(batch_expiry_date)
batch_number_with_expiry_date_element = f"//td[text()='{batch_number}']/following-sibling::td[text()='{batch_expiry_date}']/following-sibling::td/strong[text()='Active']"
Expand All @@ -79,6 +80,7 @@ def check_vaccine_batch_exists_with_same_number_and_expiry_date_and_is_active(si

wait_for_element_to_appear(batch_number_with_expiry_date_element)
result = check_element_exists(batch_number_with_expiry_date_element, True)
attach_screenshot("checked_batch_number_with_expiry_date_element_exists")
print(f"DEBUG: Batch element exists -> {result}")
return result

Expand Down

0 comments on commit caad9e2

Please sign in to comment.