Skip to content

Commit 9ed2c45

Browse files
committed
Update Redoc sideNavStyle
Fix cypress tests
1 parent df17256 commit 9ed2c45

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

daikoku/javascript/cypress/e2e/admin.spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ describe('teams page', () => {
5252
.visit('http://localhost:9000/settings/settings/general')
5353
.get('.navbar-companion .block__entry__link').contains('Teams').click()
5454
.url().should('include', '/settings/teams')
55-
.get('.avatar-with-action').should('have.length', 6)
55+
.get('.avatar-with-action:not(.new-team-button)').should('have.length', 6)
5656
.visit('http://localhost:9000/settings/teams/consumers/members')
5757
.get('.avatar-with-action').should('have.length', 1);
5858
});

daikoku/javascript/src/components/frontend/api/ApiRedoc.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { useContext } from 'react';
22
import { useSelector } from 'react-redux';
3-
import { RedocStandalone } from 'redoc';
3+
import { RedocStandalone, SideNavStyleEnum } from 'redoc';
44

55
import { ModalContext } from '../../../contexts';
66
import { I18nContext } from '../../../core';
@@ -43,6 +43,6 @@ export function ApiRedoc(props: ApiRedocProps) {
4343
})
4444
return <></>
4545
} else {
46-
return <RedocStandalone specUrl={props.swaggerUrl} options={{ downloadFileName, ...(props.swaggerConf?.additionalConf || {}) }} />
46+
return <RedocStandalone specUrl={props.swaggerUrl} options={{ downloadFileName, pathInMiddlePanel: true, sideNavStyle: SideNavStyleEnum.PathOnly, ...(props.swaggerConf?.additionalConf || {}) }} />
4747
}
4848
}

0 commit comments

Comments
 (0)