Skip to content

Commit

Permalink
test: fix cannot search list content (#1367)
Browse files Browse the repository at this point in the history
Co-authored-by: 沈唁 <52o@qq52o.cn>
  • Loading branch information
Koooooo-7 and sy-records committed Sep 4, 2020
1 parent 8d17dcb commit 14fdbd4
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');
})
});

1 comment on commit 14fdbd4

@vercel
Copy link

@vercel vercel bot commented on 14fdbd4 Sep 4, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.