Skip to content

Commit

Permalink
fix: update tests with new sign in button text
Browse files Browse the repository at this point in the history
  • Loading branch information
paulschreiber committed Oct 17, 2023
1 parent 987fc8e commit a4b18b4
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/account/components/AccountLogin.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,12 @@ test('AccountLogin: Display buttons', async () => {
})
);
await render(<AccountLogin />);
expect(screen.getByText('Continue with Google')).toBeInTheDocument();
expect(screen.getByText('Continue with Google')).toHaveAttribute(
expect(screen.getByText('Sign in with Google')).toBeInTheDocument();
expect(screen.getByText('Sign in with Google')).toHaveAttribute(
'href',
`google.url?param=value`
);
expect(screen.getByText('Continue with Apple')).toBeInTheDocument();
expect(screen.getByText('Sign in with Apple')).toBeInTheDocument();
});

test('AccountLogin: Add referrer', async () => {
Expand All @@ -77,14 +77,14 @@ test('AccountLogin: Add referrer', async () => {
})
);
await render(<AccountLogin />);
expect(screen.getByText('Continue with Google')).toBeInTheDocument();
expect(screen.getByText('Sign in with Google')).toBeInTheDocument();
const state = `account%3FreferrerBase64%3D${btoa(referrer)}`;
expect(screen.getByText('Continue with Google')).toHaveAttribute(
expect(screen.getByText('Sign in with Google')).toHaveAttribute(
'href',
`google.url?param=value&state=${state}`
);
expect(screen.getByText('Continue with Apple')).toBeInTheDocument();
expect(screen.getByText('Continue with Apple')).toHaveAttribute(
expect(screen.getByText('Sign in with Apple')).toBeInTheDocument();
expect(screen.getByText('Sign in with Apple')).toHaveAttribute(
'href',
`apple.url?param=value&state=${state}`
);
Expand Down

0 comments on commit a4b18b4

Please sign in to comment.