From 4ec0b25020bbb6a405e9d813f931310c844d26e7 Mon Sep 17 00:00:00 2001 From: Vinai Kopp Date: Mon, 22 Aug 2022 20:52:19 +0200 Subject: [PATCH] Improve home page search term footer link test --- cypress/integration/hyva/homepage.spec.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cypress/integration/hyva/homepage.spec.js b/cypress/integration/hyva/homepage.spec.js index 497dd5b..b1b710d 100644 --- a/cypress/integration/hyva/homepage.spec.js +++ b/cypress/integration/hyva/homepage.spec.js @@ -97,9 +97,10 @@ describe('Home page tests', () => { ); cy.get(selectors.searchTerms).should( "have.length.at.least", - 4, - "At least four popular search terms exist" + 2, + "At least two popular search terms exist" ); + cy.get(selectors.searchTerms).contains(product.simpleProductName) }); it(["footer"], "Can visit Contact form in the footer", () => {