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(); });