Fix CCS category order search
This commit is contained in:
@@ -190,6 +190,13 @@ test("public API and disposable learner journey", async () => {
|
||||
expect(activeCcsAttempt).toBeTruthy();
|
||||
expect(attempt.caseExternalId).toBeTruthy();
|
||||
expect(attempt.state).toBe("active");
|
||||
const { data: medicationOrders } = await call("/api/ccs/orders/search?q=medications&limit=20", { token });
|
||||
expect(Array.isArray(medicationOrders)).toBeTruthy();
|
||||
expect(medicationOrders.length).toBeGreaterThan(0);
|
||||
expect(medicationOrders.some((order) => order.category === "medication")).toBeTruthy();
|
||||
const { data: testOrders } = await call("/api/ccs/orders/search?q=tests&limit=20", { token });
|
||||
expect(Array.isArray(testOrders)).toBeTruthy();
|
||||
expect(testOrders.some((order) => ["laboratory", "diagnostic"].includes(order.category))).toBeTruthy();
|
||||
const { data: opened } = await call(`/api/ccs/attempts/${activeCcsAttempt}/commands`, {
|
||||
method: "POST", token, body: {
|
||||
commandId: `smoke-opening-${suffix}`, expectedRevision: attempt.revision,
|
||||
|
||||
Reference in New Issue
Block a user