Skip to content

Commit 64b8646

Browse files
Updated tests
1 parent 89e1c81 commit 64b8646

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

contentcuration/contentcuration/frontend/channelList/views/ChannelSet/__tests__/StudioCollectionsTable.spec.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ describe('StudioCollectionsTable', () => {
134134
const infoLink = screen.getByText('Learn about collections');
135135
await user.click(infoLink);
136136

137-
expect(screen.getByText('About collections')).toBeInTheDocument();
137+
expect(screen.getByRole('heading', { name: 'About collections' })).toBeInTheDocument();
138138

139139
const modal = screen.getByRole('dialog');
140140
expect(
@@ -158,7 +158,7 @@ describe('StudioCollectionsTable', () => {
158158
const user = userEvent.setup();
159159
const { router } = await renderComponent();
160160

161-
const optionsButtons = screen.getAllByLabelText(/options/i);
161+
const optionsButtons = screen.getAllByRole('button', { name: /options/i });
162162
await user.click(optionsButtons[0]);
163163

164164
const editOption = screen.getByText('Edit collection');
@@ -172,7 +172,7 @@ describe('StudioCollectionsTable', () => {
172172
const user = userEvent.setup();
173173
await renderComponent();
174174

175-
const optionsButtons = screen.getAllByLabelText(/options/i);
175+
const optionsButtons = screen.getAllByRole('button', { name: /options/i });
176176
await user.click(optionsButtons[0]);
177177

178178
const deleteOption = screen.getByText('Delete collection');

0 commit comments

Comments
 (0)