Skip to content

Commit c3b25cb

Browse files
authored
interact with python file after reconfiguring to trigger some messages
1 parent fa70662 commit c3b25cb

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

atest/07_Configuration.robot

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,27 +18,32 @@ ${FLAKE8 DIAGNOSTIC} ${CSS DIAGNOSTIC}-Warning[title="undefined name 'foo' (f
1818
*** Test Cases ***
1919
Pyls Configuration
2020
${file} = Set Variable style.py
21+
${tab} = Set Variable ${JLAB XP DOCK TAB}\[contains(., '${file}')]
2122
Prepare File for Editing PYTHON config ${file}
2223
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
2426
Open Diagnostics Panel
2527
Drag and Drop By Offset ${JLAB XP DOCK TAB}\[contains(., 'Diagnostics Panel')] 600 -200
28+
Ensure Sidebar Is Closed
2629
Capture Page Screenshot 01-diagnostics-and-settings.png
2730
# Diagnostic panel should show pyflakes diagnostics, but no flake8
2831
Wait Until Page Contains Element ${PYFLAKES DIAGNOSTIC} timeout=60s
2932
Page Should Not Contain ${FLAKE8 DIAGNOSTIC}
3033
Set Editor Content ${CONFIG PYLS} ${CSS USER SETTINGS}
3134
Click Element css:button[title\='Save User Settings']
35+
Drag and Drop By Offset ${tab} 0 100
36+
Lab Command Save Python File
3237
Capture Page Screenshot 02-settings-changed.png
3338
# After updating settings, we should see flake8 but no pyflakes
3439
Wait Until Page Contains Element ${FLAKE8 DIAGNOSTIC} timeout=60s
3540
Page Should Not Contain ${PYFLAKES DIAGNOSTIC}
3641
Capture Page Screenshot 03-schema-diagnostic-found.png
3742
[Teardown] Clean Up After Working with File and Settings ${file}
3843

39-
# # # # # # # # # # # #
44+
# # # # # # # # # # # #
4045
# YAML schema functionality won't be available until yaml-language-server v0.7.3
41-
# # # # # # # # # # # #
46+
# # # # # # # # # # # #
4247
# YAML Schema
4348
# ${file} = Set Variable composer-schema.yaml
4449
# Prepare File for Editing YAML config ${file}

0 commit comments

Comments
 (0)