Skip to content

Commit

Permalink
troubleshoot tests in pipeline. fix ui test, break api test
Browse files Browse the repository at this point in the history
  • Loading branch information
rlratcliffe committed Feb 27, 2024
1 parent 5d8e4dd commit 0b76f72
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion api/flask_api/tests/test_order_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ def test_order_controller():
f = open('tests/mockdata/output/result.json')
mockJson = json.load(f)

assert mockJson == jsonOrders
assert mockJson == jsonOrders
assert False
2 changes: 1 addition & 1 deletion ui/react-app/src/Table.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ test('renders table headers', () => {
render(<table><thead><TableHeaders/></thead><tbody></tbody></table>);

const linkElement = screen.getByRole('row');
expect(linkElement.outerHTML).toEqual("<td><th scope=\"col\">Trace ID</th><th scope=\"col\">Name</th><th scope=\"col\">Order</th><th scope=\"col\">Started Status</th><th scope=\"col\">Processing Status</th></tr>");
expect(linkElement.outerHTML).toEqual("<tr><th scope=\"col\">Trace ID</th><th scope=\"col\">Name</th><th scope=\"col\">Order</th><th scope=\"col\">Started Status</th><th scope=\"col\">Processing Status</th></tr>");
});

test('renders table rows with success and failure', () => {
Expand Down

0 comments on commit 0b76f72

Please sign in to comment.