2022-08-07 19:36:23 +02:00
|
|
|
*** Settings ***
|
|
|
|
Documentation Workflows execute recurrent tasks.
|
|
|
|
... They don't assert anything.
|
|
|
|
... They must be triggered while a browser is already opened.
|
|
|
|
... They must not close the browser
|
|
|
|
Resource common.resource
|
|
|
|
Resource Pages/login_page.robot
|
|
|
|
Resource Pages/register_page.robot
|
|
|
|
Resource Pages/accounts_page.robot
|
|
|
|
Resource Pages/settings_account_page.robot
|
2023-08-04 14:06:23 +02:00
|
|
|
Resource Pages/autolock_page.robot
|
2022-08-07 19:36:23 +02:00
|
|
|
|
|
|
|
*** Variables ***
|
|
|
|
|
|
|
|
|
|
|
|
*** Keywords ***
|
2023-08-04 14:06:23 +02:00
|
|
|
Play Delete Current User Account Workflow
|
2022-08-07 19:36:23 +02:00
|
|
|
Go To Account Settings Page
|
|
|
|
Delete User Account
|
2023-08-04 14:06:23 +02:00
|
|
|
Wait Until Location Is ${REGISTER PAGE URL}
|
2022-08-07 19:36:23 +02:00
|
|
|
|
2023-08-04 14:06:23 +02:00
|
|
|
Play Admin Sign In Workflow
|
|
|
|
Play Logout Workflow
|
2022-08-07 19:36:23 +02:00
|
|
|
Delete All Cookies
|
|
|
|
Go To Legacy Login Page
|
2023-08-04 14:06:23 +02:00
|
|
|
Submit Credentials To Legacy Form Login ${ADMIN EMAIL} ${PASSWORD}
|
2023-09-13 15:34:28 +02:00
|
|
|
Wait Until Location Is Not ${LOGIN PAGE URL}
|
2022-08-07 19:36:23 +02:00
|
|
|
|
2023-08-04 14:06:23 +02:00
|
|
|
Play User Sign In Workflow
|
|
|
|
Play Logout Workflow
|
|
|
|
Delete All Cookies
|
|
|
|
Go To Legacy Login Page
|
|
|
|
Submit Credentials To Legacy Form Login ${USER EMAIL} ${PASSWORD}
|
|
|
|
Wait Until Location Is ${ACCOUNTS PAGE URL}
|
2022-08-07 19:36:23 +02:00
|
|
|
|
|
|
|
Play Logout Workflow
|
2023-08-04 14:06:23 +02:00
|
|
|
Go To ${ACCOUNTS PAGE URL}
|
2022-08-07 19:36:23 +02:00
|
|
|
${is_authenticated}= Run Keyword And Return Status Page Should Contain Element ${LOGOUT LINK}
|
|
|
|
IF ${is_authenticated} == True
|
|
|
|
Click Element ${LOGOUT LINK}
|
|
|
|
Handle Alert
|
2023-08-04 14:06:23 +02:00
|
|
|
END
|
|
|
|
Wait Until Location Is ${LOGIN PAGE URL}
|