From de633e9b52bbdf18d69edbee21d2eba4df794ec3 Mon Sep 17 00:00:00 2001 From: davelopez <46503462+davelopez@users.noreply.github.com> Date: Fri, 21 Jan 2022 12:43:14 +0100 Subject: [PATCH] Fix column index in unit tests After adding a new "first" column for expanding --- client/src/components/Workflow/Invocations.test.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/client/src/components/Workflow/Invocations.test.js b/client/src/components/Workflow/Invocations.test.js index aae62d91f19..cf4285d4071 100644 --- a/client/src/components/Workflow/Invocations.test.js +++ b/client/src/components/Workflow/Invocations.test.js @@ -75,12 +75,12 @@ describe("Invocations.vue with invocation", () => { expect(rows.length).toBe(1); const row = rows[0]; const columns = row.findAll("td"); - expect(columns.at(0).text()).toBe("workflow name"); - expect(columns.at(1).text()).toBe("history name"); - expect(columns.at(2).text()).toBe(moment.utc(invocationData.create_time).fromNow()); - expect(columns.at(3).text()).toBe(moment.utc(invocationData.update_time).fromNow()); - expect(columns.at(4).text()).toBe("scheduled"); - expect(columns.at(5).text()).toBe(""); + expect(columns.at(1).text()).toBe("workflow name"); + expect(columns.at(2).text()).toBe("history name"); + expect(columns.at(3).text()).toBe(moment.utc(invocationData.create_time).fromNow()); + expect(columns.at(4).text()).toBe(moment.utc(invocationData.update_time).fromNow()); + expect(columns.at(5).text()).toBe("scheduled"); + expect(columns.at(6).text()).toBe(""); }); it("toggles detail rendering", async () => {