From 9c06d864c149dd4873048aff5915e36e5792ec79 Mon Sep 17 00:00:00 2001 From: Suraj Shetty Date: Tue, 20 Jun 2023 15:08:44 +0530 Subject: [PATCH] test: Add wait before checking for value --- cypress/integration/awesome_bar.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cypress/integration/awesome_bar.js b/cypress/integration/awesome_bar.js index bb72ad1c59..ecf8dcc718 100644 --- a/cypress/integration/awesome_bar.js +++ b/cypress/integration/awesome_bar.js @@ -25,7 +25,9 @@ context("Awesome Bar", () => { cy.wait(100); cy.get("@awesome_bar").type("{enter}"); cy.get(".title-text").should("contain", "To Do"); - cy.findByPlaceholderText("ID").should("have.value", "%test%"); + cy.wait(200); + const name_filter = cy.findByPlaceholderText("ID"); + name_filter.should("have.value", "%test%"); cy.clear_filters(); });