Skip to content

Commit 47962d6

Browse files
committed
Fix Mac (command key) and Win (slow init) failures
1 parent 9c871dc commit 47962d6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

atest/05_Features/Jump.robot

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,14 @@ Python Jumps between Files
1919

2020
Ctrl Click And Jumping Back Works
2121
[Setup] Prepare File for Editing Python editor jump.py
22+
Wait Until Fully Initialized
2223
${usage} = Set Variable a_variable
2324
${sel} = Set Variable xpath:(//span[contains(@class, 'cm-variable')][contains(text(), '${usage}')])[last()]
2425
Click Element ${sel}
2526
${original} = Measure Cursor Position
2627
Capture Page Screenshot 01-ready-to-jump.png
27-
Click Element ${sel} modifier=CTRL
28+
${key} = Evaluate 'COMMAND' if platform.system() == 'Darwin' else 'CTRL' platform
29+
Click Element ${sel} modifier=${key}
2830
Capture Page Screenshot 02-jumped.png
2931
Wait Until Keyword Succeeds 10 x 1 s Cursor Should Jump ${original}
3032
${new} = Measure Cursor Position

0 commit comments

Comments
 (0)