Skip to content

Commit cd8bf31

Browse files
ORDERED TEST
1 parent cd6039b commit cd8bf31

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

contentcuration/contentcuration/frontend/administration/pages/Channels/__tests__/channelActionsDropdown.spec.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -96,14 +96,6 @@ describe('channelActionsDropdown', () => {
9696
});
9797

9898
describe('menu visibility', () => {
99-
it('should show correct menu items for deleted channel', () => {
100-
renderComponent({ channelProps: { deleted: true } });
101-
expect(screen.getByText('Restore')).toBeVisible();
102-
expect(screen.getByText('Delete permanently')).toBeVisible();
103-
expect(screen.queryByText('Download PDF')).not.toBeInTheDocument();
104-
expect(screen.queryByText('Make public')).not.toBeInTheDocument();
105-
});
106-
10799
it('should show correct menu items for live private channel', () => {
108100
renderComponent({ channelProps: { public: false, deleted: false } });
109101
expect(screen.getByText('Download PDF')).toBeVisible();
@@ -121,6 +113,14 @@ describe('channelActionsDropdown', () => {
121113
expect(screen.queryByText('Delete channel')).not.toBeInTheDocument();
122114
expect(screen.queryByText('Restore')).not.toBeInTheDocument();
123115
});
116+
117+
it('should show correct menu items for deleted channel', () => {
118+
renderComponent({ channelProps: { deleted: true } });
119+
expect(screen.getByText('Restore')).toBeVisible();
120+
expect(screen.getByText('Delete permanently')).toBeVisible();
121+
expect(screen.queryByText('Download PDF')).not.toBeInTheDocument();
122+
expect(screen.queryByText('Make public')).not.toBeInTheDocument();
123+
});
124124
});
125125

126126
describe('restore channel dialog', () => {

0 commit comments

Comments
 (0)