File tree 2 files changed +19
-0
lines changed
2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -236,6 +236,9 @@ export function init(config, vm) {
236
236
namespaceSuffix = matches [ 0 ] ;
237
237
}
238
238
}
239
+ paths . unshift ( namespaceSuffix + '/' ) ;
240
+ } else {
241
+ paths . unshift ( '/' ) ;
239
242
}
240
243
241
244
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