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-1292, Story #Story# JRNL-1220: [Update_About_Screen_for_2.1_JRNL-1292_5063_spec.rb]" do

before(:all) do
initializeConfigurations(BASE_URL)

@ABOUT_SCREEN = [

########################################################################################################################
########################################################################################################################
############# THE ONLY CAUSE OF THIS SCRIPT FAILING IS THE VERSION NUMBER BELOW NOT UPDATED IN THE APP #################
########################################################################################################################
########################################################################################################################

# "My VA Health - v2.1.0",

########################################################################################################################
########################################################################################################################
############# THE ONLY CAUSE OF THIS SCRIPT FAILING IS THE VERSION NUMBER ABOVE NOT UPDATED IN THE APP #################
########################################################################################################################
########################################################################################################################

"The My VA Health app allows you to enter, view, and track personal health information, which can be shared with your healthcare team.",
"You can use the current version of the app to:",
"Track personal health information including vital signs, diet, exercise, and daily events",
"Enter your medical history information including your medications, allergies, diagnoses, hospitalizations, surgeries, pregnancies and family history",
"Create and manage appointment, medication and preventive service reminders",
"View notifications received from your VA care team",
"Reflect on what matters to you in your life and how your health can help you reach your life goals",
"Create and manage healthcare-related and personal contacts and related communications",
"Complete health assessments",
"Share elements of your health information with your care team",
"Notes: A DS Logon account (level 2) is needed for access.",
"End User License Agreement (EULA)",
]

initializeAllObjects

@common.loginEndsOnLandingPage("zztest.patient05", "patient05, zztest")
expect(@main.getFooterText()).to eq("Logged in as patient05, zztest")

@main.clickUserMenu()
!45.times { break if (getTextForElement(:id, "about") == "About"); sleep 1 }
expect(@menu.verifyAboutButtonPresent).to eq("About")
@menu.clickAboutBtn
end

after(:all) do
quitDriver()
end

context 'AC #JRNL-1258, #JRNL-1162|TC #JRNL-1226: Update About Screen to Reference 2.0', :broken => true do

it "About Screen for My VA Health 2.1" do
waitForPageToFinishLoading
expect(@modal.getConfirmationHeading()).to eq("About")

#Verifying Entire content is covered
aboutcontent = @about.getAboutText().split("\n")
aboutcontent.each_with_index do | screenRow, i |
#puts "screenRow [#{i}] [#{screenRow}]"
expect(screenRow).to eq(@ABOUT_SCREEN[i])
end
expect(aboutcontent.length).to eq(@ABOUT_SCREEN.length)
end

it "Eula link is present" do
#Clicking on Eula link and verifying that it opens in a new window
@about.clickShowEULA()
switchWindowToWindowHandleLast()

#Verifying Eula Heading
!45.times { break if (@eula.getEulaHeading == "End User License Agreement"); sleep 1 }
expect(@eula.getEulaHeading).to eq("End User License Agreement")

closeBrowser()
switchWindowToWindowHandleFirst()
@about.clickOKfromAboutScreen()

end

end

end