Skip to content

Commit 7b0d064

Browse files
committed
QA-8162 resolved conflicts
2 parents 17e47ec + ffb51b2 commit 7b0d064

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

testCases/test_02_admin.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ def test_case_02_verify_disease_and_drugs(self):
103103
p_regimen = PatientRegimenPage(self, 'patient_regimens')
104104
profile = UserProfilePage(self, "user")
105105

106+
106107
d = self.__class__.data
107108

108109
if "banner" in self.settings["url"]:
@@ -205,6 +206,10 @@ def test_case_02_verify_disease_and_drugs(self):
205206
p_regimen.verify_patient_regimen_page()
206207
p_regimen.verify_drugs_present(drug_name, drug_switch_now)
207208

209+
home.click_admin_profile_button()
210+
profile.logout_user()
211+
login.after_logout()
212+
208213
@pytest.mark.smoketest
209214
@pytest.mark.dependency(name="tc_admin_3", scope="class")
210215
def test_case_03_admin_announcement(self):
@@ -226,13 +231,8 @@ def test_case_03_admin_announcement(self):
226231
else:
227232
default_client = UserData.client[2]
228233

229-
try:
230-
login.launch_browser(self.settings["url"])
231-
login.login(self.settings["login_username"], self.settings["login_password"])
232-
except Exception:
233-
print("Login Page is not present")
234+
login.login(self.settings["login_username"], self.settings["login_password"])
234235

235-
home.open_dashboard_page()
236236
home.validate_dashboard_page()
237237
home.open_admin_page()
238238
admin.open_announcement()

user_inputs/user_data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class UserData:
1111
dose_per_pill = 2
1212
admin_disease = ["Depression", "Hepatitis C", "Ebola"]
1313
admin_drug = ["Levofloxacin", "Rifapentine", "Truvada", "Stribild"]
14-
default_staff_email = ["automation.user@email.com", "automation.user_rogers@email.com", "automation.user_secure@email.com", "automation.user_eu@email.com"]
14+
default_staff_email = ["automation.user.banner@gmail.com", "automation.user.rogers@gmail.com", "automation.user.secure@gmail.com", "automation.user.eu@gmail.com"]
1515
default_staff_name = "Automation Testuser"
1616
med_status = "Taken"
1717
provider_observation = "Patient"

0 commit comments

Comments
 (0)