@@ -11,7 +11,9 @@ ${CM CURSORS} css:.CodeMirror-cursors:not([style='visibility: hidden'])
1111
1212*** Test Cases ***
1313Bash
14- Editor Shows Features for Language Bash example.sh Diagnostics=Failed to parse expression Jump to Definition=fib
14+ [Documentation] TODO: figure out why the first server is extra flaky
15+ Wait Until Keyword Succeeds 3x 10s Editor Shows Features for Language Bash example.sh Diagnostics=Failed to parse expression
16+ ... Jump to Definition=fib
1517
1618CSS
1719 ${def } = Set Variable xpath:(//span[contains(@class, 'cm-variable-2')][contains(text(), '--some-var')])[last()]
@@ -65,26 +67,40 @@ Editor Shows Features for Language
6567 Set Tags language:${Language.lower() }
6668 Set Screenshot Directory ${OUTPUT DIR }${/ } screenshots${/ } editor${/ }${Language.lower() }
6769 Copy File examples${/ }${file } ${OUTPUT DIR }${/ } home${/ }${file }
68- Reset Application State
70+ Lab Command Close All Tabs
6971 Open ${file } in Editor
72+ Capture Page Screenshot 00-opened.png
7073 FOR ${f } IN @{features }
7174 Run Keyword If "${f } " == "Diagnostics" Editor Should Show Diagnostics ${features["${f }"] }
7275 ... ELSE IF "${f } " == "Jump to Definition" Editor Should Jump To Definition ${features["${f }"] }
7376 END
74- [Teardown] Remove File ${OUTPUT DIR }${/ } home${/ }${file }
77+ Capture Page Screenshot 99-done.png
78+ [Teardown] Clean Up After Working With File ${file }
79+
80+ Clean Up After Working With File
81+ [Arguments] ${file }
82+ Remove File ${OUTPUT DIR }${/ } home${/ }${file }
83+ Reset Application State
7584
7685Open ${file} in Editor
86+ Ensure File Browser is Open
87+ Click Element css:button[title="Refresh File List"]
7788 Open Context Menu css:.jp-DirListing-item[title="${file } "]
7889 Mouse Over ${MENU OPEN WITH }
7990 Wait Until Page Contains Element ${MENU EDITOR }
8091 Mouse Over ${MENU EDITOR }
8192 Click Element ${MENU EDITOR }
8293
94+ Ensure File Browser is Open
95+ ${sel } = Set Variable css:.p-TabBar-tab[data-id="filebrowser"]:not(.p-mod-current)
96+ ${els } = Get WebElements ${sel }
97+ Run Keyword If ${els.__len__() } Click Element ${sel }
98+
8399Editor Should Show Diagnostics
84100 [Arguments] ${diagnostic }
85101 Set Tags feature:diagnostics
86102 Wait Until Page Contains Element css:.cm-lsp-diagnostic[title*="${diagnostic } "] timeout=20s
87- Capture Page Screenshot diagnostics.png
103+ Capture Page Screenshot 01- diagnostics.png
88104
89105Editor Should Jump To Definition
90106 [Arguments] ${symbol }
@@ -96,12 +112,12 @@ Editor Should Jump To Definition
96112 Wait Until Keyword Succeeds 10 x 0.1 s Click Element ${sel }
97113 Wait Until Keyword Succeeds 10 x 0.1 s Open Context Menu ${sel }
98114 ${cursor } = Measure Cursor Position
99- Capture Page Screenshot jump-to-definition-0.png
115+ Capture Page Screenshot 02- jump-to-definition-0.png
100116 Mouse Over ${MENU JUMP }
101- Capture Page Screenshot jump-to-definition-1.png
117+ Capture Page Screenshot 02- jump-to-definition-1.png
102118 Click Element ${MENU JUMP }
103119 Wait Until Keyword Succeeds 10 x 1 s Cursor Should Jump ${cursor }
104- Capture Page Screenshot jump-to-definition-2.png
120+ Capture Page Screenshot 02- jump-to-definition-2.png
105121
106122Cursor Should Jump
107123 [Arguments] ${original }
0 commit comments