Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Cover partners page filter-remover
  • Loading branch information
RoyEJohnson committed Aug 6, 2025
commit 71cbd61111511ae2baf06aa56f05b74a6e138e3d
3 changes: 3 additions & 0 deletions test/src/pages/partners/partners.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -311,10 +311,13 @@ describe('partners full page', () => {
);

const buttons = screen.getAllByRole('checkbox');
const label = buttons[0].getAttribute('aria-label');
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A little Partner page functionality that didn't have test coverage: filter remover


await user.click(buttons[0]);
await user.click(await screen.findByRole('button', {name: 'close'}));
await screen.findByRole('button', {name: 'Filters (1)'});
await user.click(screen.getByRole('button', {name: `remove filter for ${label}`}));
expect(screen.queryByRole('button', {name: `remove filter for ${label}`})).toBeNull();
});
// This one has to be last; something doesn't reset
it('uses default infoLinkText when none is provided', async () => {
Expand Down