File tree Expand file tree Collapse file tree 1 file changed +1
-20
lines changed
src/test/cypress/integration Expand file tree Collapse file tree 1 file changed +1
-20
lines changed Original file line number Diff line number Diff line change 22/// <reference types="cypress" />
33
44context ( 'Function Documentation' , ( ) => {
5- before ( ( ) => {
6- // Generate function documentation before running tests
7- cy . timeout ( 10000 ) ;
8- cy . request ( {
9- url : '/regenerate' ,
10- auth : {
11- user : 'admin' ,
12- password : ''
13- }
14- } )
15- . then ( ( response ) => {
16- expect ( response ) . to . have . property ( 'status' )
17- expect ( response . status ) . to . equal ( 200 )
18- expect ( response . body ) . to . have . property ( 'status' )
19- expect ( response . body . status ) . to . equal ( 'ok' )
20- } )
21- // .its('body')
22- // .should('equal', "{ status: 'ok', message: 'Scan completed! ' }")
23- } )
24-
255 beforeEach ( ( ) => {
266 cy . visit ( '' )
277 } )
@@ -77,4 +57,5 @@ context('Function Documentation', () => {
7757 . should ( 'exist' )
7858 } )
7959 } )
60+
8061} )
You can’t perform that action at this time.
0 commit comments