Commit Graph
33 Commits
Author SHA1 Message Date
1grzyb1 6771366e32 VIM-4329 Measure the vertical scroll layout in pixels
- Block inlays and tall lines, e.g. rendered doc comments, are not whole rows, so counting them in rows put the caret in the wrong place.
- The layout and VerticalScroll now work in pixels. scrolloff and scrolljump are still rows and are converted to pixels.
- H, M and L tests check exact positions again, and cover block inlays below methods.
2026-11-09 09:02:44 +01:00
1grzyb1 33057f5717 VIM-4329 Test H, M and L with sticky lines and rendered doc comments
H, M and L had no tests with the sticky lines panel or rendered doc comments, which are where the row based model and the platform's own idea of the screen can disagree. The unit test checks every combination of scrolloff, panel height and doc comments over hundreds of positions in a few seconds. The UI test checks a few positions with the real panel and doc comments of Java.

A doc comment is counted as whole rows, a fraction of a row more than it takes, so with doc comments on the screen the tests allow for a row less context. This is visible but small, and not worth counting in pixels for.

The UI tests also close the onboarding of the new UI that a fresh IDE shows, and the incsearch test waits for the scroll of gg to finish before it reads the position. Its check that Esc restores the scroll is disabled: since VIM-2529 Esc only restores the caret, which ends up off the screen.
2026-11-06 10:51:59 +01:00
1grzyb1 17e0b8e6e0 VIM-4329 Add characterisation tests for scrolling before simplifying it
The scrolling code is about to be restructured, and soft wraps, folds, custom fold regions, inlays taller than the window, inlays below lines, the ideascrollcursor edge cases, the command line and splits had no tests, so a rewrite could change them unnoticed. These tests pin down the current behaviour. Where it is a bug, e.g. zt or CTRL-E not scrolling in the second half of a soft-wrapped file, or the caret scrolling off the screen next to an inlay taller than the window, the test expects the correct result and is disabled.

The UI tests cover what headless tests can't show: the real sticky lines panel, rendered doc comments, the mouse wheel, the command line drawn over the editor, and a split window.
2026-11-06 10:51:59 +01:00
1grzyb1 0d4ca1d6f0 VIM-4346 don't trigger incsearch from input entry panel
When entry panel was exectued as inputStrin to receive user input it performed incsearch
2026-10-27 09:21:04 +01:00
1grzyb1 0473fe0479 fix(VIM-2200): Keep the output of a command run from the command-line window
The platform reports the editor switch from closing the cmdwin only after the command has run, so redrawing for it closed the output the command had just shown.
2026-10-21 12:01:59 +02:00
1grzyb1 5d6622b77e Use only jbr cache repository 2026-05-13 09:48:47 +00:00
1grzyb1 2b4a4eeff4 Add jbr cache repo per module 2026-05-13 08:45:11 +00:00
1grzyb1 5416d1505f VIM-4172 Add test for visual selection commands 2026-04-15 09:52:06 +02:00
Alex PlateandClaude Opus 4.5 5445878d21 Fix testTrackActionId UI test flakiness
Wait for "Action id copied" confirmation notification after clicking
"Copy Action Id". This ensures the clipboard was actually updated before
proceeding to paste, fixing the race condition where the test would
paste stale clipboard data.

The old wait for "Stop Tracking" was unreliable because that button
exists in both the old and new notifications during the transition.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-22 12:26:04 +02:00
Alex PlateandClaude Opus 4.5 0312531361 Disable build cache for UI tests to ensure they always run
UI tests were being skipped due to Gradle build cache restoring
previous results. This defeats the purpose of stability testing.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-16 14:55:00 +02:00
claude[bot]andClaude Sonnet 4.5 a52dfa48bf Fix UI test notification dismissal timeout
Replace Thread.sleep() with proper waitFor() conditions and explicitly
dismiss notifications to prevent test timeouts.

The testTrackActionId test was failing because the IdeaVim notification
balloon remained visible after clicking "Stop Tracking", causing a 5-second
timeout when waiting for "Copy Action Id" text to disappear.

Changes:
- Replace Thread.sleep(1000) after clicking "Copy Action Id" with waitFor
  condition that checks for "Stop Tracking" button to appear
- Remove Thread.sleep(1000) after clicking "Stop Tracking"
- Add explicit notification dismissal using Escape key
- Increase timeout for final waitFor to 3 seconds to allow dismissal

This follows the cause-effect principle for UI tests by waiting for
specific UI conditions rather than arbitrary timeouts.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-08 16:54:01 +02:00
Alex PlateandClaude Sonnet 4.5 4fb61b02cc Comment out failing testTripleClickRightFromLineEnd test
This test is currently failing and needs investigation.
See AI analysis in CI for details.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-06 23:54:52 +02:00
Alex PlateandClaude Sonnet 4.5 77fbe1ae2b Replace Gradle video recorder with CI-level screen recording
Extended macOS CI screen recording to all UI test workflows:
- Added FFmpeg screen recording to PyCharm, Rider, and Octopus tests
- Removed Linux UI tests workflow (runUiTestsLinux.yml)

Removed video-recorder-junit5 library from codebase:
- Removed dependency from all UI test modules
- Removed video recorder system properties from Gradle configs
- Removed @Video annotations and imports from all test files
- Removed "Move video" steps from all workflows

Updated Claude AI analysis prompts:
- Changed from dual video sources to single CI recording
- Added helpful ffmpeg commands for video analysis:
  * Extract frames at specific times
  * Create thumbnail grids
  * Get video duration
  * Extract last N seconds

This simplifies the video recording setup by relying solely on
CI-level screen capture, which provides complete coverage of the
entire test run.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-06 11:21:46 +02:00
Alex PlateandClaude Sonnet 4.5 a4995affa9 Switch UI test video recorder from Monte to FFmpeg
The Monte recorder uses tscc (Camtasia) codec by default, which has
significant decoding limitations. When attempting to use Claude Code
and ffmpeg to analyze test failure videos, ffmpeg was unable to
properly extract frames beyond the first 7 seconds, even though the
full 27-second video was recorded.

The FFmpeg recorder produces standard video formats that can be fully
decoded and analyzed, enabling proper AI-assisted test failure analysis.

Configuration added to all UI test projects:
- tests/ui-ij-tests
- tests/ui-py-tests
- tests/ui-rd-tests

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-06 00:18:28 +02:00
Alex PlateandClaude Sonnet 4.5 5c0d9569d9 Fix(VIM-4109): Configure test source sets for Gradle 9+ compatibility
After upgrading to Gradle 9.2.1, custom Test tasks no longer
automatically inherit test source set configuration. This caused
UI test tasks to show NO-SOURCE and not execute any tests.

The fix explicitly configures testClassesDirs and classpath for
all three UI test modules:
- tests/ui-ij-tests
- tests/ui-py-tests
- tests/ui-rd-tests

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-05 18:51:08 +02:00
Alex Plate 90b530e6db Use a different approach for UI tests 2025-03-12 10:08:15 +02:00
Alex Plate dcaef64494 Refactor the way of checking if copy text is presented in UI test 2025-03-11 20:19:53 +02:00
Alex Plate b31f46d9f4 Update UI test 2025-03-11 19:06:52 +02:00
Alex Plate bbab064281 With direct calls for the VimFindActionIdAction in UI tests, there is no need to open the GoToAction 2025-03-11 18:31:35 +02:00
Alex Plate c252aeec70 Add a timeout to wait till the popup appears 2025-01-20 09:01:11 +02:00
Alex Plate 2ce3b09650 Remove UI test that doesn't work in new IJ UI 2025-01-20 08:40:25 +02:00
Alex Plate 8d873c0bf1 Fix(VIM-3418): Restore mappings after plugin disable/enable
There is no need to clean up the requiredShortcuts after turning off the plugin. Also, previously this set was not populated properly and keys that were added by ideavimrc or by user were not restored
2024-05-09 08:57:12 +03:00
Alex Plate ae75498f8a Update the UI test to search for the new name of the copy dialog 2024-04-26 18:44:31 +03:00
Alex Plate 9869b8a34e Add new UI tests for the actions
NewElementSamePlace
CopyReferencePopupGroup
2024-04-03 18:01:45 +03:00
Alex Plate 60fbf88322 Add UI test for generate action 2024-04-03 17:36:22 +03:00
Alex Plate 1ffb28e21b Wait for some checks in UI tests instead of immediate verification 2024-03-11 14:29:08 +02:00
Alex Plate 051296c2aa UI tests: make sure the text appear in the editor before running tests 2024-02-28 09:37:05 +02:00
Alex Plate 247aaed188 Use the property to change the state of the octopus handler 2024-02-23 15:32:35 +02:00
Alex Plate 3531574e5e Remove intellij plugin dependency for UI tests 2024-02-13 12:59:13 +02:00
Alex Plate b81b18645b Disable publishPlugin task for tests 2024-02-13 08:34:51 +02:00
Alex Plate a2d34a883b Fix verifyPlugin task 2024-02-09 16:45:57 +02:00
Alex Plate 85c9576699 Extract common UI test fixtures 2024-02-09 16:22:22 +02:00
Alex Plate 2483450a1f Rename ui tests for better consistency 2024-02-09 16:11:14 +02:00