Skip to content

Commit

Permalink
Add unit test for waitForSelector
Browse files Browse the repository at this point in the history
  • Loading branch information
Archie Lee committed Feb 24, 2018
1 parent 580e2b2 commit ec4cb46
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions __tests__/puppeteer_test.re
Expand Up @@ -128,6 +128,13 @@ describe("Page", () => {
)
)
);
testPromise("waitForSelector()", () =>
Js.Promise.(
page^
|> Page.waitForSelector("body", ())
|> then_(() => pass |> Js.Promise.resolve)
)
);
afterAllPromise(() =>
Js.Promise.(Page.close(page^) |> then_(() => Browser.close(browser^)))
);
Expand Down

0 comments on commit ec4cb46

Please sign in to comment.