Rename "back to filters" label (#2604)

This commit is contained in:
Winnie Chiu 2022-09-18 20:19:22 +08:00 committed by GitHub
parent 6d448c0322
commit 3bfdc98cc9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -58,7 +58,7 @@ const SavedFilters: FC<Props> = ({
return (
<>
<S.BackToCustomText onClick={onGoBack}>
Back To custom filters
Back To create filters
</S.BackToCustomText>
<S.SavedFiltersContainer>
<S.CreatedFilter>Saved filters</S.CreatedFilter>

View file

@ -45,7 +45,7 @@ describe('SavedFilter Component', () => {
it('should check on go back button click', () => {
const onGoBackMock = jest.fn();
setUpComponent({ onGoBack: onGoBackMock });
userEvent.click(screen.getByText(/back to custom filters/i));
userEvent.click(screen.getByText(/back to create filters/i));
expect(onGoBackMock).toHaveBeenCalled();
});