Skip to content

Commit

Permalink
test(clerk-js): Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
octoper committed Dec 15, 2023
1 parent b7aa7e6 commit 84c6beb
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ describe('SignUpContinue', () => {
});
render(<SignUpContinue />, { wrapper });

const signInLink = screen.getByText('Have an account?').nextElementSibling;
const signInLink = screen.getByText('Already have an account?').nextElementSibling;
expect(signInLink?.textContent).toBe('Sign in');
expect(signInLink?.tagName.toUpperCase()).toBe('A');
expect(signInLink?.getAttribute('href')).toMatch(fixtures.environment.displayConfig.signInUrl);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ describe('SignUpStart', () => {
});
render(<SignUpStart />, { wrapper });

const signInLink = screen.getByText('Have an account?').nextElementSibling;
const signInLink = screen.getByText('Already have an account?').nextElementSibling;
expect(signInLink?.textContent).toBe('Sign in');
expect(signInLink?.tagName.toUpperCase()).toBe('A');
expect(signInLink?.getAttribute('href')).toMatch(fixtures.environment.displayConfig.signInUrl);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ describe('SignUpVerifyEmail', () => {

render(<SignUpVerifyEmail />, { wrapper });
screen.getByText(/Verify your email/i);
screen.getByText(/to continue to TestApp/i);
screen.getByText(/Enter the verification code sent to your email/i);
});

it('clicking on the edit icon navigates to the previous route', async () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ describe('SignUpVerifyPhone', () => {
});
render(<SignUpVerifyPhone />, { wrapper });
screen.getByText(/Verify your phone/i);
screen.getByText(/to continue to TestApp/i);
screen.getByText(/Enter the verification code sent to your phone/i);
});

it('clicking on the edit icon navigates to the previous route', async () => {
Expand Down

0 comments on commit 84c6beb

Please sign in to comment.