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 Nov 28, 2024
1 parent de0c9c7 commit 6a00e68
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 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

0 comments on commit 6a00e68

Please sign in to comment.