Skip to content

Commit 630920b

Browse files
committed
Passing atest for YAML schema (at least on macOS)
1 parent 8a17885 commit 630920b

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

atest/07_Configuration.robot

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ ${CONFIG PYLS} {"language_servers": {"pyls": {"serverSettings": {"pyls": {"pl
1010
${PYFLAKES DIAGNOSTIC} ${CSS DIAGNOSTIC}-Error[title="undefined name 'foo' (pyflakes)"]
1111
${FLAKE8 DIAGNOSTIC} ${CSS DIAGNOSTIC}-Warning[title="undefined name 'foo' (flake8)"]
1212

13+
# Sets expectation that all YAML files (wildcard *) adhere to Composer spec
1314
${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"]
1515
# Composer YAML files don't allow a "greetings" key
1616
${SCHEMA DIAGNOSTIC} ${CSS DIAGNOSTIC}-Error[title="Property greetings is not allowed."]
1717

@@ -38,7 +38,7 @@ Pyls Configuration
3838
# After updating settings, we should see flake8 but no pyflakes
3939
Wait Until Page Contains Element ${FLAKE8 DIAGNOSTIC} timeout=60s
4040
Page Should Not Contain ${PYFLAKES DIAGNOSTIC}
41-
Capture Page Screenshot 03-schema-diagnostic-found.png
41+
Capture Page Screenshot 03-flake8-diagnostic-found.png
4242
[Teardown] Clean Up After Working with File and Settings ${file}
4343

4444
YAML Schema
@@ -50,16 +50,14 @@ YAML Schema
5050
Wait Until Fully Initialized
5151
Open Diagnostics Panel
5252
Drag and Drop By Offset ${JLAB XP DOCK TAB}\[contains(., 'Diagnostics Panel')] 600 -200
53-
Ensure Sidebar Is Closed
5453
Capture Page Screenshot 01-diagnostics-and-settings.png
5554
# Diagnostic panel shouldn't show "Property ... is not allowed"
56-
Wait Until Page Contains Element ${YAML DIAGNOSTIC} timeout=20s
5755
Page Should Not Contain ${SCHEMA DIAGNOSTIC}
5856
Set Editor Content ${CONFIG YAML SCHEMA} ${CSS USER SETTINGS}
5957
Click Element css:button[title\='Save User Settings']
6058
Capture Page Screenshot 02-settings-changed.png
6159
# 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
6361
Capture Page Screenshot 03-schema-diagnostic-found.png
6462
[Teardown] Clean Up After Working with File and Settings ${file}
6563

0 commit comments

Comments
 (0)