File tree 1 file changed +25
-10
lines changed 1 file changed +25
-10
lines changed Original file line number Diff line number Diff line change @@ -40,22 +40,37 @@ describe('Search Plugin Tests', function() {
40
40
const docsifyInitConfig = {
41
41
markdown : {
42
42
homepage : `
43
- # Hello World
43
+ # Hello World
44
+
45
+ This is the homepage.
46
+ ` ,
47
+ sidebar : `
48
+ - [Home page](/)
49
+ - [GitHub Pages](github)
50
+ ` ,
51
+ } ,
52
+ routes : {
53
+ '/github.md' : `
54
+ # GitHub Pages
44
55
45
- This is the homepage .
56
+ This is the GitHub Pages .
46
57
47
- ## Test ignore title <!-- {docsify-ignore} -->
58
+ ## GitHub Pages ignore1 <!-- {docsify-ignore} -->
48
59
49
- This is the test ignore title.
50
- ` ,
60
+ There're three places to populate your docs for your Github repository1.
61
+
62
+ ## GitHub Pages ignore2 {docsify-ignore}
63
+
64
+ There're three places to populate your docs for your Github repository2.
65
+ ` ,
51
66
} ,
52
67
scriptURLs : [ '/lib/plugins/search.min.js' ] ,
53
- styleURLs : [ '/lib/themes/vue.css' ] ,
54
68
} ;
55
69
await docsifyInit ( docsifyInitConfig ) ;
56
- await page . fill ( 'input[type=search]' , 'Test ignore title' ) ;
57
- expect ( await page . innerText ( '.results-panel h2' ) ) . toEqual (
58
- 'Test ignore title'
59
- ) ;
70
+ await page . fill ( 'input[type=search]' , 'repository1' ) ;
71
+ await expect ( page ) . toEqualText ( '.results-panel h2' , 'GitHub Pages ignore1' ) ;
72
+ await page . click ( '.clear-button' ) ;
73
+ await page . fill ( 'input[type=search]' , 'repository2' ) ;
74
+ await expect ( page ) . toEqualText ( '.results-panel h2' , 'GitHub Pages ignore2' ) ;
60
75
} ) ;
61
76
} ) ;
You can’t perform that action at this time.
0 commit comments