From f27b3e4879481419e22e8420dcf68262d2b40925 Mon Sep 17 00:00:00 2001 From: Test Date: Thu, 19 Dec 2024 21:12:28 -0800 Subject: [PATCH 01/14] test: add autocomplete test --- core/protocol/passThrough.ts | 2 + extensions/intellij/.gitignore | 4 +- .../.run/Run IDE for UI Tests.run.xml | 25 ---- extensions/intellij/.run/Run Test IDE.run.xml | 31 ++++ extensions/intellij/.run/Run Tests.run.xml | 24 +++ .../intellij/.run/Run e2e tests.run.xml | 7 + extensions/intellij/build.gradle.kts | 3 +- .../constants/MessageTypes.kt | 68 ++++++++- .../toolWindow/ContinueBrowser.kt | 60 +------- .../e2e/Autocomplete.kt | 73 +++++++++ .../continueintellijextension/e2e/GUI.kt | 139 ++++++++++++++++++ .../e2e/TutorialTest.kt | 94 ------------ .../e2e/test-continue/config.json | 43 ++++++ .../{pages => fixtures}/DialogFixture.kt | 2 +- .../{pages => fixtures}/IdeaFrame.kt | 2 +- .../{pages => fixtures}/WelcomeFrame.kt | 2 +- .../OnboardingCard/OnboardingCard.tsx | 5 +- .../components/dialogs/ConfirmationDialog.tsx | 2 +- 18 files changed, 399 insertions(+), 187 deletions(-) delete mode 100644 extensions/intellij/.run/Run IDE for UI Tests.run.xml create mode 100644 extensions/intellij/.run/Run Test IDE.run.xml create mode 100644 extensions/intellij/.run/Run Tests.run.xml create mode 100644 extensions/intellij/.run/Run e2e tests.run.xml create mode 100644 extensions/intellij/src/test/kotlin/com/github/continuedev/continueintellijextension/e2e/Autocomplete.kt create mode 100644 extensions/intellij/src/test/kotlin/com/github/continuedev/continueintellijextension/e2e/GUI.kt delete mode 100644 extensions/intellij/src/test/kotlin/com/github/continuedev/continueintellijextension/e2e/TutorialTest.kt create mode 100644 extensions/intellij/src/test/kotlin/com/github/continuedev/continueintellijextension/e2e/test-continue/config.json rename extensions/intellij/src/test/kotlin/com/github/continuedev/continueintellijextension/{pages => fixtures}/DialogFixture.kt (95%) rename extensions/intellij/src/test/kotlin/com/github/continuedev/continueintellijextension/{pages => fixtures}/IdeaFrame.kt (98%) rename extensions/intellij/src/test/kotlin/com/github/continuedev/continueintellijextension/{pages => fixtures}/WelcomeFrame.kt (94%) diff --git a/core/protocol/passThrough.ts b/core/protocol/passThrough.ts index f71b7460d..c89b91789 100644 --- a/core/protocol/passThrough.ts +++ b/core/protocol/passThrough.ts @@ -61,6 +61,8 @@ export const WEBVIEW_TO_CORE_PASS_THROUGH: (keyof ToCoreFromWebviewProtocol)[] = ]; // Message types to pass through from core to webview +// Note: If updating these values, make a corresponding update in +// extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/constants/MessageTypes.kt export const CORE_TO_WEBVIEW_PASS_THROUGH: (keyof ToWebviewFromCoreProtocol)[] = [ "configUpdate", diff --git a/extensions/intellij/.gitignore b/extensions/intellij/.gitignore index ac787e936..2be56cfd9 100644 --- a/extensions/intellij/.gitignore +++ b/extensions/intellij/.gitignore @@ -3,4 +3,6 @@ src/main/resources/webview src/main/resources/bin src/main/resources/config_schema.json src/main/resources/continue_rc_schema.json -video \ No newline at end of file +video +src/test/kotlin/com/github/continuedev/continueintellijextension/e2e/test-continue/* +!src/test/kotlin/com/github/continuedev/continueintellijextension/e2e/test-continue/config.json \ No newline at end of file diff --git a/extensions/intellij/.run/Run IDE for UI Tests.run.xml b/extensions/intellij/.run/Run IDE for UI Tests.run.xml deleted file mode 100644 index 5f7eb46c8..000000000 --- a/extensions/intellij/.run/Run IDE for UI Tests.run.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/extensions/intellij/.run/Run Test IDE.run.xml b/extensions/intellij/.run/Run Test IDE.run.xml new file mode 100644 index 000000000..e6c1a820e --- /dev/null +++ b/extensions/intellij/.run/Run Test IDE.run.xml @@ -0,0 +1,31 @@ + + + + + + + + true + true + false + false + + + + \ No newline at end of file diff --git a/extensions/intellij/.run/Run Tests.run.xml b/extensions/intellij/.run/Run Tests.run.xml new file mode 100644 index 000000000..bdff34d6d --- /dev/null +++ b/extensions/intellij/.run/Run Tests.run.xml @@ -0,0 +1,24 @@ + + + + + + + true + true + false + false + + + \ No newline at end of file diff --git a/extensions/intellij/.run/Run e2e tests.run.xml b/extensions/intellij/.run/Run e2e tests.run.xml new file mode 100644 index 000000000..2280aece0 --- /dev/null +++ b/extensions/intellij/.run/Run e2e tests.run.xml @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff --git a/extensions/intellij/build.gradle.kts b/extensions/intellij/build.gradle.kts index 25d2fb361..a4ccd3422 100644 --- a/extensions/intellij/build.gradle.kts +++ b/extensions/intellij/build.gradle.kts @@ -130,7 +130,6 @@ tasks { // Configure UI tests plugin // Read more: https://github.com/JetBrains/intellij-ui-test-robot runIdeForUiTests { - environment("CONTINUE_GLOBAL_DIR", "src/test/kotlin/com/github/continuedev/continueintellijextension/e2e/test-continue") systemProperty("robot-server.port", "8082") systemProperty("ide.mac.message.dialogs.as.sheets", "false") systemProperty("jb.privacy.policy.text", "") @@ -141,6 +140,7 @@ tasks { systemProperty("idea.trust.all.projects", "true") systemProperty("ide.show.tips.on.startup.default.value", "false") systemProperty("ide.browser.jcef.jsQueryPoolSize", "10000") + systemProperty("ide.browser.jcef.contextMenu.devTools.enabled", "true") // This is to ensure we load the GUI with OSR enabled. We have logic that // renders with OSR disabled below a particular IDE version. @@ -180,6 +180,5 @@ tasks { test { useJUnitPlatform() - environment("CONTINUE_GLOBAL_DIR", "src/test/kotlin/com/github/continuedev/continueintellijextension/e2e/test-continue") } } diff --git a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/constants/MessageTypes.kt b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/constants/MessageTypes.kt index 264822b6c..4c8450268 100644 --- a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/constants/MessageTypes.kt +++ b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/constants/MessageTypes.kt @@ -53,13 +53,77 @@ class MessageTypes { "showToast", ) + // Note: If updating these values, make a corresponding update in + // core/protocol/passThrough.ts val PASS_THROUGH_TO_WEBVIEW = listOf( "configUpdate", "getDefaultModelTitle", - "indexProgress", + "indexProgress", // Codebase + "indexing/statusUpdate", // Docs, etc. + "addContextItem", "refreshSubmenuItems", + "isContinueInputFocused", "didChangeAvailableProfiles", - "addContextItem" + "setTTSActive", + "getWebviewHistoryLength", + "getCurrentSessionId", + "signInToControlPlane", + "openDialogMessage", + "docs/suggestions", + ) + + // Note: If updating these values, make a corresponding update in + // core/protocol/passThrough.ts + val PASS_THROUGH_TO_CORE = listOf( + "abort", + "history/list", + "history/delete", + "history/load", + "history/save", + "devdata/log", + "config/addModel", + "config/newPromptFile", + "config/ideSettingsUpdate", + "config/getSerializedProfileInfo", + "config/deleteModel", + "config/listProfiles", + "config/openProfile", + "context/getContextItems", + "context/getSymbolsForFiles", + "context/loadSubmenuItems", + "context/addDocs", + "context/removeDocs", + "context/indexDocs", + "autocomplete/complete", + "autocomplete/cancel", + "autocomplete/accept", + "command/run", + "tts/kill", + "llm/complete", + "llm/streamComplete", + "llm/streamChat", + "llm/listModels", + "streamDiffLines", + "chatDescriber/describe", + "stats/getTokensPerDay", + "stats/getTokensPerModel", + // Codebase + "index/setPaused", + "index/forceReIndex", + "index/forceReIndexFiles", + "index/indexingProgressBarInitialized", + // Docs, etc. + "indexing/reindex", + "indexing/abort", + "indexing/setPaused", + "docs/getSuggestedDocs", + "docs/initStatuses", + // + "completeOnboarding", + "addAutocompleteModel", + "profiles/switch", + "didChangeSelectedProfile", + "tools/call", ) } } \ No newline at end of file diff --git a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/toolWindow/ContinueBrowser.kt b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/toolWindow/ContinueBrowser.kt index 1ace413ea..b43cf62c9 100644 --- a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/toolWindow/ContinueBrowser.kt +++ b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/toolWindow/ContinueBrowser.kt @@ -2,6 +2,7 @@ package com.github.continuedev.continueintellijextension.toolWindow import com.github.continuedev.continueintellijextension.activities.ContinuePluginDisposable import com.github.continuedev.continueintellijextension.constants.MessageTypes +import com.github.continuedev.continueintellijextension.constants.MessageTypes.Companion.PASS_THROUGH_TO_CORE import com.github.continuedev.continueintellijextension.factories.CustomSchemeHandlerFactory import com.github.continuedev.continueintellijextension.services.ContinueExtensionSettings import com.github.continuedev.continueintellijextension.services.ContinuePluginService @@ -18,58 +19,6 @@ import org.cef.browser.CefBrowser import org.cef.handler.CefLoadHandlerAdapter class ContinueBrowser(val project: Project, url: String) { - private val PASS_THROUGH_TO_CORE = listOf( - "abort", - "history/list", - "history/delete", - "history/load", - "history/save", - "devdata/log", - "config/addModel", - "config/newPromptFile", - "config/ideSettingsUpdate", - "config/getSerializedProfileInfo", - "config/deleteModel", - "config/listProfiles", - "config/openProfile", - "context/getContextItems", - "context/getSymbolsForFiles", - "context/loadSubmenuItems", - "context/addDocs", - "context/removeDocs", - "context/indexDocs", - "autocomplete/complete", - "autocomplete/cancel", - "autocomplete/accept", - "command/run", - "tts/kill", - "llm/complete", - "llm/streamComplete", - "llm/streamChat", - "llm/listModels", - "streamDiffLines", - "chatDescriber/describe", - "stats/getTokensPerDay", - "stats/getTokensPerModel", - // Codebase - "index/setPaused", - "index/forceReIndex", - "index/forceReIndexFiles", - "index/indexingProgressBarInitialized", - // Docs, etc. - "indexing/reindex", - "indexing/abort", - "indexing/setPaused", - "docs/getSuggestedDocs", - "docs/initStatuses", - // - "completeOnboarding", - "addAutocompleteModel", - "profiles/switch", - "didChangeSelectedProfile", - "tools/call", - ) - private fun registerAppSchemeHandler() { CefApp.getInstance().registerSchemeHandlerFactory( "http", @@ -82,14 +31,9 @@ class ContinueBrowser(val project: Project, url: String) { init { val isOSREnabled = ServiceManager.getService(ContinueExtensionSettings::class.java).continueState.enableOSR + this.browser = JBCefBrowser.createBuilder().setOffScreenRendering(isOSREnabled).build() - - browser.jbCefClient.setProperty( - JBCefClient.Properties.JS_QUERY_POOL_SIZE, - JS_QUERY_POOL_SIZE - ) - registerAppSchemeHandler() browser.loadURL(url); Disposer.register(ContinuePluginDisposable.getInstance(project), browser) diff --git a/extensions/intellij/src/test/kotlin/com/github/continuedev/continueintellijextension/e2e/Autocomplete.kt b/extensions/intellij/src/test/kotlin/com/github/continuedev/continueintellijextension/e2e/Autocomplete.kt new file mode 100644 index 000000000..1f105738a --- /dev/null +++ b/extensions/intellij/src/test/kotlin/com/github/continuedev/continueintellijextension/e2e/Autocomplete.kt @@ -0,0 +1,73 @@ +package com.github.continuedev.continueintellijextension.e2e + +import com.automation.remarks.junit5.Video +import com.github.continuedev.continueintellijextension.fixtures.dialog +import com.github.continuedev.continueintellijextension.fixtures.idea +import com.github.continuedev.continueintellijextension.fixtures.welcomeFrame +import com.github.continuedev.continueintellijextension.utils.RemoteRobotExtension +import com.github.continuedev.continueintellijextension.utils.StepsLogger +import com.intellij.remoterobot.RemoteRobot +import com.intellij.remoterobot.fixtures.ComponentFixture +import com.intellij.remoterobot.search.locators.byXpath +import com.intellij.remoterobot.steps.CommonSteps +import com.intellij.remoterobot.utils.keyboard +import com.intellij.remoterobot.utils.waitFor +import com.intellij.remoterobot.utils.waitForIgnoringError +import org.junit.jupiter.api.AfterEach +import org.junit.jupiter.api.BeforeEach +import org.junit.jupiter.api.Test +import org.junit.jupiter.api.extension.ExtendWith +import java.time.Duration.ofMinutes +import java.time.Duration.ofSeconds + +@ExtendWith(RemoteRobotExtension::class) +class Autocomplete {init { + StepsLogger.init() +} + + @BeforeEach + fun waitForIde(remoteRobot: RemoteRobot) { + waitForIgnoringError(ofMinutes(3)) { remoteRobot.callJs("true") } + } + + @AfterEach + fun closeProject(remoteRobot: RemoteRobot) = CommonSteps(remoteRobot).closeProject() + + @Test + @Video + fun displayCompletion(remoteRobot: RemoteRobot): Unit = with(remoteRobot) { + welcomeFrame { + createNewProjectLink.click() + dialog("New Project") { + findText("Java").click() + checkBox("Add sample code").select() + button("Create").click() + } + } + + // Wait for the default "Main.java" tab to load + // Our "continue_tutorial.java.ft" tab loads first, but then "Main.java" takes focus. + // So we need to wait for that to occur, and then focus on "continue_tutorial.java.ft" + waitFor(ofSeconds(20)) { + findAll( + byXpath("//div[@accessiblename='Main.java' and @class='EditorTabLabel']") + ).isNotEmpty() + } + + idea { + with(textEditor()) { + val USER_MESSAGE = "TEST_USER_MESSAGE_0" + editor.insertTextAtLine(0, 0, USER_MESSAGE) + editor.clickOnOffset(USER_MESSAGE.length) + + keyboard { + enterText(" ") + } + + waitFor(ofSeconds(10)) { + editor.hasText("TEST_LLM_RESPONSE_0") + } + } + } + } +} \ No newline at end of file diff --git a/extensions/intellij/src/test/kotlin/com/github/continuedev/continueintellijextension/e2e/GUI.kt b/extensions/intellij/src/test/kotlin/com/github/continuedev/continueintellijextension/e2e/GUI.kt new file mode 100644 index 000000000..8099db9b5 --- /dev/null +++ b/extensions/intellij/src/test/kotlin/com/github/continuedev/continueintellijextension/e2e/GUI.kt @@ -0,0 +1,139 @@ +/** + * Currently we can't test any actions in the GUI that involve clicks. + * See this open issue for details: https://github.com/JetBrains/intellij-ui-test-robot/issues/491 + */ +package com.github.continuedev.continueintellijextension.e2e + +import com.automation.remarks.junit5.Video +import com.github.continuedev.continueintellijextension.fixtures.* +import com.github.continuedev.continueintellijextension.utils.RemoteRobotExtension +import com.github.continuedev.continueintellijextension.utils.StepsLogger +import com.github.continuedev.continueintellijextension.utils.getMetaKey +import com.intellij.remoterobot.RemoteRobot +import com.intellij.remoterobot.fixtures.ComponentFixture +import com.intellij.remoterobot.search.locators.byXpath +import com.intellij.remoterobot.steps.CommonSteps +import com.intellij.remoterobot.stepsProcessing.step +import com.intellij.remoterobot.utils.keyboard +import com.intellij.remoterobot.utils.waitFor +import com.intellij.remoterobot.utils.waitForIgnoringError +import org.junit.jupiter.api.AfterEach +import org.junit.jupiter.api.BeforeEach +import org.junit.jupiter.api.Order +import org.junit.jupiter.api.Test +import org.junit.jupiter.api.extension.ExtendWith +import java.awt.event.KeyEvent.* +import java.time.Duration.ofMinutes +import java.time.Duration.ofSeconds + +@ExtendWith(RemoteRobotExtension::class) +class GUI { + init { + StepsLogger.init() + } + + @BeforeEach + fun waitForIde(remoteRobot: RemoteRobot) { + waitForIgnoringError(ofMinutes(3)) { remoteRobot.callJs("true") } + } + + @AfterEach + fun closeProject(remoteRobot: RemoteRobot) = CommonSteps(remoteRobot).closeProject() + + @Test + @Video + @Order(1) + fun onboarding(remoteRobot: RemoteRobot): Unit = with(remoteRobot) { + welcomeFrame { + createNewProjectLink.click() + dialog("New Project") { + findText("Java").click() + checkBox("Add sample code").select() + button("Create").click() + } + } + + idea { + // Wait for the default "Main.java" tab to load + // Our "continue_tutorial.java.ft" tab loads first, but then "Main.java" takes focus. + // So we need to wait for that to occur, and then focus on "continue_tutorial.java.ft" + waitFor(ofSeconds(20)) { + findAll( + byXpath("//div[@accessiblename='Main.java' and @class='EditorTabLabel']") + ).isNotEmpty() + } + + step("Verify Continue tutorial file is loaded") { + find(byXpath("//div[@visible_text='continue_tutorial.java.ft']")) + } + + step("Manually open the webview") { + // Manually open the webview + find(byXpath("//div[@text='Continue']"), ofSeconds((10))).click() + + waitFor(ofSeconds(10)) { + browser().isShowing + } + } + + step("Verify the onboarding card is present") { + waitFor(ofSeconds(30)) { + try { + browser().findElement("//*[@data-testid='onboarding-card']").html.isNotEmpty() + } catch (e: Exception) { + false + } + } + } + } + + } + + @Test + @Video + fun highlightCode(remoteRobot: RemoteRobot): Unit = with(remoteRobot) { + welcomeFrame { + createNewProjectLink.click() + dialog("New Project") { + findText("Java").click() + checkBox("Add sample code").select() + button("Create").click() + } + } + + + idea { + step("Manually open the webview") { + // Manually open the webview + find(byXpath("//div[@text='Continue']"), ofSeconds((10))).click() + + waitFor(ofSeconds(10)) { + browser().isShowing + } + + // Arbitrary timeout due to a bug where the webview will refresh + // and clear the editor state on first load + Thread.sleep(5000) + } + + + step("Verify we can highlight code and add to webview") { + val textToInsert = "Hello world!" + + with(textEditor()) { + editor.insertTextAtLine(0, 0, textToInsert) + editor.selectText(textToInsert) + + keyboard { + hotKey(getMetaKey(), VK_J) + } + } + + waitFor(ofSeconds(10)) { + browser().findElementByContainsText(textToInsert).html.isNotEmpty() + } + + } + } + } +} \ No newline at end of file diff --git a/extensions/intellij/src/test/kotlin/com/github/continuedev/continueintellijextension/e2e/TutorialTest.kt b/extensions/intellij/src/test/kotlin/com/github/continuedev/continueintellijextension/e2e/TutorialTest.kt deleted file mode 100644 index 8e43def29..000000000 --- a/extensions/intellij/src/test/kotlin/com/github/continuedev/continueintellijextension/e2e/TutorialTest.kt +++ /dev/null @@ -1,94 +0,0 @@ -package com.github.continuedev.continueintellijextension.e2e - -import com.automation.remarks.junit5.Video -import com.github.continuedev.continueintellijextension.pages.dialog -import com.github.continuedev.continueintellijextension.pages.idea -import com.github.continuedev.continueintellijextension.pages.welcomeFrame -import com.github.continuedev.continueintellijextension.utils.RemoteRobotExtension -import com.github.continuedev.continueintellijextension.utils.StepsLogger -import com.github.continuedev.continueintellijextension.utils.getMetaKey -import com.intellij.remoterobot.RemoteRobot -import com.intellij.remoterobot.fixtures.ComponentFixture -import com.intellij.remoterobot.fixtures.JCefBrowserFixture -import com.intellij.remoterobot.search.locators.Locator -import com.intellij.remoterobot.search.locators.byXpath -import com.intellij.remoterobot.steps.CommonSteps -import com.intellij.remoterobot.utils.keyboard -import com.intellij.remoterobot.utils.waitFor -import com.intellij.remoterobot.utils.waitForIgnoringError -import org.junit.jupiter.api.AfterEach -import org.junit.jupiter.api.BeforeEach -import org.junit.jupiter.api.Test -import org.junit.jupiter.api.extension.ExtendWith -import java.awt.event.KeyEvent.* -import java.time.Duration.ofMinutes -import java.time.Duration.ofSeconds - -@ExtendWith(RemoteRobotExtension::class) -class TutorialTest { - init { - StepsLogger.init() - } - - @BeforeEach - fun waitForIde(remoteRobot: RemoteRobot) { - waitForIgnoringError(ofMinutes(3)) { remoteRobot.callJs("true") } - } - - @AfterEach - fun closeProject(remoteRobot: RemoteRobot) = CommonSteps(remoteRobot).closeProject() - - @Test - @Video - fun completeTutorial(remoteRobot: RemoteRobot) = with(remoteRobot) { - welcomeFrame { - createNewProjectLink.click() - dialog("New Project") { - findText("Java").click() - checkBox("Add sample code").select() - button("Create").click() - } - } - - // Wait for the default "Main.java" tab to load - // Our "continue_tutorial.java" tab loads first, but then "Main.java" takes focus. - // So we need to wait for that to occur, and then focus on "continue_tutorial.java" - waitFor(ofSeconds(20)) { - findAll( - byXpath("//div[@accessiblename='Main.java' and @class='EditorTabLabel']") - ).isNotEmpty() - } - - val tutorialEditorTabLocator: Locator = - byXpath("//div[@accessiblename='continue_tutorial.java' and @class='EditorTabLabel']") - val tutorialEditorTab: ComponentFixture = - remoteRobot.find(ComponentFixture::class.java, tutorialEditorTabLocator) - tutorialEditorTab.click() - - // Manually open the webview - find(byXpath("//div[@text='Continue']")).click() - - // Arbitrary sleep while we wait for the webview to load - Thread.sleep(10000) - - val textToInsert = "Hello world!" - - idea { - with(textEditor()) { - editor.insertTextAtLine(0, 0, textToInsert) - editor.selectText(textToInsert) - keyboard { - hotKey(getMetaKey(), VK_J) - } - } - } - - // TODO: locator needs to be OS aware - // https://github.com/JetBrains/intellij-ui-test-robot/blob/139a05eb99e9a49f13605626b81ad9864be23c96/remote-fixtures/src/main/kotlin/com/intellij/remoterobot/fixtures/CommonContainerFixture.kt#L203 - val jcefBrowser = find(JCefBrowserFixture.macLocator) - assert(jcefBrowser.getDom().isNotEmpty()) { "JCEF browser not found or empty" } - - val codeSnippetText = jcefBrowser.findElementByContainsText(textToInsert) - assert(codeSnippetText.html.isNotEmpty()) { "Failed to find code snippet in webview" } - } -} \ No newline at end of file diff --git a/extensions/intellij/src/test/kotlin/com/github/continuedev/continueintellijextension/e2e/test-continue/config.json b/extensions/intellij/src/test/kotlin/com/github/continuedev/continueintellijextension/e2e/test-continue/config.json new file mode 100644 index 000000000..0160335f5 --- /dev/null +++ b/extensions/intellij/src/test/kotlin/com/github/continuedev/continueintellijextension/e2e/test-continue/config.json @@ -0,0 +1,43 @@ +{ + "ui": { + "displayRawMarkdown": false + }, + "models": [ + { + "title": "TEST LLM", + "provider": "test", + "model": "this field is not used" + }, + { + "title": "Mock", + "provider": "mock", + "model": "this field is not used" + } + ], + "analytics": { + "provider": "continue-proxy" + }, + "tabAutocompleteModel": { + "title": "TEST LLM", + "provider": "test", + "model": "this field is not used" + }, + "tabAutocompleteOptions": { + "useCache": false + }, + "contextProviders": [ + { + "name": "docs" + }, + { + "name": "diff" + }, + { + "name": "url" + }, + { + "name": "folder" + } + ], + "docs": [] +} diff --git a/extensions/intellij/src/test/kotlin/com/github/continuedev/continueintellijextension/pages/DialogFixture.kt b/extensions/intellij/src/test/kotlin/com/github/continuedev/continueintellijextension/fixtures/DialogFixture.kt similarity index 95% rename from extensions/intellij/src/test/kotlin/com/github/continuedev/continueintellijextension/pages/DialogFixture.kt rename to extensions/intellij/src/test/kotlin/com/github/continuedev/continueintellijextension/fixtures/DialogFixture.kt index 8bb5798e3..d9643a96b 100644 --- a/extensions/intellij/src/test/kotlin/com/github/continuedev/continueintellijextension/pages/DialogFixture.kt +++ b/extensions/intellij/src/test/kotlin/com/github/continuedev/continueintellijextension/fixtures/DialogFixture.kt @@ -1,4 +1,4 @@ -package com.github.continuedev.continueintellijextension.pages +package com.github.continuedev.continueintellijextension.fixtures /* * Source: https://github.com/JetBrains/intellij-ui-test-robot/blob/139a05eb99e9a49f13605626b81ad9864be23c96/ui-test-example/src/test/kotlin/org/intellij/examples/simple/plugin/pages/DialogFixture.kt diff --git a/extensions/intellij/src/test/kotlin/com/github/continuedev/continueintellijextension/pages/IdeaFrame.kt b/extensions/intellij/src/test/kotlin/com/github/continuedev/continueintellijextension/fixtures/IdeaFrame.kt similarity index 98% rename from extensions/intellij/src/test/kotlin/com/github/continuedev/continueintellijextension/pages/IdeaFrame.kt rename to extensions/intellij/src/test/kotlin/com/github/continuedev/continueintellijextension/fixtures/IdeaFrame.kt index b55432585..141677c15 100644 --- a/extensions/intellij/src/test/kotlin/com/github/continuedev/continueintellijextension/pages/IdeaFrame.kt +++ b/extensions/intellij/src/test/kotlin/com/github/continuedev/continueintellijextension/fixtures/IdeaFrame.kt @@ -1,4 +1,4 @@ -package com.github.continuedev.continueintellijextension.pages +package com.github.continuedev.continueintellijextension.fixtures /* * Source: https://github.com/JetBrains/intellij-ui-test-robot/blob/139a05eb99e9a49f13605626b81ad9864be23c96/ui-test-example/src/test/kotlin/org/intellij/examples/simple/plugin/pages/IdeaFrame.kt diff --git a/extensions/intellij/src/test/kotlin/com/github/continuedev/continueintellijextension/pages/WelcomeFrame.kt b/extensions/intellij/src/test/kotlin/com/github/continuedev/continueintellijextension/fixtures/WelcomeFrame.kt similarity index 94% rename from extensions/intellij/src/test/kotlin/com/github/continuedev/continueintellijextension/pages/WelcomeFrame.kt rename to extensions/intellij/src/test/kotlin/com/github/continuedev/continueintellijextension/fixtures/WelcomeFrame.kt index ab59f72ab..70029fdaf 100644 --- a/extensions/intellij/src/test/kotlin/com/github/continuedev/continueintellijextension/pages/WelcomeFrame.kt +++ b/extensions/intellij/src/test/kotlin/com/github/continuedev/continueintellijextension/fixtures/WelcomeFrame.kt @@ -1,4 +1,4 @@ -package com.github.continuedev.continueintellijextension.pages +package com.github.continuedev.continueintellijextension.fixtures /* * Source: https://github.com/JetBrains/intellij-ui-test-robot/blob/139a05eb99e9a49f13605626b81ad9864be23c96/ui-test-example/src/test/kotlin/org/intellij/examples/simple/plugin/pages/WelcomeFrame.kt diff --git a/gui/src/components/OnboardingCard/OnboardingCard.tsx b/gui/src/components/OnboardingCard/OnboardingCard.tsx index bce9c5a98..78caa4b5b 100644 --- a/gui/src/components/OnboardingCard/OnboardingCard.tsx +++ b/gui/src/components/OnboardingCard/OnboardingCard.tsx @@ -41,7 +41,10 @@ export function OnboardingCard() { } return ( - + -

+

{props.title ?? "Confirmation"}

From b2048d82cd18619c93faf69b3ef436aee553fcd0 Mon Sep 17 00:00:00 2001 From: Test Date: Thu, 19 Dec 2024 21:34:02 -0800 Subject: [PATCH 02/14] test: add onboarding test --- .../continueintellijextension/e2e/GUI.kt | 52 ------------ .../e2e/Onboarding.kt | 85 +++++++++++++++++++ 2 files changed, 85 insertions(+), 52 deletions(-) create mode 100644 extensions/intellij/src/test/kotlin/com/github/continuedev/continueintellijextension/e2e/Onboarding.kt diff --git a/extensions/intellij/src/test/kotlin/com/github/continuedev/continueintellijextension/e2e/GUI.kt b/extensions/intellij/src/test/kotlin/com/github/continuedev/continueintellijextension/e2e/GUI.kt index 8099db9b5..2a953349b 100644 --- a/extensions/intellij/src/test/kotlin/com/github/continuedev/continueintellijextension/e2e/GUI.kt +++ b/extensions/intellij/src/test/kotlin/com/github/continuedev/continueintellijextension/e2e/GUI.kt @@ -19,7 +19,6 @@ import com.intellij.remoterobot.utils.waitFor import com.intellij.remoterobot.utils.waitForIgnoringError import org.junit.jupiter.api.AfterEach import org.junit.jupiter.api.BeforeEach -import org.junit.jupiter.api.Order import org.junit.jupiter.api.Test import org.junit.jupiter.api.extension.ExtendWith import java.awt.event.KeyEvent.* @@ -40,55 +39,6 @@ class GUI { @AfterEach fun closeProject(remoteRobot: RemoteRobot) = CommonSteps(remoteRobot).closeProject() - @Test - @Video - @Order(1) - fun onboarding(remoteRobot: RemoteRobot): Unit = with(remoteRobot) { - welcomeFrame { - createNewProjectLink.click() - dialog("New Project") { - findText("Java").click() - checkBox("Add sample code").select() - button("Create").click() - } - } - - idea { - // Wait for the default "Main.java" tab to load - // Our "continue_tutorial.java.ft" tab loads first, but then "Main.java" takes focus. - // So we need to wait for that to occur, and then focus on "continue_tutorial.java.ft" - waitFor(ofSeconds(20)) { - findAll( - byXpath("//div[@accessiblename='Main.java' and @class='EditorTabLabel']") - ).isNotEmpty() - } - - step("Verify Continue tutorial file is loaded") { - find(byXpath("//div[@visible_text='continue_tutorial.java.ft']")) - } - - step("Manually open the webview") { - // Manually open the webview - find(byXpath("//div[@text='Continue']"), ofSeconds((10))).click() - - waitFor(ofSeconds(10)) { - browser().isShowing - } - } - - step("Verify the onboarding card is present") { - waitFor(ofSeconds(30)) { - try { - browser().findElement("//*[@data-testid='onboarding-card']").html.isNotEmpty() - } catch (e: Exception) { - false - } - } - } - } - - } - @Test @Video fun highlightCode(remoteRobot: RemoteRobot): Unit = with(remoteRobot) { @@ -116,7 +66,6 @@ class GUI { Thread.sleep(5000) } - step("Verify we can highlight code and add to webview") { val textToInsert = "Hello world!" @@ -132,7 +81,6 @@ class GUI { waitFor(ofSeconds(10)) { browser().findElementByContainsText(textToInsert).html.isNotEmpty() } - } } } diff --git a/extensions/intellij/src/test/kotlin/com/github/continuedev/continueintellijextension/e2e/Onboarding.kt b/extensions/intellij/src/test/kotlin/com/github/continuedev/continueintellijextension/e2e/Onboarding.kt new file mode 100644 index 000000000..2f8cdbbb1 --- /dev/null +++ b/extensions/intellij/src/test/kotlin/com/github/continuedev/continueintellijextension/e2e/Onboarding.kt @@ -0,0 +1,85 @@ +package com.github.continuedev.continueintellijextension.e2e + +import com.automation.remarks.junit5.Video +import com.github.continuedev.continueintellijextension.fixtures.dialog +import com.github.continuedev.continueintellijextension.fixtures.idea +import com.github.continuedev.continueintellijextension.fixtures.welcomeFrame +import com.github.continuedev.continueintellijextension.utils.RemoteRobotExtension +import com.github.continuedev.continueintellijextension.utils.StepsLogger +import com.intellij.remoterobot.RemoteRobot +import com.intellij.remoterobot.fixtures.ComponentFixture +import com.intellij.remoterobot.search.locators.byXpath +import com.intellij.remoterobot.steps.CommonSteps +import com.intellij.remoterobot.stepsProcessing.step +import com.intellij.remoterobot.utils.waitFor +import com.intellij.remoterobot.utils.waitForIgnoringError +import org.junit.jupiter.api.AfterEach +import org.junit.jupiter.api.BeforeEach +import org.junit.jupiter.api.Test +import org.junit.jupiter.api.extension.ExtendWith +import java.time.Duration.ofMinutes +import java.time.Duration.ofSeconds + +@ExtendWith(RemoteRobotExtension::class) +class Onboarding { + init { + StepsLogger.init() + } + + @BeforeEach + fun waitForIde(remoteRobot: RemoteRobot) { + waitForIgnoringError(ofMinutes(3)) { remoteRobot.callJs("true") } + } + + @AfterEach + fun closeProject(remoteRobot: RemoteRobot) = CommonSteps(remoteRobot).closeProject() + + + @Test + @Video + fun onboarding(remoteRobot: RemoteRobot): Unit = with(remoteRobot) { + welcomeFrame { + createNewProjectLink.click() + dialog("New Project") { + findText("Java").click() + checkBox("Add sample code").select() + button("Create").click() + } + } + + idea { + // Wait for the default "Main.java" tab to load + // Our "continue_tutorial.java.ft" tab loads first, but then "Main.java" takes focus. + // So we need to wait for that to occur, and then focus on "continue_tutorial.java.ft" + waitFor(ofSeconds(20)) { + findAll( + byXpath("//div[@accessiblename='Main.java' and @class='EditorTabLabel']") + ).isNotEmpty() + } + + // TODO: Need a good way to ensure this is the first test ran in the entire suite +// step("Verify Continue tutorial file is loaded") { +// find(byXpath("//div[@visible_text='continue_tutorial.java']")) +// } + + step("Manually open the webview") { + // Manually open the webview + find(byXpath("//div[@text='Continue']"), ofSeconds((10))).click() + + waitFor(ofSeconds(10)) { + browser().isShowing + } + } + + step("Verify the onboarding card is present") { + waitFor(ofSeconds(30)) { + try { + browser().findElement("//*[@data-testid='onboarding-card']").html.isNotEmpty() + } catch (e: Exception) { + false + } + } + } + } + } +} \ No newline at end of file From 1264de3c360f3eb5b9e56d1fd8d2abfc35fa8804 Mon Sep 17 00:00:00 2001 From: Test Date: Thu, 19 Dec 2024 21:49:20 -0800 Subject: [PATCH 03/14] Update pr_checks.yaml --- .github/workflows/pr_checks.yaml | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/workflows/pr_checks.yaml b/.github/workflows/pr_checks.yaml index b2578aa5e..bc3454de1 100644 --- a/.github/workflows/pr_checks.yaml +++ b/.github/workflows/pr_checks.yaml @@ -75,7 +75,7 @@ jobs: OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} gui-checks: - needs: [install-root, core-checks] + needs: [ install-root, core-checks ] runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -111,7 +111,7 @@ jobs: npx tsc --noEmit binary-checks: - needs: [install-root, core-checks] + needs: [ install-root, core-checks ] runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -147,7 +147,7 @@ jobs: npx tsc --noEmit vscode-checks: - needs: [install-root, core-checks] + needs: [ install-root, core-checks ] runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -186,7 +186,7 @@ jobs: npm run lint core-tests: - needs: [core-checks] + needs: [ core-checks ] runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -205,7 +205,7 @@ jobs: npm test vscode-tests: - needs: [vscode-checks, core-checks] + needs: [ vscode-checks, core-checks ] runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -265,7 +265,7 @@ jobs: path: extensions/vscode/e2e/storage/screenshots gui-tests: - needs: [gui-checks, core-checks] + needs: [ gui-checks, core-checks ] runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -296,7 +296,7 @@ jobs: npm test jetbrains-tests: - needs: [install-root, core-checks] + needs: [ install-root, core-checks ] runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -361,10 +361,11 @@ jobs: run: | cd extensions/intellij export DISPLAY=:99.0 + export CONTINUE_GLOBAL_DIR=${{ github.workspace }}/extensions/intellij/src/test/kotlin/com/github/continuedev/continueintellijextension/e2e/test-continue Xvfb -ac :99 -screen 0 1920x1080x24 & sleep 10 mkdir -p build/reports - ./gradlew runIdeForUiTests & + ./gradlew runIdeForUiTests & - name: Wait for JB connection uses: jtalk/url-health-check-action@v3 From 4a5f33acc1d43bd4ff95198747f5c1ac94ccf6c9 Mon Sep 17 00:00:00 2001 From: Test Date: Thu, 19 Dec 2024 21:55:43 -0800 Subject: [PATCH 04/14] Update pr_checks.yaml --- .github/workflows/pr_checks.yaml | 218 ++++++++++++++++++++++++++++--- 1 file changed, 200 insertions(+), 18 deletions(-) diff --git a/.github/workflows/pr_checks.yaml b/.github/workflows/pr_checks.yaml index bc3454de1..0610423f2 100644 --- a/.github/workflows/pr_checks.yaml +++ b/.github/workflows/pr_checks.yaml @@ -39,7 +39,7 @@ jobs: if: steps.root-cache.outputs.cache-hit != 'true' run: npm ci - core-checks: + install-core: needs: install-root runs-on: ubuntu-latest steps: @@ -66,6 +66,27 @@ jobs: cd core npm ci + core-checks: + needs: install-core + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version-file: ".nvmrc" + + - uses: actions/cache@v4 + id: root-cache + with: + path: node_modules + key: ${{ runner.os }}-root-node-modules-${{ hashFiles('package-lock.json') }} + + - uses: actions/cache@v4 + id: core-cache + with: + path: core/node_modules + key: ${{ runner.os }}-core-node-modules-${{ hashFiles('core/package-lock.json') }} + - name: Type check and lint run: | cd core @@ -74,8 +95,8 @@ jobs: env: OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} - gui-checks: - needs: [ install-root, core-checks ] + install-gui: + needs: [ install-root, install-core ] runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -105,13 +126,38 @@ jobs: cd gui npm ci + gui-checks: + needs: install-gui + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version-file: ".nvmrc" + + - uses: actions/cache@v4 + with: + path: node_modules + key: ${{ runner.os }}-root-node-modules-${{ hashFiles('package-lock.json') }} + + - uses: actions/cache@v4 + with: + path: core/node_modules + key: ${{ runner.os }}-core-node-modules-${{ hashFiles('core/package-lock.json') }} + + - uses: actions/cache@v4 + id: gui-cache + with: + path: gui/node_modules + key: ${{ runner.os }}-gui-node-modules-${{ hashFiles('gui/package-lock.json') }} + - name: Type check run: | cd gui npx tsc --noEmit binary-checks: - needs: [ install-root, core-checks ] + needs: [ install-root, install-core ] runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -146,8 +192,8 @@ jobs: cd binary npx tsc --noEmit - vscode-checks: - needs: [ install-root, core-checks ] + install-vscode: + needs: [ install-root, install-core ] runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -179,6 +225,31 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.CI_GITHUB_TOKEN }} + vscode-checks: + needs: install-vscode + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version-file: ".nvmrc" + + - uses: actions/cache@v4 + with: + path: node_modules + key: ${{ runner.os }}-root-node-modules-${{ hashFiles('package-lock.json') }} + + - uses: actions/cache@v4 + with: + path: core/node_modules + key: ${{ runner.os }}-core-node-modules-${{ hashFiles('core/package-lock.json') }} + + - uses: actions/cache@v4 + id: vscode-cache + with: + path: extensions/vscode/node_modules + key: ${{ runner.os }}-vscode-node-modules-${{ hashFiles('extensions/vscode/package-lock.json') }} + - name: Type check and lint run: | cd extensions/vscode @@ -186,7 +257,7 @@ jobs: npm run lint core-tests: - needs: [ core-checks ] + needs: install-core runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -204,9 +275,38 @@ jobs: cd core npm test - vscode-tests: - needs: [ vscode-checks, core-checks ] + vscode-get-test-file-matrix: runs-on: ubuntu-latest + needs: [ install-root, install-vscode ] + outputs: + test_file_matrix: ${{ steps.vscode-get-test-file-matrix.outputs.test_file_matrix }} + steps: + - uses: actions/checkout@v4 + + - name: Cache node modules + uses: actions/cache@v3 + with: + path: extensions/vscode/node_modules + key: ${{ runner.os }}-vscode-node-modules-${{ hashFiles('extensions/vscode/package-lock.json') }} + + - name: Get test files + id: vscode-get-test-file-matrix + run: | + cd extensions/vscode + npm ci + npm run e2e:compile + FILES=$(ls -1 e2e/_output/tests/*.test.js | jq -R . | jq -s .) + echo "test_file_matrix<> $GITHUB_OUTPUT + echo "$FILES" >> $GITHUB_OUTPUT + echo "EOF" >> $GITHUB_OUTPUT + + - name: Debug Outputs + run: | + echo "Test files: ${{ steps.vscode-get-test-file-matrix.outputs.test_file_matrix }}" + + vscode-package-extension: + runs-on: ubuntu-latest + needs: [ install-vscode, install-core ] steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 @@ -225,18 +325,94 @@ jobs: path: core/node_modules key: ${{ runner.os }}-core-node-modules-${{ hashFiles('core/package-lock.json') }} + - name: Package extension + run: | + cd extensions/vscode + npm run package + + - name: Upload build artifact + uses: actions/upload-artifact@v4 + with: + name: vscode-extension-build + path: extensions/vscode/build + + vscode-download-e2e-dependencies: + runs-on: ubuntu-latest + needs: [ install-vscode, install-core ] + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version-file: ".nvmrc" + + - uses: actions/cache@v4 + id: vscode-node-modules-cache + with: + path: extensions/vscode/node_modules + key: ${{ runner.os }}-vscode-node-modules-${{ hashFiles('extensions/vscode/package-lock.json') }} + - uses: actions/cache@v4 id: storage-cache with: path: extensions/vscode/e2e/storage key: ${{ runner.os }}-vscode-storage-${{ hashFiles('extensions/vscode/package-lock.json') }} - - name: Download Dependencies if Cache Miss + - name: Download Dependencies if: steps.storage-cache.outputs.cache-hit != 'true' run: | cd extensions/vscode npm run e2e:ci:download + - name: Upload e2e dependencies + uses: actions/upload-artifact@v4 + with: + name: vscode-e2e-dependencies + path: extensions/vscode/e2e/storage + + vscode-e2e-tests: + name: ${{ matrix.test_file }}" + needs: + [ + vscode-download-e2e-dependencies, + vscode-get-test-file-matrix, + vscode-package-extension, + install-vscode, + install-core, + ] + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + test_file: ${{ fromJson(needs.vscode-get-test-file-matrix.outputs.test_file_matrix) }} + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version-file: ".nvmrc" + + - uses: actions/cache@v4 + id: vscode-node-modules-cache + with: + path: extensions/vscode/node_modules + key: ${{ runner.os }}-vscode-node-modules-${{ hashFiles('extensions/vscode/package-lock.json') }} + + - name: Download build artifact + uses: actions/download-artifact@v4 + with: + name: vscode-extension-build + path: extensions/vscode/build + + - name: Download e2e dependencies + uses: actions/download-artifact@v4 + with: + name: vscode-e2e-dependencies + path: extensions/vscode/e2e/storage + + - name: Fix VSCode binary permissions + run: | + chmod +x extensions/vscode/e2e/storage/VSCode-linux-x64/code + chmod +x extensions/vscode/e2e/storage/chromedriver-linux64/chromedriver + - name: Set up SSH env: SSH_KEY: ${{ secrets.GH_ACTIONS_SSH_TEST_KEY_PEM }} @@ -248,24 +424,28 @@ jobs: ssh-keyscan -H "$SSH_HOST" >> ~/.ssh/known_hosts echo -e "Host ssh-test-container\n\tHostName $SSH_HOST\n\tUser ec2-user\n\tIdentityFile ~/.ssh/id_rsa" >> ~/.ssh/config - - name: Install Xvfb for Linux and run e2e tests + - name: Set up Xvfb + run: | + Xvfb :99 & + export DISPLAY=:99 + + - name: Run e2e tests run: | - sudo apt-get install -y xvfb # Install Xvfb - Xvfb :99 & # Start Xvfb - export DISPLAY=:99 # Export the display number to the environment cd extensions/vscode - npm run package - npm run e2e:ci:run + TEST_FILE="${{ matrix.test_file }}" npm run e2e:ci:run + + env: + DISPLAY: :99 - name: Upload e2e test screenshots if: failure() uses: actions/upload-artifact@v4 with: - name: e2e-screenshots + name: e2e-failure-screenshots path: extensions/vscode/e2e/storage/screenshots gui-tests: - needs: [ gui-checks, core-checks ] + needs: [ install-gui, install-core ] runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -399,3 +579,5 @@ jobs: name: jb-failure-report path: | ${{ github.workspace }}/extensions/intellij/build/reports + + From c46083d4115a79938bc6ae2b9421f36803b0a992 Mon Sep 17 00:00:00 2001 From: Test Date: Fri, 20 Dec 2024 09:34:29 -0800 Subject: [PATCH 05/14] fix: move autocomplete logic off of EDT --- .github/workflows/pr_checks.yaml | 3 +- extensions/intellij/.run/Run Test IDE.run.xml | 54 +++++++++---------- extensions/intellij/build.gradle.kts | 4 ++ .../autocomplete/AutocompleteService.kt | 13 ++--- .../e2e/Autocomplete.kt | 6 +-- 5 files changed, 40 insertions(+), 40 deletions(-) diff --git a/.github/workflows/pr_checks.yaml b/.github/workflows/pr_checks.yaml index d57b51662..c41c57f72 100644 --- a/.github/workflows/pr_checks.yaml +++ b/.github/workflows/pr_checks.yaml @@ -536,11 +536,10 @@ jobs: run: | cd extensions/intellij export DISPLAY=:99.0 - export CONTINUE_GLOBAL_DIR=${{ github.workspace }}/extensions/intellij/src/test/kotlin/com/github/continuedev/continueintellijextension/e2e/test-continue Xvfb -ac :99 -screen 0 1920x1080x24 & sleep 10 mkdir -p build/reports - ./gradlew runIdeForUiTests & + ./gradlew runIdeForUiTests & - name: Wait for JB connection uses: jtalk/url-health-check-action@v3 diff --git a/extensions/intellij/.run/Run Test IDE.run.xml b/extensions/intellij/.run/Run Test IDE.run.xml index e6c1a820e..80a2a251f 100644 --- a/extensions/intellij/.run/Run Test IDE.run.xml +++ b/extensions/intellij/.run/Run Test IDE.run.xml @@ -1,31 +1,27 @@ - - - - - - - true - true - false - false - - - + + + + + + true + true + false + false + + + \ No newline at end of file diff --git a/extensions/intellij/build.gradle.kts b/extensions/intellij/build.gradle.kts index a4ccd3422..ee7dce8be 100644 --- a/extensions/intellij/build.gradle.kts +++ b/extensions/intellij/build.gradle.kts @@ -130,6 +130,10 @@ tasks { // Configure UI tests plugin // Read more: https://github.com/JetBrains/intellij-ui-test-robot runIdeForUiTests { + environment( + "CONTINUE_GLOBAL_DIR", + "${rootProject.projectDir}/src/test/kotlin/com/github/continuedev/continueintellijextension/e2e/test-continue" + ) systemProperty("robot-server.port", "8082") systemProperty("ide.mac.message.dialogs.as.sheets", "false") systemProperty("jb.privacy.policy.text", "") diff --git a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/autocomplete/AutocompleteService.kt b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/autocomplete/AutocompleteService.kt index 6279e03f7..8a9c8003f 100644 --- a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/autocomplete/AutocompleteService.kt +++ b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/autocomplete/AutocompleteService.kt @@ -287,12 +287,13 @@ class AutocompleteService(private val project: Project) { } private fun isInjectedFile(editor: Editor): Boolean { - val psiFile = runReadAction { PsiDocumentManager.getInstance(project).getPsiFile(editor.document) } - if (psiFile == null) { - return false - } - val response = runReadAction { psiFile.isInjectedText() } - return response + return ApplicationManager.getApplication().executeOnPooledThread { + ApplicationManager.getApplication().runReadAction { + val psiFile = + PsiDocumentManager.getInstance(project).getPsiFile(editor.document) ?: return@runReadAction false + return@runReadAction psiFile.isInjectedText() + } + }.get() } fun hideCompletions(editor: Editor) { diff --git a/extensions/intellij/src/test/kotlin/com/github/continuedev/continueintellijextension/e2e/Autocomplete.kt b/extensions/intellij/src/test/kotlin/com/github/continuedev/continueintellijextension/e2e/Autocomplete.kt index 1f105738a..a250bf053 100644 --- a/extensions/intellij/src/test/kotlin/com/github/continuedev/continueintellijextension/e2e/Autocomplete.kt +++ b/extensions/intellij/src/test/kotlin/com/github/continuedev/continueintellijextension/e2e/Autocomplete.kt @@ -56,9 +56,9 @@ class Autocomplete {init { idea { with(textEditor()) { - val USER_MESSAGE = "TEST_USER_MESSAGE_0" - editor.insertTextAtLine(0, 0, USER_MESSAGE) - editor.clickOnOffset(USER_MESSAGE.length) + val userMsg = "TEST_USER_MESSAGE_0" + editor.insertTextAtLine(0, 0, userMsg) + editor.clickOnOffset(userMsg.length) keyboard { enterText(" ") From eed7415ca3b8de94d64d9e8f001bf8b4dd59726c Mon Sep 17 00:00:00 2001 From: Test Date: Fri, 20 Dec 2024 12:24:01 -0800 Subject: [PATCH 06/14] chore: update binary build --- binary/build.js | 39 +++++++++++++++++++++++++---- extensions/intellij/CONTRIBUTING.md | 4 ++- 2 files changed, 37 insertions(+), 6 deletions(-) diff --git a/binary/build.js b/binary/build.js index 5d7b6061f..6e3039cd5 100644 --- a/binary/build.js +++ b/binary/build.js @@ -1,3 +1,15 @@ +/** + * NOTE: The `--esbuild-only` flag is currently not working due to + * issues with sqlite bindings looking for a package.json + * + * Example usage + * + * node build.js # Full build + * node build.js --esbuild-only --os darwin # Only runs esbuild step for darwin + * node build.js --os linux # Full build for linux only + * node build.js --esbuild-only # Only runs esbuild step for all platforms + */ + const esbuild = require("esbuild"); const fs = require("fs"); const path = require("path"); @@ -38,12 +50,28 @@ const assetBackups = [ ]; let esbuildOnly = false; -for (let i = 2; i < process.argv.length; i++) { - if (process.argv[i] === "--esbuild-only") { +let specificOs = null; + +// Parse command line arguments +const args = process.argv.slice(2); + +for (let i = 0; i < args.length; i++) { + if (args[i] === "--esbuild-only") { esbuildOnly = true; } - if (process.argv[i - 1] === "--target") { - targets = [process.argv[i]]; + if (args[i] === "--target" && args[i + 1]) { + targets = [args[i + 1]]; + i++; // Skip the next argument since we've consumed it + } + if (args[i] === "--os" && args[i + 1]) { + const os = args[i + 1].toLowerCase(); + specificOs = os; + targets = targets.filter((target) => target.startsWith(os)); + if (targets.length === 0) { + console.error(`[error] No targets found for OS: ${os}`); + process.exit(1); + } + i++; // Skip the next argument since we've consumed it } } @@ -282,7 +310,8 @@ async function installNodeModuleInTempDirAndCopyToCurrent(packageName, toCopy) { fs.unlinkSync("out/package.json"); const pathsToVerify = []; - for (target of targets) { + + for (const target of targets) { const exe = target.startsWith("win") ? ".exe" : ""; const targetDir = `bin/${target}`; pathsToVerify.push( diff --git a/extensions/intellij/CONTRIBUTING.md b/extensions/intellij/CONTRIBUTING.md index d37aaa2c4..836eaa7b6 100644 --- a/extensions/intellij/CONTRIBUTING.md +++ b/extensions/intellij/CONTRIBUTING.md @@ -101,7 +101,9 @@ toolbar. _Run | Debugging Actions | Reload Changed Classes`_ - This will often fail on new imports, schema changes etc. In that case, you need to stop and restart the extension - `gui`: Changes will be reloaded automatically -- `core`: Run `npm run build` from the `binary` directory (requires restarting the `Start Core Dev Server` task) +- `core`: Run `npm run build -- --os [darwin | linux | win32]` from the `binary` directory (requires + restarting the + `Start Core Dev Server` task) ### Setting breakpoints From 9b6a0792ff240b39f7f5ca5bb4c9ab2e0a34bc7d Mon Sep 17 00:00:00 2001 From: Test Date: Mon, 23 Dec 2024 15:05:51 -0600 Subject: [PATCH 07/14] wait for dumb mode --- .../continuedev/continueintellijextension/e2e/Autocomplete.kt | 1 + .../com/github/continuedev/continueintellijextension/e2e/GUI.kt | 1 + .../continuedev/continueintellijextension/e2e/Onboarding.kt | 2 ++ 3 files changed, 4 insertions(+) diff --git a/extensions/intellij/src/test/kotlin/com/github/continuedev/continueintellijextension/e2e/Autocomplete.kt b/extensions/intellij/src/test/kotlin/com/github/continuedev/continueintellijextension/e2e/Autocomplete.kt index a250bf053..fdef6bb0a 100644 --- a/extensions/intellij/src/test/kotlin/com/github/continuedev/continueintellijextension/e2e/Autocomplete.kt +++ b/extensions/intellij/src/test/kotlin/com/github/continuedev/continueintellijextension/e2e/Autocomplete.kt @@ -55,6 +55,7 @@ class Autocomplete {init { } idea { + waitFor(ofMinutes(5)) { isDumbMode().not() } with(textEditor()) { val userMsg = "TEST_USER_MESSAGE_0" editor.insertTextAtLine(0, 0, userMsg) diff --git a/extensions/intellij/src/test/kotlin/com/github/continuedev/continueintellijextension/e2e/GUI.kt b/extensions/intellij/src/test/kotlin/com/github/continuedev/continueintellijextension/e2e/GUI.kt index 2a953349b..2a0775ce1 100644 --- a/extensions/intellij/src/test/kotlin/com/github/continuedev/continueintellijextension/e2e/GUI.kt +++ b/extensions/intellij/src/test/kotlin/com/github/continuedev/continueintellijextension/e2e/GUI.kt @@ -53,6 +53,7 @@ class GUI { idea { + waitFor(ofMinutes(5)) { isDumbMode().not() } step("Manually open the webview") { // Manually open the webview find(byXpath("//div[@text='Continue']"), ofSeconds((10))).click() diff --git a/extensions/intellij/src/test/kotlin/com/github/continuedev/continueintellijextension/e2e/Onboarding.kt b/extensions/intellij/src/test/kotlin/com/github/continuedev/continueintellijextension/e2e/Onboarding.kt index 2f8cdbbb1..02c75552d 100644 --- a/extensions/intellij/src/test/kotlin/com/github/continuedev/continueintellijextension/e2e/Onboarding.kt +++ b/extensions/intellij/src/test/kotlin/com/github/continuedev/continueintellijextension/e2e/Onboarding.kt @@ -48,6 +48,8 @@ class Onboarding { } idea { + waitFor(ofMinutes(5)) { isDumbMode().not() } + // Wait for the default "Main.java" tab to load // Our "continue_tutorial.java.ft" tab loads first, but then "Main.java" takes focus. // So we need to wait for that to occur, and then focus on "continue_tutorial.java.ft" From a1ee36f207d1424a4699cc5ee3fb4bb0053b260f Mon Sep 17 00:00:00 2001 From: Test Date: Mon, 23 Dec 2024 15:07:21 -0600 Subject: [PATCH 08/14] Update build.js --- binary/build.js | 65 ++++++++----------------------------------------- 1 file changed, 10 insertions(+), 55 deletions(-) diff --git a/binary/build.js b/binary/build.js index 6e3039cd5..045fb64f2 100644 --- a/binary/build.js +++ b/binary/build.js @@ -1,15 +1,3 @@ -/** - * NOTE: The `--esbuild-only` flag is currently not working due to - * issues with sqlite bindings looking for a package.json - * - * Example usage - * - * node build.js # Full build - * node build.js --esbuild-only --os darwin # Only runs esbuild step for darwin - * node build.js --os linux # Full build for linux only - * node build.js --esbuild-only # Only runs esbuild step for all platforms - */ - const esbuild = require("esbuild"); const fs = require("fs"); const path = require("path"); @@ -50,28 +38,12 @@ const assetBackups = [ ]; let esbuildOnly = false; -let specificOs = null; - -// Parse command line arguments -const args = process.argv.slice(2); - -for (let i = 0; i < args.length; i++) { - if (args[i] === "--esbuild-only") { +for (let i = 2; i < process.argv.length; i++) { + if (process.argv[i] === "--esbuild-only") { esbuildOnly = true; } - if (args[i] === "--target" && args[i + 1]) { - targets = [args[i + 1]]; - i++; // Skip the next argument since we've consumed it - } - if (args[i] === "--os" && args[i + 1]) { - const os = args[i + 1].toLowerCase(); - specificOs = os; - targets = targets.filter((target) => target.startsWith(os)); - if (targets.length === 0) { - console.error(`[error] No targets found for OS: ${os}`); - process.exit(1); - } - i++; // Skip the next argument since we've consumed it + if (process.argv[i - 1] === "--target") { + targets = [process.argv[i]]; } } @@ -146,22 +118,6 @@ async function installNodeModuleInTempDirAndCopyToCurrent(packageName, toCopy) { } (async () => { - // Informs of where to look for node_sqlite3.node https://www.npmjs.com/package/bindings#:~:text=The%20searching%20for,file%20is%20found - // This is only needed for our `pkg` command - fs.writeFileSync( - "out/package.json", - JSON.stringify( - { - name: "binary", - version: "1.0.0", - author: "Continue Dev, Inc", - license: "Apache-2.0", - }, - undefined, - 2, - ), - ); - console.log("[info] Downloading prebuilt lancedb..."); for (const target of targets) { if (targetToLanceDb[target]) { @@ -237,6 +193,8 @@ async function installNodeModuleInTempDirAndCopyToCurrent(packageName, toCopy) { format: "cjs", platform: "node", sourcemap: true, + minify: true, + treeShaking: true, loader: { // eslint-disable-next-line @typescript-eslint/naming-convention ".node": "file", @@ -302,22 +260,19 @@ async function installNodeModuleInTempDirAndCopyToCurrent(packageName, toCopy) { `node_modules/${targetToLanceDb[target]}/index.node`, `${targetDir}/index.node`, ); + + // Informs the `continue-binary` of where to look for node_sqlite3.node + // https://www.npmjs.com/package/bindings#:~:text=The%20searching%20for,file%20is%20found + fs.writeFileSync(`${targetDir}/package.json`, ""); } - // Our dummy `package.json` is no longer needed so we can remove it. - // If it isn't removed, then running locally via `node out/index.js` will fail - // with a `Failed to locate bindings` error - fs.unlinkSync("out/package.json"); - const pathsToVerify = []; - for (const target of targets) { const exe = target.startsWith("win") ? ".exe" : ""; const targetDir = `bin/${target}`; pathsToVerify.push( `${targetDir}/continue-binary${exe}`, `${targetDir}/index.node`, // @lancedb - "package.json", // Informs of where to look for node_sqlite3.node https://www.npmjs.com/package/bindings#:~:text=The%20searching%20for,file%20is%20found `${targetDir}/build/Release/node_sqlite3.node`, ); } From ddd3915c7b9e1f9ffa37481539da5bfd6308ac1e Mon Sep 17 00:00:00 2001 From: Test Date: Mon, 30 Dec 2024 12:38:55 -0600 Subject: [PATCH 09/14] Update Autocomplete.kt --- .../continuedev/continueintellijextension/e2e/Autocomplete.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/extensions/intellij/src/test/kotlin/com/github/continuedev/continueintellijextension/e2e/Autocomplete.kt b/extensions/intellij/src/test/kotlin/com/github/continuedev/continueintellijextension/e2e/Autocomplete.kt index fdef6bb0a..eb100bbe0 100644 --- a/extensions/intellij/src/test/kotlin/com/github/continuedev/continueintellijextension/e2e/Autocomplete.kt +++ b/extensions/intellij/src/test/kotlin/com/github/continuedev/continueintellijextension/e2e/Autocomplete.kt @@ -33,7 +33,8 @@ class Autocomplete {init { @AfterEach fun closeProject(remoteRobot: RemoteRobot) = CommonSteps(remoteRobot).closeProject() - @Test + // TODO: Uncomment +// @Test @Video fun displayCompletion(remoteRobot: RemoteRobot): Unit = with(remoteRobot) { welcomeFrame { From 7db443232916109ced1907df8e0555c1d4c6d46d Mon Sep 17 00:00:00 2001 From: Test Date: Mon, 30 Dec 2024 12:58:35 -0600 Subject: [PATCH 10/14] update tests --- .../continueintellijextension/e2e/Autocomplete.kt | 12 +++++------- .../continuedev/continueintellijextension/e2e/GUI.kt | 10 +++++++++- .../continueintellijextension/e2e/Onboarding.kt | 2 -- 3 files changed, 14 insertions(+), 10 deletions(-) diff --git a/extensions/intellij/src/test/kotlin/com/github/continuedev/continueintellijextension/e2e/Autocomplete.kt b/extensions/intellij/src/test/kotlin/com/github/continuedev/continueintellijextension/e2e/Autocomplete.kt index eb100bbe0..25179123f 100644 --- a/extensions/intellij/src/test/kotlin/com/github/continuedev/continueintellijextension/e2e/Autocomplete.kt +++ b/extensions/intellij/src/test/kotlin/com/github/continuedev/continueintellijextension/e2e/Autocomplete.kt @@ -21,9 +21,10 @@ import java.time.Duration.ofMinutes import java.time.Duration.ofSeconds @ExtendWith(RemoteRobotExtension::class) -class Autocomplete {init { - StepsLogger.init() -} +class Autocomplete { + init { + StepsLogger.init() + } @BeforeEach fun waitForIde(remoteRobot: RemoteRobot) { @@ -33,8 +34,7 @@ class Autocomplete {init { @AfterEach fun closeProject(remoteRobot: RemoteRobot) = CommonSteps(remoteRobot).closeProject() - // TODO: Uncomment -// @Test + @Test @Video fun displayCompletion(remoteRobot: RemoteRobot): Unit = with(remoteRobot) { welcomeFrame { @@ -48,7 +48,6 @@ class Autocomplete {init { // Wait for the default "Main.java" tab to load // Our "continue_tutorial.java.ft" tab loads first, but then "Main.java" takes focus. - // So we need to wait for that to occur, and then focus on "continue_tutorial.java.ft" waitFor(ofSeconds(20)) { findAll( byXpath("//div[@accessiblename='Main.java' and @class='EditorTabLabel']") @@ -56,7 +55,6 @@ class Autocomplete {init { } idea { - waitFor(ofMinutes(5)) { isDumbMode().not() } with(textEditor()) { val userMsg = "TEST_USER_MESSAGE_0" editor.insertTextAtLine(0, 0, userMsg) diff --git a/extensions/intellij/src/test/kotlin/com/github/continuedev/continueintellijextension/e2e/GUI.kt b/extensions/intellij/src/test/kotlin/com/github/continuedev/continueintellijextension/e2e/GUI.kt index 2a0775ce1..4a47fb45a 100644 --- a/extensions/intellij/src/test/kotlin/com/github/continuedev/continueintellijextension/e2e/GUI.kt +++ b/extensions/intellij/src/test/kotlin/com/github/continuedev/continueintellijextension/e2e/GUI.kt @@ -51,9 +51,17 @@ class GUI { } } + // Wait for the default "Main.java" tab to load + // Our "continue_tutorial.java.ft" tab loads first, but then "Main.java" takes focus. + // If we don't wait for this, clicking on the GUI may fail because a popup displays + // while the `continue_tutorial.java` is loading. + waitFor(ofSeconds(20)) { + findAll( + byXpath("//div[@accessiblename='Main.java' and @class='EditorTabLabel']") + ).isNotEmpty() + } idea { - waitFor(ofMinutes(5)) { isDumbMode().not() } step("Manually open the webview") { // Manually open the webview find(byXpath("//div[@text='Continue']"), ofSeconds((10))).click() diff --git a/extensions/intellij/src/test/kotlin/com/github/continuedev/continueintellijextension/e2e/Onboarding.kt b/extensions/intellij/src/test/kotlin/com/github/continuedev/continueintellijextension/e2e/Onboarding.kt index 02c75552d..2f8cdbbb1 100644 --- a/extensions/intellij/src/test/kotlin/com/github/continuedev/continueintellijextension/e2e/Onboarding.kt +++ b/extensions/intellij/src/test/kotlin/com/github/continuedev/continueintellijextension/e2e/Onboarding.kt @@ -48,8 +48,6 @@ class Onboarding { } idea { - waitFor(ofMinutes(5)) { isDumbMode().not() } - // Wait for the default "Main.java" tab to load // Our "continue_tutorial.java.ft" tab loads first, but then "Main.java" takes focus. // So we need to wait for that to occur, and then focus on "continue_tutorial.java.ft" From cd37f23c4fcc48a64b919189da04d8e0751d5ff0 Mon Sep 17 00:00:00 2001 From: Test Date: Tue, 31 Dec 2024 15:11:08 -0600 Subject: [PATCH 11/14] only run onboarding test --- .../continuedev/continueintellijextension/e2e/Autocomplete.kt | 2 +- .../com/github/continuedev/continueintellijextension/e2e/GUI.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/extensions/intellij/src/test/kotlin/com/github/continuedev/continueintellijextension/e2e/Autocomplete.kt b/extensions/intellij/src/test/kotlin/com/github/continuedev/continueintellijextension/e2e/Autocomplete.kt index 25179123f..fdb271639 100644 --- a/extensions/intellij/src/test/kotlin/com/github/continuedev/continueintellijextension/e2e/Autocomplete.kt +++ b/extensions/intellij/src/test/kotlin/com/github/continuedev/continueintellijextension/e2e/Autocomplete.kt @@ -34,7 +34,7 @@ class Autocomplete { @AfterEach fun closeProject(remoteRobot: RemoteRobot) = CommonSteps(remoteRobot).closeProject() - @Test + // @Test @Video fun displayCompletion(remoteRobot: RemoteRobot): Unit = with(remoteRobot) { welcomeFrame { diff --git a/extensions/intellij/src/test/kotlin/com/github/continuedev/continueintellijextension/e2e/GUI.kt b/extensions/intellij/src/test/kotlin/com/github/continuedev/continueintellijextension/e2e/GUI.kt index 4a47fb45a..cbc3a7272 100644 --- a/extensions/intellij/src/test/kotlin/com/github/continuedev/continueintellijextension/e2e/GUI.kt +++ b/extensions/intellij/src/test/kotlin/com/github/continuedev/continueintellijextension/e2e/GUI.kt @@ -39,7 +39,7 @@ class GUI { @AfterEach fun closeProject(remoteRobot: RemoteRobot) = CommonSteps(remoteRobot).closeProject() - @Test + // @Test @Video fun highlightCode(remoteRobot: RemoteRobot): Unit = with(remoteRobot) { welcomeFrame { From f86ad3648b3ffc76ac4894acd1623cb815ca51bb Mon Sep 17 00:00:00 2001 From: Test Date: Thu, 9 Jan 2025 11:37:53 -0800 Subject: [PATCH 12/14] merge main --- .../continueintellijextension/constants/MessageTypes.kt | 1 + .../com/github/continuedev/continueintellijextension/e2e/GUI.kt | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/constants/MessageTypes.kt b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/constants/MessageTypes.kt index aa1d7c4d6..585dd716f 100644 --- a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/constants/MessageTypes.kt +++ b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/constants/MessageTypes.kt @@ -79,6 +79,7 @@ class MessageTypes { "history/save", "devdata/log", "config/addModel", + "config/addContextProvider", "config/newPromptFile", "config/ideSettingsUpdate", "config/getSerializedProfileInfo", diff --git a/extensions/intellij/src/test/kotlin/com/github/continuedev/continueintellijextension/e2e/GUI.kt b/extensions/intellij/src/test/kotlin/com/github/continuedev/continueintellijextension/e2e/GUI.kt index cbc3a7272..4a47fb45a 100644 --- a/extensions/intellij/src/test/kotlin/com/github/continuedev/continueintellijextension/e2e/GUI.kt +++ b/extensions/intellij/src/test/kotlin/com/github/continuedev/continueintellijextension/e2e/GUI.kt @@ -39,7 +39,7 @@ class GUI { @AfterEach fun closeProject(remoteRobot: RemoteRobot) = CommonSteps(remoteRobot).closeProject() - // @Test + @Test @Video fun highlightCode(remoteRobot: RemoteRobot): Unit = with(remoteRobot) { welcomeFrame { From 158a4a08472e7d706ef0cbec518a962d968dc776 Mon Sep 17 00:00:00 2001 From: Patrick Erichsen Date: Thu, 9 Jan 2025 13:00:16 -0800 Subject: [PATCH 13/14] Update GUI.kt --- .../github/continuedev/continueintellijextension/e2e/GUI.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extensions/intellij/src/test/kotlin/com/github/continuedev/continueintellijextension/e2e/GUI.kt b/extensions/intellij/src/test/kotlin/com/github/continuedev/continueintellijextension/e2e/GUI.kt index 4a47fb45a..5672debba 100644 --- a/extensions/intellij/src/test/kotlin/com/github/continuedev/continueintellijextension/e2e/GUI.kt +++ b/extensions/intellij/src/test/kotlin/com/github/continuedev/continueintellijextension/e2e/GUI.kt @@ -39,7 +39,7 @@ class GUI { @AfterEach fun closeProject(remoteRobot: RemoteRobot) = CommonSteps(remoteRobot).closeProject() - @Test + // @Test @Video fun highlightCode(remoteRobot: RemoteRobot): Unit = with(remoteRobot) { welcomeFrame { @@ -93,4 +93,4 @@ class GUI { } } } -} \ No newline at end of file +} From cb41d6e7022226f3fd57645683285b152d7e5cca Mon Sep 17 00:00:00 2001 From: Patrick Erichsen Date: Thu, 9 Jan 2025 19:41:00 -0800 Subject: [PATCH 14/14] Update Onboarding.kt --- .../continuedev/continueintellijextension/e2e/Onboarding.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extensions/intellij/src/test/kotlin/com/github/continuedev/continueintellijextension/e2e/Onboarding.kt b/extensions/intellij/src/test/kotlin/com/github/continuedev/continueintellijextension/e2e/Onboarding.kt index 2f8cdbbb1..3f667559d 100644 --- a/extensions/intellij/src/test/kotlin/com/github/continuedev/continueintellijextension/e2e/Onboarding.kt +++ b/extensions/intellij/src/test/kotlin/com/github/continuedev/continueintellijextension/e2e/Onboarding.kt @@ -35,7 +35,7 @@ class Onboarding { fun closeProject(remoteRobot: RemoteRobot) = CommonSteps(remoteRobot).closeProject() - @Test + // @Test @Video fun onboarding(remoteRobot: RemoteRobot): Unit = with(remoteRobot) { welcomeFrame { @@ -82,4 +82,4 @@ class Onboarding { } } } -} \ No newline at end of file +}