File tree Expand file tree Collapse file tree 2 files changed +1
-11
lines changed Expand file tree Collapse file tree 2 files changed +1
-11
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ import { channels as factory } from "api/test-utils/factories"
99import { ThemeProvider } from "ol-components"
1010
1111describe ( "ChannelMenu" , ( ) => {
12- it ( "Includes links to channel management and widget management " , async ( ) => {
12+ it ( "Includes links to channel management" , async ( ) => {
1313 const channel = factory . channel ( )
1414 setMockResponse . get (
1515 urls . channels . details ( channel . channel_type , channel . name ) ,
@@ -29,10 +29,5 @@ describe("ChannelMenu", () => {
2929 expect ( ( item1 as HTMLAnchorElement ) . href ) . toContain (
3030 `/c/${ channel . channel_type } /${ channel . name } /manage` ,
3131 )
32-
33- const item2 = screen . getByRole ( "menuitem" , { name : "Manage Widgets" } )
34- expect ( ( item2 as HTMLAnchorElement ) . href ) . toContain (
35- `/c/${ channel . channel_type } /${ channel . name } /manage/widgets` ,
36- )
3732 } )
3833} )
Original file line number Diff line number Diff line change @@ -17,11 +17,6 @@ const ChannelMenu: React.FC<{ channelType: string; name: string }> = ({
1717 label : "Channel Settings" ,
1818 href : routes . makeChannelEditPath ( channelType , name ) ,
1919 } ,
20- {
21- key : "widget" ,
22- label : "Manage Widgets" ,
23- href : routes . makeChannelManageWidgetsPath ( channelType , name ) ,
24- } ,
2520 ]
2621 } , [ channelType , name ] )
2722 return (
You can’t perform that action at this time.
0 commit comments