Skip to content

Commit

Permalink
Remove legacy support for app menu logout
Browse files Browse the repository at this point in the history
Signed-off-by: Samuli Leivo <[email protected]>
  • Loading branch information
leivos-unikie committed Oct 23, 2024
1 parent 70aa83c commit b603be4
Showing 1 changed file with 5 additions and 21 deletions.
26 changes: 5 additions & 21 deletions Robot-Framework/resources/gui_keywords.resource
Original file line number Diff line number Diff line change
Expand Up @@ -25,28 +25,12 @@ GUI Log out
[Documentation] Log out and optionally verify that desktop is not available
[Arguments] ${log_out_icon}=./logout.png
Start ydotoold
Log To Console Going to click the app menu icon
Locate and click ${start_menu} 0.95 5
Log To Console Checking if logout icon is in app menu
${login_icon_found_status} ${msg} Run Keyword And Ignore Error Get icon app system-log-out.svg crop=10 output_filename=logout.png
${locate_status}= Set Variable FAIL
IF $login_icon_found_status == "PASS"
${locate_status} ${msg} Run Keyword And Ignore Error Locate image on screen ./logout.png
END
IF $locate_status == "PASS"
Log To Console Going to click the Log Out icon
Locate and click ${log_out_icon} 0.95 5
ELSE
Log To Console No logout icon on app menu detected. Searching logout from the taskbar power icon
# Previously opened app menu needs to be closed
Locate and click ${start_menu} 0.95 5
Get icon ghaf-artwork power.svg crop=0 background=black
Locate and click ./icon.png 0.95 5
Get icon ghaf-artwork logout.svg crop=0 background=black
Locate and click ./icon.png 0.95 5
END
Get icon ghaf-artwork power.svg crop=0 background=black
Locate and click ./icon.png 0.95 5
Get icon ghaf-artwork logout.svg crop=0 background=black
Locate and click ./icon.png 0.95 5
Verify logout
Run Keyword If ${LOGGED_IN_STATUS} FAIL Log out failed. Desktop is still running.
Run Keyword If ${LOGGED_IN_STATUS} FAIL Log out failed. Desktop is still running.

Type string and press enter
[Arguments] ${string}
Expand Down

0 comments on commit b603be4

Please sign in to comment.