Summary Table
| Categories |
Total Count |
| PII |
0 |
| URL |
0 |
| DNS |
0 |
| EKL |
0 |
| IP |
0 |
| PORT |
0 |
| VsID |
0 |
| CF |
0 |
| AI |
0 |
| VPD |
0 |
| PL |
0 |
| Other |
0 |
File Content
require_relative '../../globalized'
include Globalized
describe '[ Story# JRNL-442: Notifications_JRNL_442_spec ]' do
before(:all) do
initializeConfigurations(BASE_URL)
initializeAllObjects
@common.loginEndsOnLandingPage('zztest.patient05', 'patient05, zztest')
end
after(:all) do
quitDriver()
end
it 'AC(JRNL-442): Different text seen in the warning modal of email cancellation.' do
@main.clickNavMenu
waitForPageToFinishLoading
@driver.find_element(:css, "button[id='Notifications']").click
waitForPageToFinishLoading
@notifications_reminders.clickTheGearIcon
@notifications_reminders.setEmailAddressFromNotificationSettingScreen('test@test.com')
@notifications_reminders.selectTimezoneFromNotificationSettingScreen('(-05:00) America/New_York (Eastern)')
@notifications_reminders.selectReceiveNotifications('Yes')
@notifications_reminders.clickSaveButton
@notifications_reminders.clickTheGearIcon
@notifications_reminders.setEmailAddressFromNotificationSettingScreen('')
@notifications_reminders.clickSaveButton
expect(@notifications_reminders.getNthParagraphTextFromNotificationSettingScreen(1)).to eq('An email address is required for VA Health email notifications. If you do not provide an email address any future email notifications will be cancelled.')
end
end
############################################################################ ORIGINAL CODE ################################################################
###########################################################################################################################################################
=begin
require_relative '../../globalized'
include Globalized
describe '[ Story# JRNL-442: Notifications_JRNL_442_spec ]' do
before(:all) do
initializeConfigurations(BASE_URL)
initializeAllObjects
@common.loginEndsOnLandingPage('zztest.patient01', 'patient01, zztest')
end
after(:all) do
quitDriver()
end
it 'AC(JRNL-442): Different text seen in the warning modal of email cancellation.' do
@main.clickNavMenu
@nav_menu.clickNotifications
@notifications_reminders.clickTheGearIcon
@notifications_reminders.setEmailAddressFromNotificationSettingScreen('test@test.com')
@notifications_reminders.selectTimezoneFromNotificationSettingScreen('(-05:00) America/New_York (Eastern)')
@notifications_reminders.selectReceiveNotifications('Yes')
@notifications_reminders.clickSaveButton
@notifications_reminders.clickTheGearIcon
@notifications_reminders.setEmailAddressFromNotificationSettingScreen('')
@notifications_reminders.clickSaveButton
expect(@notifications_reminders.getNthParagraphTextFromNotificationSettingScreen(1)).to eq('An email address is required for VA Health email notifications. If you do not provide an email address any future email notifications will be cancelled.')
end
end
=end