Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { channels as factory } from "api/test-utils/factories"
import { ThemeProvider } from "ol-components"

describe("ChannelMenu", () => {
it("Includes links to channel management and widget management", async () => {
it("Includes links to channel management", async () => {
const channel = factory.channel()
setMockResponse.get(
urls.channels.details(channel.channel_type, channel.name),
Expand All @@ -29,10 +29,5 @@ describe("ChannelMenu", () => {
expect((item1 as HTMLAnchorElement).href).toContain(
`/c/${channel.channel_type}/${channel.name}/manage`,
)

const item2 = screen.getByRole("menuitem", { name: "Manage Widgets" })
expect((item2 as HTMLAnchorElement).href).toContain(
`/c/${channel.channel_type}/${channel.name}/manage/widgets`,
)
})
})
5 changes: 0 additions & 5 deletions frontends/mit-open/src/components/ChannelMenu/ChannelMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,6 @@ const ChannelMenu: React.FC<{ channelType: string; name: string }> = ({
label: "Channel Settings",
href: routes.makeChannelEditPath(channelType, name),
},
{
key: "widget",
label: "Manage Widgets",
href: routes.makeChannelManageWidgetsPath(channelType, name),
},
]
}, [channelType, name])
return (
Expand Down