@@ -26,37 +26,47 @@ Markdown
26
26
... `Color` is misspelt
27
27
... `Colour` is misspelt
28
28
29
+ LaTeX
30
+ [Tags] FOO
31
+ [Documentation] diagnostics only appear if configured
32
+ Settings Should Change Editor Diagnostics LaTeX example.tex texlab
33
+ ... {"latex.lint.onChange": true}
34
+ ... ${EMPTY }
35
+ ... Command terminated with space. (chktex)
36
+ ... Save File
37
+
29
38
*** Keywords ***
30
39
Clean Up After Working with File and Settings
31
40
[Arguments] ${file }
32
41
Clean Up After Working With File ${file }
33
42
Reset Plugin Settings
34
43
35
44
Settings Should Change Editor Diagnostics
36
- [Arguments] ${language } ${file } ${server } ${settings } ${before } ${after }
45
+ [Arguments] ${language } ${file } ${server } ${settings } ${before } ${after } ${ save command } = ${ EMPTY }
37
46
${before diagnostic } = Set Variable ${CSS DIAGNOSTIC } \[title^="${before } "]
38
47
${after diagnostic } = Set Variable ${CSS DIAGNOSTIC } \[title^="${after } "]
39
48
${tab } = Set Variable ${JLAB XP DOCK TAB } \[contains(., '${file } ')]
40
49
${close icon } = Set Variable *[contains(@class, 'm-TabBar-tabCloseIcon')]
50
+ ${save command } = Set Variable If "${save command } " ${save command } Save ${language } File
41
51
Prepare File for Editing ${language } config ${file }
42
52
Open in Advanced Settings ${LSP PLUGIN ID }
43
53
Drag and Drop By Offset ${tab } 0 100
44
54
Wait Until Fully Initialized
45
55
Open Diagnostics Panel
46
56
Drag and Drop By Offset ${JLAB XP DOCK TAB } \[contains(., 'Diagnostics Panel')] 600 -200
47
57
Click Element ${JLAB XP DOCK TAB } \[contains(., 'Launcher')]/${close icon }
48
- Wait Until Page Contains Element ${before diagnostic } timeout=30s
58
+ Run Keyword If " ${ before } " Wait Until Page Contains Element ${before diagnostic } timeout=30s
49
59
Page Should Not Contain ${after diagnostic }
50
60
Capture Page Screenshot 01-default-diagnostics-and-settings.png
51
61
Set Editor Content {"language_servers": {"${server } ": {"serverSettings": ${settings } }}} ${CSS USER SETTINGS }
52
62
Wait Until Page Contains No errors found
53
- Capture Page Screenshot 01 -default-diagnostics-and-settings.png
63
+ Capture Page Screenshot 02 -default-diagnostics-and-unsaved -settings.png
54
64
Click Element css:button[title\='Save User Settings']
55
65
Click Element ${JLAB XP DOCK TAB } \[contains(., 'Settings')]/${close icon }
56
66
Drag and Drop By Offset ${tab } 0 100
57
- Lab Command Save ${ language } File
67
+ Lab Command ${ save command }
58
68
Ensure Sidebar Is Closed
59
- Capture Page Screenshot 02 -settings-changed.png
69
+ Capture Page Screenshot 03 -settings-changed.png
60
70
Wait Until Page Contains Element ${after diagnostic } timeout=30s
61
- Capture Page Screenshot 03 -configured-diagnostic-found.png
71
+ Capture Page Screenshot 04 -configured-diagnostic-found.png
62
72
[Teardown] Clean Up After Working with File and Settings ${file }
0 commit comments