File tree 5 files changed +17
-26
lines changed
5 files changed +17
-26
lines changed Original file line number Diff line number Diff line change @@ -95,6 +95,17 @@ export const StandaloneLayout = ({
95
95
] ;
96
96
97
97
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
+ ) ,
98
109
< DropdownItem
99
110
key = 'customer_support'
100
111
component = {
@@ -137,7 +148,7 @@ export const StandaloneLayout = ({
137
148
) ,
138
149
IS_COMMUNITY && (
139
150
< DropdownItem
140
- key = 'communication '
151
+ key = 'community '
141
152
component = {
142
153
< ExternalLink
143
154
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() {
134
134
alternativeUrls : [ altPath ( Paths . roleEdit ) ] ,
135
135
} ) ,
136
136
] ) ,
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
- } ) ,
145
137
menuItem ( t `Documentation` , {
146
138
url : 'https://ansible.readthedocs.io/projects/galaxy-ng/en/latest/community/userguide/' ,
147
139
external : true ,
Original file line number Diff line number Diff line change @@ -8,11 +8,9 @@ describe('view-only mode - with download', () => {
8
8
it ( 'has limited menu, nav' , ( ) => {
9
9
cy . visit ( uiPrefix ) ;
10
10
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
+ ) ;
16
14
17
15
[
18
16
'Collections > Repositories' ,
Original file line number Diff line number Diff line change @@ -19,6 +19,8 @@ describe('Documentation dropdown', () => {
19
19
. should ( 'have.attr' , 'href' )
20
20
. and ( 'contain' , 'https://www.ansible.com/resources/webinars-training' ) ;
21
21
22
+ cy . get ( '.pf-v5-c-dropdown__menu' ) . contains ( 'Documentation' ) ;
23
+
22
24
cy . get ( '.pf-v5-c-dropdown__menu' ) . contains ( 'About' ) ;
23
25
} ) ;
24
26
Original file line number Diff line number Diff line change @@ -13,7 +13,6 @@ describe('Hub Menu Tests', () => {
13
13
'Execution Environments > Remote Registries' ,
14
14
'Task Management' ,
15
15
'Signature Keys' ,
16
- 'Documentation' ,
17
16
'User Access > Users' ,
18
17
'User Access > Groups' ,
19
18
'User Access > Roles' ,
@@ -38,7 +37,6 @@ describe('Hub Menu Tests', () => {
38
37
'Collections > Collections' ,
39
38
'Collections > Namespaces' ,
40
39
'Collections > Repositories' ,
41
- 'Documentation' ,
42
40
'Execution Environments > Execution Environments' ,
43
41
'Execution Environments > Remote Registries' ,
44
42
'Signature Keys' ,
@@ -58,15 +56,5 @@ describe('Hub Menu Tests', () => {
58
56
visibleMenuItems . forEach ( ( item ) => cy . menuPresent ( item ) ) ;
59
57
missingMenuItems . forEach ( ( item ) => cy . menuMissing ( item ) ) ;
60
58
} ) ;
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
- } ) ;
71
59
} ) ;
72
60
} ) ;
You can’t perform that action at this time.
0 commit comments