Skip to content

fix(ui-tests): Replace setText with keyboard input to fix SocketTimeoutException#433

Open
cx-anurag-dalke wants to merge 5 commits intomainfrom
other/fix_ui_test_cases
Open

fix(ui-tests): Replace setText with keyboard input to fix SocketTimeoutException#433
cx-anurag-dalke wants to merge 5 commits intomainfrom
other/fix_ui_test_cases

Conversation

@cx-anurag-dalke
Copy link
Copy Markdown
Contributor

@cx-anurag-dalke cx-anurag-dalke commented Apr 14, 2026

Summary

  • Replace JTextFieldFixture.setText() with keyboard-based input (Ctrl+A + enterText()) in ScanResultsPannelPage.enterScanIdAndSelect() and TestGeneral.testInvalidScanId()
  • Fixes all 9 failing UI test cases (TestGeneral x5, TestSca x1, TestTriggerScan x3) caused by SocketTimeoutException when setting text on SearchTextField's inner TextFieldWithProcessing component
  • The setText() call executed JavaScript via Remote Robot on the EDT, but SearchTextField's internal document processing blocked the EDT, causing the HTTP response to timeout after 30 seconds

Test plan

  • Verify all 23 UI test cases pass in CI (testUI job)
  • Confirm no regressions in TestAuthentication, TestAscaRealTime, TestOSSRealTime, and TestCxOneAssist (previously passing tests)
  • Verify TestGeneral.testInvalidScanId works correctly with keyboard-based input

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 14, 2026

Logo
Checkmarx One – Scan Summary & Detailsd9de9ddd-34ca-4cbc-a59f-02cfda3065e3

Great job! No new security vulnerabilities introduced in this pull request

cx-anurag-dalke and others added 2 commits April 14, 2026 21:27
…hTextField popup

field.click() triggers SearchTextField's history popup which steals
focus from the tool window, causing focusCxWindow() to loop indefinitely.
Replace with requestFocusInWindow() and add hasFocus guard.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant