@@ -8,12 +8,12 @@ Resource ../Keywords.robot
8
8
${CONFIG PYLS } {"language_servers": {"pyls": {"serverSettings": {"pyls": {"plugins": {"flake8": {"enabled": true},"pyflakes": {"enabled": false}}}}}}}
9
9
# pyflakes is enabled by default, but flake8 is not
10
10
${PYFLAKES DIAGNOSTIC } ${CSS DIAGNOSTIC } -Error[title="undefined name 'foo' (pyflakes)"]
11
- ${FLAKE8 DIAGNOSTIC } ${CSS DIAGNOSTIC } -Error [title="undefined name 'foo' (flake8)"]
11
+ ${FLAKE8 DIAGNOSTIC } ${CSS DIAGNOSTIC } -Warning [title="undefined name 'foo' (flake8)"]
12
12
13
- ${CONFIG YAML SCHEMA } {"language_servers": {"yaml-language-server": {"serverSettings": {"yaml.schemas": {"http://json.schemastore.org/composer": "*"}}}}}
14
- ${YAML DIAGNOSTIC } ${CSS DIAGNOSTIC } -Error[title="duplicate key"]
15
- # TODO: fix this for the actual schema error to expect
16
- ${SCHEMA DIAGNOSTIC } ${CSS DIAGNOSTIC } -Error[title="TODO: schema error here"]
13
+ # ${CONFIG YAML SCHEMA} {"language_servers": {"yaml-language-server": {"serverSettings": {"yaml.schemas": {"http://json.schemastore.org/composer": "*"}}}}}
14
+ # ${YAML DIAGNOSTIC} ${CSS DIAGNOSTIC}-Error[title="duplicate key"]
15
+ # # TODO: fix this for the actual schema error to expect
16
+ # ${SCHEMA DIAGNOSTIC} ${CSS DIAGNOSTIC}-Error[title="TODO: schema error here"]
17
17
18
18
*** Test Cases ***
19
19
Pyls Configuration
@@ -24,12 +24,15 @@ Pyls Configuration
24
24
Open Diagnostics Panel
25
25
Drag and Drop By Offset ${JLAB XP DOCK TAB } \[contains(., 'Diagnostics Panel')] 600 -200
26
26
Capture Page Screenshot 01-diagnostics-and-settings.png
27
+ # Diagnostic panel should show pyflakes diagnostics, but no flake8
27
28
Wait Until Page Contains Element ${PYFLAKES DIAGNOSTIC } timeout=20s
28
29
Page Should Not Contain ${FLAKE8 DIAGNOSTIC }
29
30
Set Editor Content ${CONFIG PYLS } ${CSS USER SETTINGS }
30
31
Click Element css:button[title\='Save User Settings']
31
32
Capture Page Screenshot 02-settings-changed.png
33
+ # After updating settings, we should see flake8 but no pyflakes
32
34
Wait Until Page Contains Element ${FLAKE8 DIAGNOSTIC } timeout=20s
35
+ Page Should Not Contain ${PYFLAKES DIAGNOSTIC }
33
36
Capture Page Screenshot 03-schema-diagnostic-found.png
34
37
[Teardown] Clean Up After Working with File and Settings ${file }
35
38
0 commit comments