Skip to content

Commit

Permalink
modified test file
Browse files Browse the repository at this point in the history
  • Loading branch information
Muppasanipraneeth committed Dec 22, 2024
1 parent b163005 commit 378adea
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ describe('QueueServiceForm', () => {

const submitButton = screen.getByText('Save');
await user.click(submitButton);
expect(screen.getByText('Missing queue name')).toBeInTheDocument();
expect(screen.getByText('Queue name is required')).toBeInTheDocument();
});

it('should submit the form when all fields are filled', async () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,12 @@ const createQueueServiceSchema = (t: TFunction) =>
});

type QueueServiceFormData = z.infer<ReturnType<typeof createQueueServiceSchema>>;
const QueueServiceSchema = createQueueServiceSchema(t);

const QueueServiceForm: React.FC<DefaultWorkspaceProps> = ({ closeWorkspace }) => {
const { t } = useTranslation();
const { queueConcepts } = useServiceConcepts();
const { queueLocations } = useQueueLocations();
const QueueServiceSchema = createQueueServiceSchema(t);

const {
control,
Expand Down
5 changes: 1 addition & 4 deletions packages/esm-service-queues-app/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,9 @@
"medications": "Medications",
"minuteFormatted": "{{minutes}} minute(s)",
"minutes": "Minutes",
"missingLocation": "Missing location",
"missingQueueName": "Missing queue name",
"missingQueueRoom": "Please select a queue room",
"missingQueueRoomName": "Missing queue room name",
"missingQueueRoomService": "Missing queue room service",
"missingService": "Missing service",
"modifyDefaultValue": "Modify default value",
"movePatientToNextService": "Move patient to the next service?",
"moveToNextService": "Move to next service",
Expand All @@ -96,7 +93,6 @@
"noColumnsDefined": "No table columns defined. Check Configuration",
"noEncountersFound": "No encounters found",
"noLastEncounter": "There is no last encounter to display for this patient",
"noLocationsAvailable": "No locations available",
"noMedicationsFound": "No medications found",
"noNotesFound": "No notes found",
"noPatientsToDisplay": "No patients to display",
Expand Down Expand Up @@ -179,6 +175,7 @@
"room": "Room",
"rRate": "R. Rate",
"save": "Save",
"saving": "Saving",
"scheduledAppointmentsList": "Scheduled appointments patient list",
"scheduledToday": "Scheduled for today",
"searchThisList": "Search this list",
Expand Down

0 comments on commit 378adea

Please sign in to comment.