From 14fdbd42ef9a146e0bd4e1abe47a76bf772ce468 Mon Sep 17 00:00:00 2001 From: Koy Date: Fri, 4 Sep 2020 08:46:43 +0800 Subject: [PATCH] test: fix cannot search list content (#1367) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: 沈唁 <52o@qq52o.cn> --- cypress/integration/search/config.spec.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 cypress/integration/search/config.spec.js diff --git a/cypress/integration/search/config.spec.js b/cypress/integration/search/config.spec.js new file mode 100644 index 00000000..7c7e2f42 --- /dev/null +++ b/cypress/integration/search/config.spec.js @@ -0,0 +1,17 @@ +context('sidebar.search', () => { + beforeEach(() => { + cy.visit('http://localhost:3000'); + }); + + it('search list',()=>{ + cy.get(':input[type=search]') + + .type("npm i -g now") + + .should('have.value', 'npm i -g now'); + + cy.get( + '.results-panel>.matching-post p>em' + ). should('contain', 'npm i -g now'); + }) +});