File tree Expand file tree Collapse file tree 1 file changed +17
-3
lines changed Expand file tree Collapse file tree 1 file changed +17
-3
lines changed Original file line number Diff line number Diff line change @@ -13,12 +13,26 @@ describe('Sidebar Tests', function() {
13
13
14
14
This is the homepage.
15
15
`,
16
+ sidebar: `
17
+ - [Home page](/)
18
+ - [Test Page](test)
19
+ `,
20
+ },
21
+ routes: {
22
+ '/test.md': `
23
+ # Test Page
24
+
25
+ This is a custom route.
26
+ `,
16
27
},
17
28
scriptURLs: ['/lib/plugins/search.min.js'],
18
- styleURLs: ['/lib/themes/vue.css'],
19
29
};
30
+
20
31
await docsifyInit(docsifyInitConfig);
21
- await page.fill('input[type=search]', 'Hello');
22
- expect(await page.innerText('.results-panel h2')).toEqual('Hello World');
32
+ await page.fill('input[type=search]', 'hello');
33
+ await expect(page).toEqualText('.results-panel h2', 'Hello World');
34
+ await page.click('.clear-button');
35
+ await page.fill('input[type=search]', 'test');
36
+ await expect(page).toEqualText('.results-panel h2', 'Test Page');
23
37
});
24
38
});
You can’t perform that action at this time.
0 commit comments