Skip to content

test: fix cannot search list content #1367

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Sep 4, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
[add test] add test for PR #1361.
  • Loading branch information
Koooooo-7 committed Sep 3, 2020
commit 367357d2ccd6fb8d7dce2950bdaec98b60eeeb89
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');
})
});