fix: warnings
This commit is contained in:
parent
e3eb4924d0
commit
88f28d3424
@ -34,11 +34,9 @@ to generate this file without the comments in this block.
|
|||||||
, "node-path"
|
, "node-path"
|
||||||
, "node-process"
|
, "node-process"
|
||||||
, "node-streams"
|
, "node-streams"
|
||||||
, "node-url"
|
|
||||||
, "nullable"
|
, "nullable"
|
||||||
, "ordered-collections"
|
, "ordered-collections"
|
||||||
, "parallel"
|
, "parallel"
|
||||||
, "partial"
|
|
||||||
, "prelude"
|
, "prelude"
|
||||||
, "simple-json"
|
, "simple-json"
|
||||||
, "spec"
|
, "spec"
|
||||||
|
@ -31,20 +31,18 @@ import Data.Map (Map)
|
|||||||
import Data.Maybe (Maybe(..))
|
import Data.Maybe (Maybe(..))
|
||||||
import Data.Nullable (Nullable)
|
import Data.Nullable (Nullable)
|
||||||
import Data.Nullable as Nullable
|
import Data.Nullable as Nullable
|
||||||
import Effect (Effect)
|
|
||||||
import Effect.Aff (Aff)
|
import Effect.Aff (Aff)
|
||||||
import Foreign (Foreign, unsafeToForeign)
|
import Foreign (Foreign)
|
||||||
import Node.Buffer (Buffer)
|
import Node.Buffer (Buffer)
|
||||||
import Node.Path (FilePath)
|
import Node.Path (FilePath)
|
||||||
import Puppeteer.Base (Handle) as X
|
import Puppeteer.Base (Handle) as X
|
||||||
import Puppeteer.Base (class IsElement, Handle)
|
import Puppeteer.Base (class IsElement, Handle)
|
||||||
import Puppeteer.Cartesian (Coord)
|
|
||||||
import Puppeteer.Eval as Eval
|
import Puppeteer.Eval as Eval
|
||||||
import Puppeteer.FFI as FFI
|
import Puppeteer.FFI as FFI
|
||||||
import Puppeteer.Screenshot (ScreenshotOptions, prepareScreenshotOptions)
|
import Puppeteer.Screenshot (ScreenshotOptions, prepareScreenshotOptions)
|
||||||
import Puppeteer.Selector (class Selector)
|
import Puppeteer.Selector (class Selector)
|
||||||
import Puppeteer.Selector as Selector
|
import Puppeteer.Selector as Selector
|
||||||
import Simple.JSON (class ReadForeign, class WriteForeign, writeJSON)
|
import Simple.JSON (class ReadForeign, class WriteForeign)
|
||||||
import Unsafe.Coerce (unsafeCoerce)
|
import Unsafe.Coerce (unsafeCoerce)
|
||||||
import Web.HTML (HTMLElement)
|
import Web.HTML (HTMLElement)
|
||||||
import Web.HTML as HTML
|
import Web.HTML as HTML
|
||||||
|
@ -177,7 +177,7 @@ spec = beforeAll (Pup.launch_ =<< Pup.puppeteer unit)
|
|||||||
input <- liftMaybe (error "no inputs!") =<< Pup.Page.findFirst "input" p
|
input <- liftMaybe (error "no inputs!") =<< Pup.Page.findFirst "input" p
|
||||||
input' <- liftMaybe (error "not an input!") =<< Pup.Handle.HTML.toHTMLInputElement input
|
input' <- liftMaybe (error "not an input!") =<< Pup.Handle.HTML.toHTMLInputElement input
|
||||||
shouldEqual "" =<< Pup.Handle.HTML.value input'
|
shouldEqual "" =<< Pup.Handle.HTML.value input'
|
||||||
Pup.Handle.focus input
|
Pup.Handle.click input
|
||||||
kb <- liftEffect $ Pup.Page.keyboard p
|
kb <- liftEffect $ Pup.Page.keyboard p
|
||||||
Pup.Keyboard.doType "foo bar bingus bat" kb
|
Pup.Keyboard.doType "foo bar bingus bat" kb
|
||||||
shouldEqual "foo bar bingus bat" =<< Pup.Handle.HTML.value input'
|
shouldEqual "foo bar bingus bat" =<< Pup.Handle.HTML.value input'
|
||||||
|
@ -12,7 +12,7 @@ import Puppeteer.Browser.Spec as Spec.Browser
|
|||||||
import Puppeteer.Handle.Spec as Spec.Handle
|
import Puppeteer.Handle.Spec as Spec.Handle
|
||||||
import Puppeteer.Page.Spec as Spec.Page
|
import Puppeteer.Page.Spec as Spec.Page
|
||||||
import Puppeteer.Selector.Spec as Spec.Selector
|
import Puppeteer.Selector.Spec as Spec.Selector
|
||||||
import Test.Spec (SpecT, describe, mapSpecTree, parallel)
|
import Test.Spec (SpecT, describe, mapSpecTree)
|
||||||
import Test.Spec.Assertions (shouldEqual)
|
import Test.Spec.Assertions (shouldEqual)
|
||||||
import Test.Util (test)
|
import Test.Util (test)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user