Skip to content

Commit

Permalink
test: fix navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
reiniiriarios committed Apr 25, 2024
1 parent 3af9b51 commit 24988fc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/specs/add.book.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down
1 change: 1 addition & 0 deletions test/specs/edit.book.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 24988fc

Please sign in to comment.