-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9e896a1
commit b7ae7d2
Showing
4 changed files
with
66 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,6 +18,7 @@ __pycache__/ | |
screenshots/ | ||
.env | ||
venv/ | ||
.venv/ | ||
allure-results/ | ||
allure-report/ | ||
.js | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,37 @@ | ||
from init_helpers import * | ||
|
||
CONFIRM_BUTTON = ("//button[text()='Confirm']") | ||
ERROR_BATCH_ALREADY_EXISTS = ("//p[text()='Error! One or more vaccine batches aleady exist at a site.']") | ||
CONFIRM_BUTTON = "//button[text()='Confirm']" | ||
ERROR_BATCH_ALREADY_EXISTS = "//p[text()='Error! One or more vaccine batches already exist at a site.']" | ||
|
||
|
||
def check_site_name_is_displayed(sitename): | ||
element = (f"//div[text()='{sitename}']") | ||
element = f"//div[text()='{sitename}']" | ||
return check_element_exists(element, True) | ||
|
||
|
||
def check_vaccine_is_displayed(vaccine): | ||
element = (f"//b[text()='{vaccine}']") | ||
element = f"//b[text()='{vaccine}']" | ||
return check_element_exists(element, True) | ||
|
||
|
||
def check_vaccinetype_is_displayed(vaccineType): | ||
element = (f"//div[text()='{vaccineType}']") | ||
element = f"//div[text()='{vaccineType}']" | ||
return check_element_exists(element, True) | ||
|
||
|
||
def check_batchNumber_is_displayed(batchnumber): | ||
element = (f"//div[text()='{batchnumber}']") | ||
element = f"//div[text()='{batchnumber}']" | ||
return check_element_exists(element, True) | ||
|
||
|
||
def check_date_is_displayed(date): | ||
element = (f"//div[text()='{date}']") | ||
element = f"//div[text()='{date}']" | ||
return check_element_exists(element, True) | ||
|
||
|
||
def check_batch_already_exists_error_is_displayed(): | ||
return check_element_exists(ERROR_BATCH_ALREADY_EXISTS, False) | ||
|
||
|
||
def click_confirm_button(): | ||
find_element_and_perform_action(CONFIRM_BUTTON, "click") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters