File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,13 +4,14 @@ import { Options } from 'cypress-axe';
44
55beforeEach ( ( ) => {
66 // Must login as an Admin to see the page
7+ cy . intercept ( 'GET' , '/server/actuator/health' ) . as ( 'status' ) ;
8+ cy . intercept ( 'GET' , '/server/actuator/info' ) . as ( 'info' ) ;
79 cy . visit ( '/health' ) ;
810 cy . loginViaForm ( Cypress . env ( 'DSPACE_TEST_ADMIN_USER' ) , Cypress . env ( 'DSPACE_TEST_ADMIN_PASSWORD' ) ) ;
911} ) ;
1012
1113describe ( 'Health Page > Status Tab' , ( ) => {
1214 it ( 'should pass accessibility tests' , ( ) => {
13- cy . intercept ( 'GET' , '/server/actuator/health' ) . as ( 'status' ) ;
1415 cy . wait ( '@status' ) ;
1516
1617 cy . get ( 'a[data-test="health-page.status-tab"]' ) . click ( ) ;
@@ -36,7 +37,6 @@ describe('Health Page > Status Tab', () => {
3637
3738describe ( 'Health Page > Info Tab' , ( ) => {
3839 it ( 'should pass accessibility tests' , ( ) => {
39- cy . intercept ( 'GET' , '/server/actuator/info' ) . as ( 'info' ) ;
4040 cy . wait ( '@info' ) ;
4141
4242 cy . get ( 'a[data-test="health-page.info-tab"]' ) . click ( ) ;
You can’t perform that action at this time.
0 commit comments