File tree Expand file tree Collapse file tree 5 files changed +17
-26
lines changed Expand file tree Collapse file tree 5 files changed +17
-26
lines changed Original file line number Diff line number Diff line change @@ -95,6 +95,17 @@ export const StandaloneLayout = ({
9595 ] ;
9696
9797 docsDropdownItems = [
98+ ! IS_COMMUNITY && (
99+ < DropdownItem
100+ key = 'documentation'
101+ component = {
102+ < ExternalLink
103+ href = { UI_DOCS_URL }
104+ variant = 'menu'
105+ > { t `Documentation` } </ ExternalLink >
106+ }
107+ />
108+ ) ,
98109 < DropdownItem
99110 key = 'customer_support'
100111 component = {
@@ -137,7 +148,7 @@ export const StandaloneLayout = ({
137148 ) ,
138149 IS_COMMUNITY && (
139150 < DropdownItem
140- key = 'communication '
151+ key = 'community '
141152 component = {
142153 < ExternalLink
143154 href = 'https://ansible.readthedocs.io/projects/galaxy-ng/en/latest/community/userguide/'
Original file line number Diff line number Diff line change @@ -134,14 +134,6 @@ function standaloneMenu() {
134134 alternativeUrls : [ altPath ( Paths . roleEdit ) ] ,
135135 } ) ,
136136 ] ) ,
137- menuItem ( t `Documentation` , {
138- url : UI_DOCS_URL ,
139- external : true ,
140- condition : ( { settings, user } ) =>
141- ! IS_COMMUNITY &&
142- ( settings . GALAXY_ENABLE_UNAUTHENTICATED_COLLECTION_ACCESS ||
143- ! user . is_anonymous ) ,
144- } ) ,
145137 menuItem ( t `Documentation` , {
146138 url : 'https://ansible.readthedocs.io/projects/galaxy-ng/en/latest/community/userguide/' ,
147139 external : true ,
Original file line number Diff line number Diff line change @@ -8,11 +8,9 @@ describe('view-only mode - with download', () => {
88 it ( 'has limited menu, nav' , ( ) => {
99 cy . visit ( uiPrefix ) ;
1010
11- [
12- 'Collections > Collections' ,
13- 'Collections > Namespaces' ,
14- 'Documentation' ,
15- ] . forEach ( ( item ) => cy . menuPresent ( item ) ) ;
11+ [ 'Collections > Collections' , 'Collections > Namespaces' ] . forEach ( ( item ) =>
12+ cy . menuPresent ( item ) ,
13+ ) ;
1614
1715 [
1816 'Collections > Repositories' ,
Original file line number Diff line number Diff line change @@ -19,6 +19,8 @@ describe('Documentation dropdown', () => {
1919 . should ( 'have.attr' , 'href' )
2020 . and ( 'contain' , 'https://www.ansible.com/resources/webinars-training' ) ;
2121
22+ cy . get ( '.pf-v5-c-dropdown__menu' ) . contains ( 'Documentation' ) ;
23+
2224 cy . get ( '.pf-v5-c-dropdown__menu' ) . contains ( 'About' ) ;
2325 } ) ;
2426
Original file line number Diff line number Diff line change @@ -13,7 +13,6 @@ describe('Hub Menu Tests', () => {
1313 'Execution Environments > Remote Registries' ,
1414 'Task Management' ,
1515 'Signature Keys' ,
16- 'Documentation' ,
1716 'User Access > Users' ,
1817 'User Access > Groups' ,
1918 'User Access > Roles' ,
@@ -38,7 +37,6 @@ describe('Hub Menu Tests', () => {
3837 'Collections > Collections' ,
3938 'Collections > Namespaces' ,
4039 'Collections > Repositories' ,
41- 'Documentation' ,
4240 'Execution Environments > Execution Environments' ,
4341 'Execution Environments > Remote Registries' ,
4442 'Signature Keys' ,
@@ -58,15 +56,5 @@ describe('Hub Menu Tests', () => {
5856 visibleMenuItems . forEach ( ( item ) => cy . menuPresent ( item ) ) ;
5957 missingMenuItems . forEach ( ( item ) => cy . menuMissing ( item ) ) ;
6058 } ) ;
61-
62- it ( 'has Documentation tab' , ( ) => {
63- cy . login ( username , password ) ;
64-
65- cy . menuPresent ( 'Documentation' ) . should (
66- 'have.attr' ,
67- 'href' ,
68- 'https://docs.redhat.com/documentation/en-us/red_hat_ansible_automation_platform/' ,
69- ) ;
70- } ) ;
7159 } ) ;
7260} ) ;
You can’t perform that action at this time.
0 commit comments