diff --git a/.github/workflows/runUiTests.yml b/.github/workflows/runUiTests.yml index 2d2daa5109..5d51c3989b 100644 --- a/.github/workflows/runUiTests.yml +++ b/.github/workflows/runUiTests.yml @@ -13,6 +13,12 @@ jobs: with: distribution: zulu java-version: 11 + - name: Setup FFmpeg + uses: FedericoCarboni/setup-ffmpeg@v1 + with: + # Not strictly necessary, but it may prevent rate limit + # errors especially on GitHub-hosted macos machines. + token: ${{ secrets.GITHUB_TOKEN }} - name: Build Plugin run: gradle :buildPlugin - name: Run Idea @@ -27,6 +33,9 @@ jobs: retry-delay: 10s - name: Tests run: gradle :testUi + - name: Move video + if: ${{ failure() }} + run: mv video build/reports - name: Save fails report if: ${{ failure() }} uses: actions/upload-artifact@v2 diff --git a/CHANGES.md b/CHANGES.md index 5aa1b97a44..047474a38f 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -41,6 +41,7 @@ usual beta standards. * [VIM-2432](https://youtrack.jetbrains.com/issue/VIM-2432) Fix ctrl-d and ctrl-u motions with scrolloff * [VIM-2462](https://youtrack.jetbrains.com/issue/VIM-2462) Reset caret shape when disabling plugin * [VIM-2449](https://youtrack.jetbrains.com/issue/VIM-2449) Fix `I` for one-line block selection +* [VIM-2461](https://youtrack.jetbrains.com/issue/VIM-2461) Show action id before action execution ### Merged PRs: * [390](https://github.com/JetBrains/ideavim/pull/390) by [chylex](https://github.com/chylex): [VIM-2255] Missing reload icon in .ideavimrc on Windows diff --git a/build.gradle.kts b/build.gradle.kts index aa28af7120..cbf17b7924 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -59,7 +59,7 @@ dependencies { testImplementation("com.intellij.remoterobot:remote-robot:$remoteRobotVersion") testImplementation("com.intellij.remoterobot:remote-fixtures:$remoteRobotVersion") - + testImplementation("com.automation-remarks:video-recorder-junit:2.0") runtimeOnly("org.antlr:antlr4-runtime:4.9.2") antlr("org.antlr:antlr4:4.9.2") } diff --git a/src/test/java/ui/UiTests.kt b/src/test/java/ui/UiTests.kt index 6e64ec1582..ed9b2e9538 100644 --- a/src/test/java/ui/UiTests.kt +++ b/src/test/java/ui/UiTests.kt @@ -18,6 +18,8 @@ package ui +import com.automation.remarks.junit.VideoRule +import com.automation.remarks.video.annotations.Video import com.intellij.remoterobot.RemoteRobot import com.intellij.remoterobot.fixtures.ComponentFixture import com.intellij.remoterobot.fixtures.ContainerFixture @@ -25,6 +27,7 @@ import com.intellij.remoterobot.search.locators.byXpath import com.intellij.remoterobot.stepsProcessing.step import com.intellij.remoterobot.utils.keyboard import org.assertj.swing.core.MouseButton +import org.junit.Rule import org.junit.Test import ui.pages.Editor import ui.pages.IdeaFrame @@ -52,12 +55,18 @@ import kotlin.test.assertEquals import kotlin.test.assertFalse import kotlin.test.assertTrue + class UiTests { init { StepsLogger.init() } + @Rule + @JvmField + var videoRule = VideoRule() + @Test + @Video fun ideaVimTest() = uiTest("ideaVimTest") { val sharedSteps = JavaExampleSteps(this) @@ -80,7 +89,6 @@ class UiTests { ) } } - testSelectTextWithDelay(editor) testExtendSelection(editor) testLargerDragSelection(editor)