File tree Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -226,6 +226,9 @@ export function init(config, vm) {
226226 namespaceSuffix = matches [ 0 ] ;
227227 }
228228 }
229+ paths . unshift ( namespaceSuffix + '/' ) ;
230+ } else {
231+ paths . unshift ( '/' ) ;
229232 }
230233
231234 const expireKey = resolveExpireKey ( config . namespace ) + namespaceSuffix ;
Original file line number Diff line number Diff line change 1+ const docsifyInit = require ( '../helpers/docsify-init' ) ;
2+
3+ // Suite
4+ // -----------------------------------------------------------------------------
5+ describe ( 'Sidebar Tests' , function ( ) {
6+ // Tests
7+ // ---------------------------------------------------------------------------
8+ test ( 'search readme' , async ( ) => {
9+ await docsifyInit ( ) ;
10+ await page . goto ( DOCS_URL + '/#/quickstart' ) ;
11+ await page . fill ( 'input[type=search]' , 'Please consider donating' ) ;
12+ expect (
13+ await page . innerText ( '.results-panel > .matching-post > a > h2' )
14+ ) . toEqual ( 'Donate' ) ;
15+ } ) ;
16+ } ) ;
You can’t perform that action at this time.
0 commit comments