-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Can't search homepage content (#1391)
* fix: Can't search homepage content * fix: when pathNamespaces does not exist * add test * update test to fix windows ci
- Loading branch information
1 parent
ae45b32
commit 25bc9b7
Showing
2 changed files
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
const docsifyInit = require('../helpers/docsify-init'); | ||
|
||
// Suite | ||
// ----------------------------------------------------------------------------- | ||
describe('Sidebar Tests', function() { | ||
// Tests | ||
// --------------------------------------------------------------------------- | ||
test('search readme', async () => { | ||
await docsifyInit(); | ||
await page.goto(DOCS_URL + '/#/quickstart'); | ||
await page.fill('input[type=search]', 'Please consider donating'); | ||
expect( | ||
await page.innerText('.results-panel > .matching-post > a > h2') | ||
).toEqual('Donate'); | ||
}); | ||
}); |
25bc9b7
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs: