Skip to content
Closed
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 @@ -974,7 +974,7 @@ test('restores a deleted filter via the "Restore filter" button', async () => {

const filterContainer = screen.getByTestId('filter-title-container');
const firstTab = within(filterContainer).getAllByRole('tab')[0];
fireEvent.click(within(firstTab).getByRole('button', { name: /delete/i }));
fireEvent.click(within(firstTab).getByRole('button', { name: /remove filter/i }));

expect(
await screen.findByText(/you have removed this filter/i),
Expand Down Expand Up @@ -1009,7 +1009,7 @@ test('undoes a filter deletion via the sidebar "Undo?" link', async () => {

const filterContainer = screen.getByTestId('filter-title-container');
const firstTab = within(filterContainer).getAllByRole('tab')[0];
fireEvent.click(within(firstTab).getByRole('button', { name: /delete/i }));
fireEvent.click(within(firstTab).getByRole('button', { name: /remove filter/i }));

const undoButton = await screen.findByTestId('undo-button');
expect(undoButton).toHaveTextContent(/undo\?/i);
Expand Down
Loading