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