2FAuth/tests/EndToEnd/Pages/settings_account_page.robot
2023-08-31 19:12:55 +02:00

30 lines
952 B
Plaintext

*** Settings ***
Documentation A page object to use in Account settings tests.
...
Library SeleniumLibrary
Resource login_page.robot
Resource settings.resource
Resource ../common.resource
*** Variables ***
${ACCOUNT SETTINGS PAGE URL} ${ROOT URL}/settings/account
${PASSWORD FIELD FOR DELETE} css:form#frmDeleteAccount >> css:input#pwdPassword
${DELETE YOUR ACCOUNT BUTTON} btnDeleteAccount
*** Keywords ***
Account Settings Page Should Be Open
Location Should Be ${ACCOUNT SETTINGS PAGE URL}
Go To Account Settings Page
Go Authenticated To ${ACCOUNT SETTINGS PAGE URL}
Browse To Account Settings Tab
Browse To Settings Tab ${ACCOUNT TAB}
Delete User Account
Scroll To Bottom
Input Text ${PASSWORD FIELD FOR DELETE} ${PASSWORD}
Click Button ${DELETE YOUR ACCOUNT BUTTON}
Handle Alert
Wait Until Location Is Not ${ROOT URL}/settings/account