From 73b771fb78105cef63b453a0d6a9aa04f48ae6f5 Mon Sep 17 00:00:00 2001 From: Yanick Champoux Date: Sat, 22 Apr 2023 11:04:48 -0400 Subject: [PATCH] tweak tests --- Taskfile.yml | 6 ++++++ src/lib/components/ShipEdit/Identification.test.js | 4 ++-- src/lib/components/ShipEdit/Propulsion.story.svelte | 4 ++-- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/Taskfile.yml b/Taskfile.yml index 7ef6f8a..ab27475 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -13,6 +13,12 @@ tasks: cmds: - vitest src + test:update: + deps: + - histoire:build + cmds: + - vitest run -u src + check: deps: - histoire:build diff --git a/src/lib/components/ShipEdit/Identification.test.js b/src/lib/components/ShipEdit/Identification.test.js index ab80a32..9b8963e 100644 --- a/src/lib/components/ShipEdit/Identification.test.js +++ b/src/lib/components/ShipEdit/Identification.test.js @@ -5,6 +5,6 @@ import { tick } from "svelte"; import Identification from "./Identification.svelte"; test("carrier", () => { - const { getByLabelText } = render(Identification); - expect(getByLabelText("carrier")).toBeInTheDocument(); + const { getByText } = render(Identification); + expect(getByText("carrier")).toBeInTheDocument(); }); diff --git a/src/lib/components/ShipEdit/Propulsion.story.svelte b/src/lib/components/ShipEdit/Propulsion.story.svelte index ce4a50b..a89dbde 100644 --- a/src/lib/components/ShipEdit/Propulsion.story.svelte +++ b/src/lib/components/ShipEdit/Propulsion.story.svelte @@ -1,5 +1,5 @@ - - + +