File tree 4 files changed +24
-7
lines changed
4 files changed +24
-7
lines changed Original file line number Diff line number Diff line change @@ -91,3 +91,6 @@ REVISION
91
91
.yarn /
92
92
package-lock.json
93
93
yarn.lock
94
+
95
+ cypress /screenshots
96
+ cypress /videos
Original file line number Diff line number Diff line change 1
1
{
2
2
"video" : false ,
3
3
"e2e" : {
4
+ "chromeWebSecurity" : false ,
4
5
"baseUrl" : " http://localhost:5000" ,
5
6
"integrationFolder" : " cypress/e2e" ,
6
7
"testFiles" : " **/*.cy.*" ,
Original file line number Diff line number Diff line change 1
1
describe ( 'Smoke Test' , ( ) => {
2
- it ( 'compiles the guide page' , ( ) => {
2
+ beforeEach ( ( ) => {
3
3
cy . visit ( '/guide/' ) ;
4
+ cy . get ( 'a[href="/api/animal.html"]' ) . as ( 'firstSectionLink' ) ;
5
+ } ) ;
6
+
7
+ it ( 'compiles the guide page' , ( ) => {
4
8
cy . contains ( 'Getting Started' ) ;
5
9
} ) ;
6
10
7
- // it('compiles the playground page', () => {
8
- // cy.visit('/playground/');
9
- // cy.contains('Playground under construction');
10
- // });
11
+ it ( 'renders this last code example in the code' , ( ) => {
12
+ // Click on any section in the sidebar
13
+ cy . get ( '@firstSectionLink' )
14
+ . click ( )
15
+ // Make sure the number of code examples is the same between reloads
16
+ . get ( '.container pre code' )
17
+ . then ( ( $codeBlocks ) => {
18
+ // Trigger a reload
19
+ cy . reload ( )
20
+ // Give the runtime a chance to update/fail
21
+ . wait ( 500 )
22
+ . get ( '.container pre code' )
23
+ . should ( 'have.length' , $codeBlocks . length ) ;
24
+ } ) ;
25
+ } ) ;
11
26
} ) ;
Original file line number Diff line number Diff line change @@ -102,8 +102,6 @@ async function build(): Promise<void> {
102
102
<!-- This file is automatically generated. -->
103
103
<!-- Run '${ scriptCommand } ' to update -->
104
104
105
- [[toc]]
106
-
107
105
::: v-pre
108
106
109
107
${ toBlock ( module . comment ) }
You can’t perform that action at this time.
0 commit comments