Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
peterMuriuki committed Feb 11, 2025
1 parent 290c103 commit 94e12e3
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { CreateEditUser, practitionerUpdater, getPractitioner, getPractitionerRo
import { Provider } from 'react-redux';
import { store } from '@opensrp/store';
import nock from 'nock';
import { cleanup, fireEvent, render } from '@testing-library/react';
import { screen, cleanup, fireEvent, render } from '@testing-library/react';
import { waitFor } from '@testing-library/dom';
import { authenticateUser } from '@onaio/session-reducer';
import fetch from 'jest-fetch-mock';
Expand Down Expand Up @@ -247,6 +247,13 @@ test('renders correctly for new user', async () => {
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
userEvent.type(usernameInput!, 'flopo');

//set password
const passwordInput = screen.getByLabelText('Password');
userEvent.type(passwordInput, 'passwoord!!');
// confirm set password
const confirmPasswordInput = screen.getByLabelText('Confirm Password');
userEvent.type(confirmPasswordInput, 'passwoord!!');

const submitButton = document.querySelector('button[type="submit"]');

// find antd Select with id 'fhirCoreAppId' in the 'Form' component
Expand Down

0 comments on commit 94e12e3

Please sign in to comment.