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'); + }) +});