From 0b76f7235ff6997bef3afbbf64e08f170b45ddf4 Mon Sep 17 00:00:00 2001 From: Rob Ratcliffe Date: Tue, 27 Feb 2024 15:38:57 -0500 Subject: [PATCH] troubleshoot tests in pipeline. fix ui test, break api test --- api/flask_api/tests/test_order_controller.py | 3 ++- ui/react-app/src/Table.test.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/api/flask_api/tests/test_order_controller.py b/api/flask_api/tests/test_order_controller.py index 895721a..bdfe805 100644 --- a/api/flask_api/tests/test_order_controller.py +++ b/api/flask_api/tests/test_order_controller.py @@ -8,4 +8,5 @@ def test_order_controller(): f = open('tests/mockdata/output/result.json') mockJson = json.load(f) - assert mockJson == jsonOrders \ No newline at end of file + assert mockJson == jsonOrders + assert False \ No newline at end of file diff --git a/ui/react-app/src/Table.test.js b/ui/react-app/src/Table.test.js index 97fbd86..91582ad 100644 --- a/ui/react-app/src/Table.test.js +++ b/ui/react-app/src/Table.test.js @@ -7,7 +7,7 @@ test('renders table headers', () => { render(
); const linkElement = screen.getByRole('row'); - expect(linkElement.outerHTML).toEqual("Trace IDNameOrderStarted StatusProcessing Status"); + expect(linkElement.outerHTML).toEqual("Trace IDNameOrderStarted StatusProcessing Status"); }); test('renders table rows with success and failure', () => {