Skip to content

Commit

Permalink
fix/03-4118: Service queues patient list should not be in a 'widget' …
Browse files Browse the repository at this point in the history
…/ 'tile'
  • Loading branch information
jwnasambu committed Dec 2, 2024
1 parent de0c9c7 commit e7c1a3f
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/esm-service-queues-app/src/home.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ describe('Home Component', () => {
window.location = { pathname: '/some-path/screen' } as Location;

render(<Home />);
expect(screen.getByText(/patients currently in queue/i)).toBeInTheDocument();
expect(screen.getByText(/active visits/i)).toBeInTheDocument();

window.location = originalLocation;
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ function DefaultQueueTable() {
<Layer className={styles.container}>
<div className={styles.headerContainer}>
<div className={!isDesktop(layout) ? styles.tabletHeading : styles.desktopHeading}>
<h4>{t('patientsCurrentlyInQueue', 'Patients currently in queue')}</h4>
<h4>{t('activeVisits', 'Active visits')}</h4>
</div>
<div className={styles.headerButtons}>
<ExtensionSlot
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ describe('DefaultQueueTable', () => {
await screen.findByRole('table');

expect(screen.queryByRole('progressbar')).not.toBeInTheDocument();
expect(screen.getByText(/patients currently in queue/i)).toBeInTheDocument();
expect(screen.getByText(/active visits/i)).toBeInTheDocument();
expect(screen.getByText(/no patients to display/i)).toBeInTheDocument();
});

Expand All @@ -100,7 +100,7 @@ describe('DefaultQueueTable', () => {

await screen.findByRole('table');

expect(screen.getByText(/patients currently in queue/i)).toBeInTheDocument();
expect(screen.getByText(/active visits/i)).toBeInTheDocument();
expect(screen.queryByText(/no patients to display/i)).not.toBeInTheDocument();
expect(screen.getByRole('link', { name: /Brian Johnson/i })).toBeInTheDocument();
const john = screen.getByRole('link', { name: /Alice Johnson/i });
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
justify-content: space-between;
align-items: center;
padding: layout.$spacing-05;
background-color: $ui-background;
background-color: $ui-01;
}

.headerButtons {
Expand Down
1 change: 0 additions & 1 deletion packages/esm-service-queues-app/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,6 @@
"patientRemovedSuccessfully": "Paient removed from queue successfully",
"patientRequeued": "Patient has been requeued",
"patients": "Patients",
"patientsCurrentlyInQueue": "Patients currently in queue",
"personalDetails": "Personal Details",
"phoneNumber": "Phone number",
"pleaseSelectLocation": "Please select a location",
Expand Down

0 comments on commit e7c1a3f

Please sign in to comment.