Skip to content

Commit

Permalink
[add test] add test for PR docsifyjs#1361.
Browse files Browse the repository at this point in the history
  • Loading branch information
Koooooo-7 committed Sep 3, 2020
1 parent 1dbb547 commit 367357d
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions cypress/integration/search/config.spec.js
Original file line number Diff line number Diff line change
@@ -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');
})
});

0 comments on commit 367357d

Please sign in to comment.