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 @@ - - + +