@@ -10,8 +10,8 @@ ${CONFIG PYLS} {"language_servers": {"pyls": {"serverSettings": {"pyls": {"pl
10
10
${PYFLAKES DIAGNOSTIC } ${CSS DIAGNOSTIC } -Error[title="undefined name 'foo' (pyflakes)"]
11
11
${FLAKE8 DIAGNOSTIC } ${CSS DIAGNOSTIC } -Warning[title="undefined name 'foo' (flake8)"]
12
12
13
+ # Sets expectation that all YAML files (wildcard *) adhere to Composer spec
13
14
${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
15
# Composer YAML files don't allow a "greetings" key
16
16
${SCHEMA DIAGNOSTIC } ${CSS DIAGNOSTIC } -Error[title="Property greetings is not allowed."]
17
17
@@ -38,7 +38,7 @@ Pyls Configuration
38
38
# After updating settings, we should see flake8 but no pyflakes
39
39
Wait Until Page Contains Element ${FLAKE8 DIAGNOSTIC } timeout=60s
40
40
Page Should Not Contain ${PYFLAKES DIAGNOSTIC }
41
- Capture Page Screenshot 03-schema -diagnostic-found.png
41
+ Capture Page Screenshot 03-flake8 -diagnostic-found.png
42
42
[Teardown] Clean Up After Working with File and Settings ${file }
43
43
44
44
YAML Schema
@@ -50,16 +50,14 @@ YAML Schema
50
50
Wait Until Fully Initialized
51
51
Open Diagnostics Panel
52
52
Drag and Drop By Offset ${JLAB XP DOCK TAB } \[contains(., 'Diagnostics Panel')] 600 -200
53
- Ensure Sidebar Is Closed
54
53
Capture Page Screenshot 01-diagnostics-and-settings.png
55
54
# Diagnostic panel shouldn't show "Property ... is not allowed"
56
- Wait Until Page Contains Element ${YAML DIAGNOSTIC } timeout=20s
57
55
Page Should Not Contain ${SCHEMA DIAGNOSTIC }
58
56
Set Editor Content ${CONFIG YAML SCHEMA } ${CSS USER SETTINGS }
59
57
Click Element css:button[title\='Save User Settings']
60
58
Capture Page Screenshot 02-settings-changed.png
61
59
# Now show the Composer YAML error
62
- Wait Until Page Contains Element ${SCHEMA DIAGNOSTIC } timeout=20s
60
+ Wait Until Page Contains Element ${SCHEMA DIAGNOSTIC } timeout=60s
63
61
Capture Page Screenshot 03-schema-diagnostic-found.png
64
62
[Teardown] Clean Up After Working with File and Settings ${file }
65
63
0 commit comments