From 1c1f63fece9028d54ccbfaa8ee5c7a619a678d4b Mon Sep 17 00:00:00 2001 From: Ben Topping Date: Thu, 6 Jun 2024 09:50:55 +0100 Subject: [PATCH] fix(squix-printers): updates case sensitive printer names --- src/config/PrinterList.json | 4 ++-- tests/e2e/specs/visit_print_job_page.js | 4 ++-- tests/unit/PrintJob.spec.js | 4 ++-- tests/unit/lib/PrinterHelpers.spec.js | 8 ++++---- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/config/PrinterList.json b/src/config/PrinterList.json index 86b092e5..e1f9eb8c 100644 --- a/src/config/PrinterList.json +++ b/src/config/PrinterList.json @@ -21,10 +21,10 @@ "name": "g216abc" }, { - "name": "AA312bc" + "name": "aa312bc" }, { - "name": "AA312bc2" + "name": "aa312bc2" } ] } diff --git a/tests/e2e/specs/visit_print_job_page.js b/tests/e2e/specs/visit_print_job_page.js index 88e20511..257a22cf 100644 --- a/tests/e2e/specs/visit_print_job_page.js +++ b/tests/e2e/specs/visit_print_job_page.js @@ -16,7 +16,7 @@ describe('Print Job page', () => { }) it('PMB request is successful', () => { - cy.get('[data-attribute=printer-select]').select('AA312bc') + cy.get('[data-attribute=printer-select]').select('aa312bc') cy.get('[data-attribute=barcode-input]').type('aBarcode') cy.intercept('/v2/print_jobs', { @@ -30,7 +30,7 @@ describe('Print Job page', () => { }) it('PMB request is unsuccessful, failed response', () => { - cy.get('[data-attribute=printer-select]').select('AA312bc') + cy.get('[data-attribute=printer-select]').select('aa312bc') cy.get('[data-attribute=barcode-input]').type('aBarcode') cy.intercept('/v2/print_jobs', { statusCode: 422, diff --git a/tests/unit/PrintJob.spec.js b/tests/unit/PrintJob.spec.js index 3e34e68c..6ec33787 100644 --- a/tests/unit/PrintJob.spec.js +++ b/tests/unit/PrintJob.spec.js @@ -28,8 +28,8 @@ describe('PrintJob.vue', () => { 'h106bc', 'g214bc', 'g216abc', - 'AA312bc', - 'AA312bc2', + 'aa312bc', + 'aa312bc2', ]) }) }) diff --git a/tests/unit/lib/PrinterHelpers.spec.js b/tests/unit/lib/PrinterHelpers.spec.js index 0efe0714..e1145132 100644 --- a/tests/unit/lib/PrinterHelpers.spec.js +++ b/tests/unit/lib/PrinterHelpers.spec.js @@ -48,8 +48,8 @@ describe('PrinterHelpers', () => { 'h106bc', 'g214bc', 'g216abc', - 'AA312bc', - 'AA312bc2', + 'aa312bc', + 'aa312bc2', ]) }) @@ -63,8 +63,8 @@ describe('PrinterHelpers', () => { 'h106bc', 'g214bc', 'g216abc', - 'AA312bc', - 'AA312bc2', + 'aa312bc', + 'aa312bc2', ]) }) })