2FAuth/tests/EndToEnd/Pages/accounts_page.robot

34 lines
1.0 KiB
Plaintext
Raw Normal View History

2022-08-04 21:32:24 +02:00
*** Settings ***
Documentation A page object to use in Accounts tests.
...
Library SeleniumLibrary
Resource ../common.resource
*** Variables ***
2022-08-16 09:05:36 +02:00
${ACCOUNTS PAGE URL} ${ROOT URL}/accounts
2022-08-04 21:32:24 +02:00
2023-08-30 15:48:04 +02:00
${GROUP SWITCH} groupSwitch
${SHOW GROUP SWITCH BUTTON} btnShowGroupSwitch
${HIDE GROUP SWITCH BUTTON} btnHideGroupSwitch
2022-08-04 21:32:24 +02:00
*** Keywords ***
Accounts Page Should Be Open
2023-08-30 15:48:04 +02:00
Wait Until Location Is ${ACCOUNTS PAGE URL}
Go To Accounts Page
2023-08-30 15:48:04 +02:00
Go Authenticated To ${ACCOUNTS PAGE URL}
Show First Totp In Modal
Wait Until Page Contains Element class:tfa-cell
${account} = Get WebElement class:tfa-cell:first-child
Click Element ${account}
Wait Until Element Is Visible ${OTP}
Show Group Switch
Wait Until Page Contains Element ${SHOW GROUP SWITCH BUTTON}
Click Element ${SHOW GROUP SWITCH BUTTON}
Wait Until Page Contains Element ${GROUP SWITCH}
Hide Group Switch
Click Element ${HIDE GROUP SWITCH BUTTON}
Wait Until Page Does Not Contain Element ${GROUP SWITCH}