From 367357d2ccd6fb8d7dce2950bdaec98b60eeeb89 Mon Sep 17 00:00:00 2001 From: Koy <369491420@qq.com> Date: Thu, 3 Sep 2020 11:12:38 +0800 Subject: [PATCH] [add test] add test for PR #1361. --- 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 000000000..7c7e2f421 --- /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'); + }) +});