Commit fdebd9b
authored
chore: harden vscode_run_command for selenium CI (#2712)
## Summary
Harden Selenium command-palette usage in `vscode_run_command` so Linux
UI CI stops failing when the palette stays open or Enter races the
filtered list.
## Changes
- Escape before opening the palette (clear leftover overlay).
- Short wait after typing before Enter.
- Slightly longer wait for the quick-input field (`click_and_wait` 1s →
2s).
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
Hardened the `vscode_run_command` helper function to prevent Linux UI CI
failures when using VSCode's command palette. The changes improve
resilience by clearing leftover overlay state before opening the
palette, waiting before executing commands to reduce timing issues, and
increasing the input field timeout.
- Send ESCAPE keystroke via ActionChains before opening the palette to
clear any leftover overlay state
- Wait briefly after clicking/focusing the command input field before
continuing
- Increase `click_and_wait` timeout for the quick-input field from 1 to
2 seconds
- Add 0.5 second sleep after typing the command and before pressing
ENTER to reduce race conditions
<!-- end of auto-generated comment: release notes by coderabbit.ai -->1 parent f771b37 commit fdebd9b
1 file changed
Lines changed: 10 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1020 | 1020 | | |
1021 | 1021 | | |
1022 | 1022 | | |
| 1023 | + | |
| 1024 | + | |
| 1025 | + | |
| 1026 | + | |
| 1027 | + | |
| 1028 | + | |
1023 | 1029 | | |
1024 | 1030 | | |
1025 | 1031 | | |
| |||
1033 | 1039 | | |
1034 | 1040 | | |
1035 | 1041 | | |
1036 | | - | |
| 1042 | + | |
1037 | 1043 | | |
1038 | 1044 | | |
1039 | 1045 | | |
| |||
1048 | 1054 | | |
1049 | 1055 | | |
1050 | 1056 | | |
1051 | | - | |
| 1057 | + | |
| 1058 | + | |
| 1059 | + | |
1052 | 1060 | | |
1053 | 1061 | | |
1054 | 1062 | | |
| |||
0 commit comments