From 1637c237591fb34961cdf6d901694c23c5da94fe Mon Sep 17 00:00:00 2001 From: jennypavlova Date: Thu, 21 Nov 2024 18:14:43 +0100 Subject: [PATCH] [Inventory] Fix the link to discover test (#201197) Closes #201189 ## Summary After this fix was added in https://github.com/elastic/kibana/pull/200984 the test started failing as it was verifying the previous kuery value - it was missing the `" "` so after this bug was fixed the test should be updated as well (basically changing `container.id:foo` with `container.id:"foo"`) and this PR updates the test. I checked locally and the test is passing now. (cherry picked from commit 74cf5d45784b9f633decae428c61ff96281dcc4b) --- .../observability_solution/inventory/e2e/cypress/e2e/home.cy.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/plugins/observability_solution/inventory/e2e/cypress/e2e/home.cy.ts b/x-pack/plugins/observability_solution/inventory/e2e/cypress/e2e/home.cy.ts index ce7bdfd102a40..fdb68826e9dc8 100644 --- a/x-pack/plugins/observability_solution/inventory/e2e/cypress/e2e/home.cy.ts +++ b/x-pack/plugins/observability_solution/inventory/e2e/cypress/e2e/home.cy.ts @@ -225,7 +225,7 @@ describe('Home page', () => { cy.getByTestSubj('inventoryEntityActionOpenInDiscover').click(); cy.url().should( 'include', - "query:'container.id:%20foo%20AND%20entity.definition_id%20:%20builtin*" + "query:'container.id:%20%22foo%22%20AND%20entity.definition_id%20:%20builtin*" ); }); });