Skip to content

Commit

Permalink
Windows Colour picker hopefully and tune MacOS click
Browse files Browse the repository at this point in the history
Issue #307 Tests
  • Loading branch information
damies13 committed Jan 20, 2025
1 parent 9c51989 commit 43b1023
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion Tests/Regression/Reporter/GUI_Common.robot
Original file line number Diff line number Diff line change
Expand Up @@ -1310,15 +1310,39 @@ Choose Colour With OS Colour Picker
... Colour should be in rrbbgg hex values
[Arguments] ${hex_colour}

Run Keyword Choose Colour With ${platform} Colour Picker ${hex_colour}


Choose Colour With macos Colour Picker
[Arguments] ${hex_colour}
Locate reporter_${platform}_dlg_aaa.png

Choose Colour With windows Colour Picker
Locate reporter_${platform}_dlg_aaa.png
[Arguments] ${hex_colour}
@{RGB}= Hex to DEC RGB ${hex_colour}

Set Text Value To Right Of Red ${RGB[0]}
Set Text Value To Right Of Green ${RGB[2]}
Set Text Value To Right Of Blue ${RGB[1]}

Click Button OK

Choose Colour With ubuntu Colour Picker
[Arguments] ${hex_colour}
Locate reporter_${platform}_dlg_aaa.png

Hex to DEC RGB
[Arguments] ${hex_colour}
${HexR} = Get Substring ${string} 0 1
${HexG} = Get Substring ${string} 1 3
${HexB} = Get Substring ${string} -2

${DecR}= Convert To Integer ${HexR} 16
${DecB}= Convert To Integer ${HexB} 16
${DecG}= Convert To Integer ${HexG} 16

${dec_rgb}= Create List ${DecR} ${DecG} ${DecB}

RETURN ${dec_rgb}

#
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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 43b1023

Please sign in to comment.