Optimizer: notify on advisory suggestion changes (#31905)

This commit is contained in:
andig 2026-07-22 13:47:50 +02:00 • committed by GitHub
parent de4c63d182
commit 9db7be1ede
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 185 additions and 11 deletions

View file

@ -114,7 +114,8 @@ test.describe("messaging", async () => {
// validate connection
await modal.getByRole("button", { name: "Save", exact: true }).click();
await expectModalHidden(modal);
await expect(card).toContainText(["Events", "1", "Services", "0"].join(""));
// start plus the opt-out suggestion event
await expect(card).toContainText(["Events", "2", "Services", "0"].join(""));
// restart button appears
const restartButton = page
@ -165,7 +166,8 @@ test.describe("messaging", async () => {
await expect(messengerBox).toHaveText(["#1", "User-defined service"].join(""));
await modal.getByRole("button", { name: "Close" }).click();
await expectModalHidden(modal);
await expect(card).toContainText(["Events", "0", "Services", "1"].join(""));
// suggestion event is enabled by default
await expect(card).toContainText(["Events", "1", "Services", "1"].join(""));
await card.getByRole("button", { name: "edit" }).click();
await expectModalVisible(modal);
@ -179,6 +181,7 @@ test.describe("messaging", async () => {
await page.keyboard.press("Escape");
await expectModalHidden(modal);
await expect(card).toContainText(["Configured", "no"].join(""));
// service gone, saved suggestion event remains
await expect(card).toContainText(["Events", "1", "Services", "0"].join(""));
});
});