Fix FilterPanel test: button text changed to 'Show Matching Listings'
The FilterPanel component's submit button was renamed from 'Apply Filters' to 'Show Matching Listings' but the test was not updated to match.
This commit is contained in:
parent
9b3d35669f
commit
04bda8c127
1 changed files with 1 additions and 1 deletions
|
|
@ -35,7 +35,7 @@ describe('FilterPanel', () => {
|
|||
const onSubmit = vi.fn();
|
||||
render(<FilterPanel {...defaultProps} onSubmit={onSubmit} />);
|
||||
|
||||
const applyBtn = screen.getByText('Apply Filters');
|
||||
const applyBtn = screen.getByText('Show Matching Listings');
|
||||
await user.click(applyBtn);
|
||||
|
||||
expect(onSubmit).toHaveBeenCalledWith('visualize', expect.objectContaining({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue