@@ -18,27 +18,32 @@ ${FLAKE8 DIAGNOSTIC} ${CSS DIAGNOSTIC}-Warning[title="undefined name 'foo' (f
18
18
*** Test Cases ***
19
19
Pyls Configuration
20
20
${file } = Set Variable style.py
21
+ ${tab } = Set Variable ${JLAB XP DOCK TAB } \[contains(., '${file } ')]
21
22
Prepare File for Editing PYTHON config ${file }
22
23
Open in Advanced Settings ${LSP PLUGIN ID }
23
- Drag and Drop By Offset ${JLAB XP DOCK TAB } \[contains(., '${file } ')] 0 100
24
+ Drag and Drop By Offset ${tab } 0 100
25
+ Wait Until Fully Initialized
24
26
Open Diagnostics Panel
25
27
Drag and Drop By Offset ${JLAB XP DOCK TAB } \[contains(., 'Diagnostics Panel')] 600 -200
28
+ Ensure Sidebar Is Closed
26
29
Capture Page Screenshot 01-diagnostics-and-settings.png
27
30
# Diagnostic panel should show pyflakes diagnostics, but no flake8
28
31
Wait Until Page Contains Element ${PYFLAKES DIAGNOSTIC } timeout=60s
29
32
Page Should Not Contain ${FLAKE8 DIAGNOSTIC }
30
33
Set Editor Content ${CONFIG PYLS } ${CSS USER SETTINGS }
31
34
Click Element css:button[title\='Save User Settings']
35
+ Drag and Drop By Offset ${tab } 0 100
36
+ Lab Command Save Python File
32
37
Capture Page Screenshot 02-settings-changed.png
33
38
# After updating settings, we should see flake8 but no pyflakes
34
39
Wait Until Page Contains Element ${FLAKE8 DIAGNOSTIC } timeout=60s
35
40
Page Should Not Contain ${PYFLAKES DIAGNOSTIC }
36
41
Capture Page Screenshot 03-schema-diagnostic-found.png
37
42
[Teardown] Clean Up After Working with File and Settings ${file }
38
43
39
- # # # # # # # # # # # #
44
+ # # # # # # # # # # # #
40
45
# YAML schema functionality won't be available until yaml-language-server v0.7.3
41
- # # # # # # # # # # # #
46
+ # # # # # # # # # # # #
42
47
# YAML Schema
43
48
# ${file} = Set Variable composer-schema.yaml
44
49
# Prepare File for Editing YAML config ${file}
0 commit comments