UI Customize: email-based problem report flow for custom support email (#32584)
This commit is contained in:
parent
84cf093d3d
commit
ffb91cc335
6 changed files with 175 additions and 9 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue