1414
1515YAML
1616 [Documentation] EXPECT FAIL Composer YAML files don't allow a "greetings" key
17+ [Tags] expect:fail
1718 Settings Should Change Editor Diagnostics YAML example.yaml yaml-language-server
1819 ... {"yaml.schemas": {"http://json.schemastore.org/composer": "*"}}
1920 ... duplicate key
@@ -26,37 +27,55 @@ Markdown
2627 ... `Color` is misspelt
2728 ... `Colour` is misspelt
2829
29- *** Keywords ***
30- Clean Up After Working with File and Settings
31- [Arguments] ${file }
32- Clean Up After Working With File ${file }
33- Reset Plugin Settings
30+ LaTeX
31+ [Documentation] diagnostics only appear if configured
32+ [Tags] language:latex
33+ ${needs reload } = Set Variable "${OS } " == "Windows"
34+ Settings Should Change Editor Diagnostics LaTeX example.tex texlab
35+ ... {"latex.lint.onChange": true}
36+ ... ${EMPTY }
37+ ... Command terminated with space. (chktex)
38+ ... Save File
39+ ... ${needs reload }
3440
41+ *** Keywords ***
3542Settings Should Change Editor Diagnostics
36- [Arguments] ${language } ${file } ${server } ${settings } ${before } ${after }
43+ [Arguments] ${language } ${file } ${server } ${settings } ${before } ${after } ${ save command } = ${ EMPTY } ${ needs reload } = ${ False }
3744 ${before diagnostic } = Set Variable ${CSS DIAGNOSTIC } \[title^="${before } "]
3845 ${after diagnostic } = Set Variable ${CSS DIAGNOSTIC } \[title^="${after } "]
3946 ${tab } = Set Variable ${JLAB XP DOCK TAB } \[contains(., '${file } ')]
4047 ${close icon } = Set Variable *[contains(@class, 'm-TabBar-tabCloseIcon')]
48+ ${save command } = Set Variable If "${save command } " ${save command } Save ${language } File
4149 Prepare File for Editing ${language } config ${file }
4250 Open in Advanced Settings ${LSP PLUGIN ID }
4351 Drag and Drop By Offset ${tab } 0 100
4452 Wait Until Fully Initialized
4553 Open Diagnostics Panel
4654 Drag and Drop By Offset ${JLAB XP DOCK TAB } \[contains(., 'Diagnostics Panel')] 600 -200
4755 Click Element ${JLAB XP DOCK TAB } \[contains(., 'Launcher')]/${close icon }
48- Wait Until Page Contains Element ${before diagnostic } timeout=30s
56+ Run Keyword If " ${ before } " Wait Until Page Contains Element ${before diagnostic } timeout=30s
4957 Page Should Not Contain ${after diagnostic }
5058 Capture Page Screenshot 01-default-diagnostics-and-settings.png
5159 Set Editor Content {"language_servers": {"${server } ": {"serverSettings": ${settings } }}} ${CSS USER SETTINGS }
5260 Wait Until Page Contains No errors found
53- Capture Page Screenshot 01 -default-diagnostics-and-settings.png
61+ Capture Page Screenshot 02 -default-diagnostics-and-unsaved -settings.png
5462 Click Element css:button[title\='Save User Settings']
55- Click Element ${JLAB XP DOCK TAB } \[contains(., 'Settings')]/ ${ close icon }
63+ Click Element ${JLAB XP CLOSE SETTINGS }
5664 Drag and Drop By Offset ${tab } 0 100
57- Lab Command Save ${ language } File
65+ Lab Command ${ save command }
5866 Ensure Sidebar Is Closed
59- Capture Page Screenshot 02-settings-changed.png
67+ Capture Page Screenshot 03-settings-changed.png
68+ Run Keyword If ${needs reload } Reload After Configuration ${language } ${file }
6069 Wait Until Page Contains Element ${after diagnostic } timeout=30s
61- Capture Page Screenshot 03 -configured-diagnostic-found.png
70+ Capture Page Screenshot 04 -configured-diagnostic-found.png
6271 [Teardown] Clean Up After Working with File and Settings ${file }
72+
73+ Reload After Configuration
74+ [Arguments] ${language } ${file }
75+ Reload Page
76+ Wait Until Keyword Succeeds 3x 5s Wait For Splash
77+ Reset Application State
78+ Prepare File for Editing ${language } config ${file }
79+ Wait Until Fully Initialized
80+ Open Diagnostics Panel
81+ Ensure Sidebar Is Closed
0 commit comments