From f55345437a8a9bac1b29f030e14f3f618a794000 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Mierzwa?= Date: Tue, 18 Sep 2018 21:27:45 +0100 Subject: [PATCH] chore(tests): make it more obvious that silence should use am.uri, not am.publicURI --- .../Grid/AlertGrid/AlertGroup/Silence/index.test.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ui/src/Components/Grid/AlertGrid/AlertGroup/Silence/index.test.js b/ui/src/Components/Grid/AlertGrid/AlertGroup/Silence/index.test.js index 8156c6898..04a742b91 100644 --- a/ui/src/Components/Grid/AlertGrid/AlertGroup/Silence/index.test.js +++ b/ui/src/Components/Grid/AlertGrid/AlertGroup/Silence/index.test.js @@ -61,6 +61,7 @@ beforeEach(() => { { name: "default", uri: "file:///mock", + publicURI: "http://example.com", error: "" } ] @@ -175,6 +176,7 @@ describe("", () => { expect(am).toEqual({ name: "default", uri: "file:///mock", + publicURI: "http://example.com", error: "" }); }); @@ -204,7 +206,7 @@ describe("", () => { expect(endsAt.html()).toMatch(/badge-danger/); }); - it("id links to Alertmanager silence view", () => { + it("id links to Alertmanager silence view via alertmanager.uri", () => { const tree = ShallowSilenceDetails(); const link = tree.find("a"); expect(link.props().href).toBe(