test(e2e): expect editable artifacts in a project without a build tool (#6857)

#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.
Цей коміт міститься в:
l0ng-ai authored and GitHub committed 2026-11-29 22:45:25 +08:00
1 джерело 28b879c668
коміт 8e9c02cae6
1 file changed
+3 -1
+3 -1
Переглянути файл
@@ -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();
});