Skip to content

Commit c977db5

Browse files
authored
(fix) O3-5601: Lowercase billing patient chart dashboard path (#709)
1 parent d39b89d commit c977db5

4 files changed

Lines changed: 14 additions & 14 deletions

File tree

e2e/specs/billing-dashboard.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ test.describe('Billing Dashboard workflow', () => {
5757
let billUuid: string;
5858

5959
await test.step('Given I have created and saved a bill', async () => {
60-
await page.goto(`patient/${patientUuid}/chart/Billing history`);
60+
await page.goto(`patient/${patientUuid}/chart/billing-history`);
6161

6262
const createBillButton = page.getByRole('button', { name: /launch bill form|add bill|create bill/i });
6363
await createBillButton.click();
@@ -227,7 +227,7 @@ test.describe('Billing Dashboard workflow', () => {
227227
let billUuid: string;
228228

229229
await test.step('Given a bill has been created for a patient (PENDING status)', async () => {
230-
await page.goto(`patient/${patientUuid}/chart/Billing history`);
230+
await page.goto(`patient/${patientUuid}/chart/billing-history`);
231231

232232
const createBillButton = page.getByRole('button', { name: /launch bill form|add bill|create bill/i });
233233
await createBillButton.click();

e2e/specs/billing-patient-chart.spec.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ test.describe('Billing: Patient Chart workflow', () => {
5151
let billUuid: string;
5252

5353
await test.step('When I navigate to the Billing history page', async () => {
54-
await page.goto(`patient/${patientUuid}/chart/Billing history`);
54+
await page.goto(`patient/${patientUuid}/chart/billing-history`);
5555
});
5656

5757
await test.step('And I launch the Create Bill form', async () => {
@@ -161,7 +161,7 @@ test.describe('Billing: Patient Chart workflow', () => {
161161
let billUuid: string;
162162

163163
await test.step('When I navigate to the patient billing history', async () => {
164-
await page.goto(`patient/${patientUuid}/chart/Billing history`);
164+
await page.goto(`patient/${patientUuid}/chart/billing-history`);
165165
});
166166

167167
await test.step('And I click the Launch bill form button', async () => {
@@ -217,7 +217,7 @@ test.describe('Billing: Patient Chart workflow', () => {
217217
});
218218

219219
await test.step('When I navigate to the patient billing history', async () => {
220-
await page.goto(`patient/${patientUuid}/chart/Billing history`);
220+
await page.goto(`patient/${patientUuid}/chart/billing-history`);
221221
});
222222

223223
await test.step('And I click the Launch bill form button', async () => {
@@ -249,7 +249,7 @@ test.describe('Billing: Patient Chart workflow', () => {
249249
const patientUuid = patient.uuid;
250250

251251
await test.step('When I navigate to the patient billing history', async () => {
252-
await page.goto(`patient/${patientUuid}/chart/Billing history`);
252+
await page.goto(`patient/${patientUuid}/chart/billing-history`);
253253
});
254254

255255
await test.step('And I click the Launch bill form button', async () => {
@@ -295,7 +295,7 @@ test.describe('Billing: Patient Chart workflow', () => {
295295
let partialAmount: number;
296296

297297
await test.step('Given I have created and saved a bill', async () => {
298-
await page.goto(`patient/${patientUuid}/chart/Billing history`);
298+
await page.goto(`patient/${patientUuid}/chart/billing-history`);
299299

300300
const createBillButton = page.getByRole('button', { name: /launch bill form|add bill|create bill/i });
301301
await createBillButton.click();
@@ -417,7 +417,7 @@ test.describe('Billing: Patient Chart workflow', () => {
417417
const expectedTotal = expectedServicePrice * quantity;
418418

419419
await test.step('When I navigate to the Billing history page', async () => {
420-
await page.goto(`patient/${patientUuid}/chart/Billing history`);
420+
await page.goto(`patient/${patientUuid}/chart/billing-history`);
421421
});
422422

423423
await test.step('And I launch the Create Bill form', async () => {
@@ -552,7 +552,7 @@ test.describe('Billing: Patient Chart workflow', () => {
552552
let paymentAmount2: number;
553553

554554
await test.step('Given I have created a bill', async () => {
555-
await page.goto(`patient/${patientUuid}/chart/Billing history`);
555+
await page.goto(`patient/${patientUuid}/chart/billing-history`);
556556

557557
const createBillButton = page.getByRole('button', { name: /launch bill form|add bill|create bill/i });
558558
await createBillButton.click();
@@ -663,7 +663,7 @@ test.describe('Billing: Patient Chart workflow', () => {
663663
const expectedTotal = expectedServicePrice * quantity;
664664

665665
await test.step('Given I create a bill with a service quantity of 2', async () => {
666-
await page.goto(`patient/${patientUuid}/chart/Billing history`);
666+
await page.goto(`patient/${patientUuid}/chart/billing-history`);
667667

668668
const createBillButton = page.getByRole('button', { name: /launch bill form|add bill|create bill/i });
669669
await createBillButton.click();
@@ -773,7 +773,7 @@ test.describe('Billing: Patient Chart workflow', () => {
773773
let billUuid: string;
774774

775775
await test.step('Given I create and save a bill', async () => {
776-
await page.goto(`patient/${patientUuid}/chart/Billing history`);
776+
await page.goto(`patient/${patientUuid}/chart/billing-history`);
777777

778778
const createBillButton = page.getByRole('button', { name: /launch bill form|add bill|create bill/i });
779779
await createBillButton.click();
@@ -830,7 +830,7 @@ test.describe('Billing: Patient Chart workflow', () => {
830830
let initialTotalAmount: number;
831831

832832
await test.step('Given I have created a bill with a line item', async () => {
833-
await page.goto(`patient/${patientUuid}/chart/Billing history`);
833+
await page.goto(`patient/${patientUuid}/chart/billing-history`);
834834

835835
const createBillButton = page.getByRole('button', { name: /launch bill form|add bill|create bill/i });
836836
await createBillButton.click();

src/dashboard.meta.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ export const dashboardMeta: Omit<DashboardExtensionProps, 'basePath'> & {
1010
title: 'billingHistory',
1111
hideDashboardTitle: true,
1212
icon: 'omrs-icon-money',
13-
path: 'Billing history',
13+
path: 'billing-history',
1414
};

src/routes.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"columns": 1,
4545
"columnSpan": 1,
4646
"slot": "patient-chart-billing-dashboard-slot",
47-
"path": "Billing history"
47+
"path": "billing-history"
4848
}
4949
},
5050
{

0 commit comments

Comments
 (0)