From 24988fcabaa8319f82a05cd9c883a98368d9bb13 Mon Sep 17 00:00:00 2001 From: Emma Litwa-Vulcu <80431903+reiniiriarios@users.noreply.github.com> Date: Thu, 25 Apr 2024 16:39:26 -0700 Subject: [PATCH] test: fix navigation --- test/specs/add.book.test.ts | 3 +++ test/specs/edit.book.test.ts | 1 + 2 files changed, 4 insertions(+) diff --git a/test/specs/add.book.test.ts b/test/specs/add.book.test.ts index d47bd30..8c3e482 100644 --- a/test/specs/add.book.test.ts +++ b/test/specs/add.book.test.ts @@ -28,6 +28,9 @@ const tags1 = ["Some", "Tags"]; describe("add book", () => { it("should add book from dialog", async () => { + // Navigate + await (await $(".nav__link--books")).click(); + // Open Dialog await (await $(`.pageNav__actions .btn--addBook`)).click(); diff --git a/test/specs/edit.book.test.ts b/test/specs/edit.book.test.ts index 85caacf..144f8ac 100644 --- a/test/specs/edit.book.test.ts +++ b/test/specs/edit.book.test.ts @@ -182,6 +182,7 @@ async function setData( describe("book page", () => { it("should load correct data", async () => { // Navigate + await (await $(".nav__link--books")).click(); await (await $(`.book a[href='#/book/${href1}']`)).click(); // Data