From bc08514f7e502259d551eb22ad336c3404b26608 Mon Sep 17 00:00:00 2001 From: Rick Carlino Date: Tue, 7 Jan 2020 15:27:59 -0600 Subject: [PATCH] Update tests to account for verbiage changes --- frontend/sequences/step_tiles/__tests__/index_test.ts | 2 +- frontend/sequences/step_tiles/__tests__/tile_reboot_test.tsx | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/frontend/sequences/step_tiles/__tests__/index_test.ts b/frontend/sequences/step_tiles/__tests__/index_test.ts index f72d527650..9586d07bba 100644 --- a/frontend/sequences/step_tiles/__tests__/index_test.ts +++ b/frontend/sequences/step_tiles/__tests__/index_test.ts @@ -189,7 +189,7 @@ describe("renderCeleryNode()", () => { }, { node: { kind: "reboot", args: { package: "farmbot_os" } }, - expected: "entire system" + expected: "power cycle farmbot's onboard computer." }, { node: { kind: "check_updates", args: { package: "farmbot_os" } }, diff --git a/frontend/sequences/step_tiles/__tests__/tile_reboot_test.tsx b/frontend/sequences/step_tiles/__tests__/tile_reboot_test.tsx index 60ab6fe6ec..7ec14dfca5 100644 --- a/frontend/sequences/step_tiles/__tests__/tile_reboot_test.tsx +++ b/frontend/sequences/step_tiles/__tests__/tile_reboot_test.tsx @@ -32,8 +32,7 @@ describe("", () => { it("renders", () => { const el = render(); const verbiage = el.text(); - expect(verbiage).toContain("Entire system"); - expect(verbiage).toContain("Just the Arduino"); + expect(verbiage).toContain("Power cycle FarmBot's onboard computer."); }); it("crashes if the step is of the wrong `kind`", () => {