Skip to content

Commit

Permalink
Add donation reminder to tests for manager
Browse files Browse the repository at this point in the history
Issue #252
  • Loading branch information
damies13 committed Nov 1, 2024
1 parent 1a0a18c commit 0e39d9d
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 9 deletions.
16 changes: 12 additions & 4 deletions Tests/Regression/Manager/GUI_Common.robot
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ Open Manager GUI
[Arguments] ${options}=None
# Press Escape and move mouse because on linux the screen save had kicked in
Press Combination Key.esc
Move To 10 10
Move To 20 20
Wiggle Mouse

IF ${options} == None
${options}= Create List
Create Directory ${results_dir}
Expand All @@ -104,6 +104,8 @@ Open Manager GUI
IF '-n' in ${options}
Sleep 10
ELSE
Handle Donation Reminder

${img}= Set Variable manager_${platform}_button_runschedule.png
${passed}= Run Keyword And Return Status Wait For ${img} timeout=${default_image_timeout / 2}
IF not ${passed}
Expand All @@ -130,13 +132,19 @@ Open Manager GUI
END
END

Wiggle Mouse
Move To 10 10
Move To 20 20

Handle Donation Reminder
${found}= Run Keyword And Return Status Click Button MaybeLater ${default_image_timeout / 2}
VAR ${DonationReminder} ${found} scope=TEST

Close Manager GUI ubuntu
Run Keyword And Ignore Error Click Dialog Button cancel 0.01
Run Keyword And Ignore Error Click Dialog Button no 0.01
Close Manager GUI



Close Manager GUI windows
Run Keyword And Ignore Error Click Dialog Button cancel 0.01
Run Keyword And Ignore Error Click Dialog Button no 0.01
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 2 additions & 5 deletions Tests/Regression/Reporter/GUI_Common.robot
Original file line number Diff line number Diff line change
Expand Up @@ -361,11 +361,8 @@ Open GUI macos
# Take A Screenshot

Handle Donation Reminder
VAR ${DonationReminter} ${False} scope=TEST
${found}= Run Keyword And Return Status Click Button MaybeLater 60
IF ${found}
VAR ${DonationReminter} ${True} scope=TEST
END
${found}= Run Keyword And Return Status Click Button MaybeLater ${default_image_timeout / 2}
VAR ${DonationReminder} ${found} scope=TEST

Close GUI
${keyword}= Set Variable Close GUI ${platform}
Expand Down

0 comments on commit 0e39d9d

Please sign in to comment.