Update tests
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
parent
34aee08a09
commit
ed22df7a51
2 changed files with 4 additions and 4 deletions
|
@ -150,7 +150,7 @@ const VerifySmsModal: React.FC<IVerifySmsModal> = ({ onClose }) => {
|
||||||
);
|
);
|
||||||
case Statuses.READY:
|
case Statuses.READY:
|
||||||
return (
|
return (
|
||||||
<FormGroup labelText={<FormattedMessage id='sms_verification.phone.label' defaultMessage='Phone Number' />}>
|
<FormGroup labelText={<FormattedMessage id='sms_verification.phone.label' defaultMessage='Phone number' />}>
|
||||||
<PhoneInput
|
<PhoneInput
|
||||||
value={phone}
|
value={phone}
|
||||||
onChange={onChange}
|
onChange={onChange}
|
||||||
|
|
|
@ -26,7 +26,7 @@ describe('<SmsVerification />', () => {
|
||||||
|
|
||||||
render(<SmsVerification />);
|
render(<SmsVerification />);
|
||||||
|
|
||||||
await userEvent.type(screen.getByLabelText('Phone Number'), '+1 (555) 555-5555');
|
await userEvent.type(screen.getByLabelText('Phone number'), '+1 (555) 555-5555');
|
||||||
await waitFor(() => {
|
await waitFor(() => {
|
||||||
fireEvent.submit(
|
fireEvent.submit(
|
||||||
screen.getByRole('button', { name: 'Next' }), {
|
screen.getByRole('button', { name: 'Next' }), {
|
||||||
|
@ -53,7 +53,7 @@ describe('<SmsVerification />', () => {
|
||||||
|
|
||||||
render(<SmsVerification />);
|
render(<SmsVerification />);
|
||||||
|
|
||||||
await userEvent.type(screen.getByLabelText('Phone Number'), '+1 (555) 555-5555');
|
await userEvent.type(screen.getByLabelText('Phone number'), '+1 (555) 555-5555');
|
||||||
await waitFor(() => {
|
await waitFor(() => {
|
||||||
fireEvent.submit(
|
fireEvent.submit(
|
||||||
screen.getByRole('button', { name: 'Next' }), {
|
screen.getByRole('button', { name: 'Next' }), {
|
||||||
|
@ -87,7 +87,7 @@ describe('<SmsVerification />', () => {
|
||||||
it('renders errors', async() => {
|
it('renders errors', async() => {
|
||||||
render(<SmsVerification />);
|
render(<SmsVerification />);
|
||||||
|
|
||||||
await userEvent.type(screen.getByLabelText('Phone Number'), '+1 (555) 555-5555');
|
await userEvent.type(screen.getByLabelText('Phone number'), '+1 (555) 555-5555');
|
||||||
await waitFor(() => {
|
await waitFor(() => {
|
||||||
fireEvent.submit(
|
fireEvent.submit(
|
||||||
screen.getByRole('button', { name: 'Next' }), {
|
screen.getByRole('button', { name: 'Next' }), {
|
||||||
|
|
Loading…
Reference in a new issue