From 8e9c02cae62a19351979fd2ff3b99d57d2c6da9e Mon Sep 17 00:00:00 2001 From: l0ng-ai Date: Sun, 29 Nov 2026 22:45:25 +0800 Subject: [PATCH] test(e2e): expect editable artifacts in a project without a build tool (#6857) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #6834 made Project Structure › Artifacts editable when the project has no Maven or Gradle build; the settings spec still expected a disabled JAR button. It now checks the button is enabled and the Maven/Gradle note is absent. --- e2e/settings.spec.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/e2e/settings.spec.ts b/e2e/settings.spec.ts index d9ec5e79f5..bce56cedf0 100644 --- a/e2e/settings.spec.ts +++ b/e2e/settings.spec.ts @@ -110,7 +110,9 @@ test("Project Structure keeps edits across repeated shortcuts and applies them", await dialog.getByRole("button", { name: "Dependencies", exact: true }).click(); await expect(dialog.getByRole("group", { name: "The project depends on these projects" })).toBeVisible(); await dialog.getByRole("button", { name: "Artifacts", exact: true }).click(); - await expect(dialog.getByRole("button", { name: "JAR", exact: true })).toBeDisabled(); + // Without Maven or Gradle the IDE builds the artifacts itself, so they are editable. + await expect(dialog.getByRole("button", { name: "JAR", exact: true })).toBeEnabled(); + await expect(dialog.getByText(/This project is built by Maven or Gradle/)).toHaveCount(0); await page.keyboard.press("Escape"); await expect(dialog).toBeHidden(); });