UI Customize: email-based problem report flow for custom support email (#32584)

This commit is contained in:
Michael Geers 2026-08-07 18:30:58 +02:00 • committed by GitHub
parent 84cf093d3d
commit ffb91cc335
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 175 additions and 9 deletions

View file

@ -56,6 +56,27 @@ test.describe("customization", async () => {
await expect(email).toHaveAttribute("href", "mailto:support@example.com");
});
test("issue page uses email flow", async ({ page }) => {
await page.goto("/#/issue");
// github-only elements gone
await expect(page.getByRole("radio")).toHaveCount(0);
await expect(page.getByLabel("Steps to Reproduce")).toHaveCount(0);
await expect(page.getByText("Please write your issue in English")).toHaveCount(0);
await expect(page.getByRole("button", { name: "Send request by email" })).toBeVisible();
await expect(
page.getByText("Attach this file to your email if more information is needed.")
).toBeVisible();
const downloadButton = page.getByRole("button", { name: "Download debug information" });
await expect(downloadButton).toBeVisible();
const downloadPromise = page.waitForEvent("download");
await downloadButton.click();
const download = await downloadPromise;
expect(download.suggestedFilename()).toMatch(/^evcc-debug-v.+\.txt$/);
});
test("help modal shows contact button instead of github discussions", async ({ page }) => {
await page.goto("/");
const menu = await openMoreMenu(page);