Skip to content

Commit

Permalink
feat: update to argonaut 7 and affjax 11 -> run ps-suggest
Browse files Browse the repository at this point in the history
  • Loading branch information
srghma committed Nov 16, 2020
1 parent 19df447 commit 5b58104
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 21 deletions.
4 changes: 2 additions & 2 deletions src/Lunapark.purs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module Lunapark


import Lunapark.API (Interpreter(..), runInterpreter, BaseRun, HandleLunaparkInput, Lunapark, handleLunapark, init, interpret, interpretW3CActions, jsonWireActions, runLunapark, runLunaparkActions, w3cActions)
import Lunapark.Error
import Lunapark.Error (Error(..))
import Lunapark.ActionF (ActionF(..), LUNAPARK_ACTIONS, TouchF(..), WithAction, _lunaparkActions, buttonDown, buttonUp, click, doubleClick, doubleTap, flick, liftAction, longTap, moveTo, pause, scroll, sendKeys, tap, touchDown, touchUp)
import Lunapark.LunaparkF (ElementF(..), LUNAPARK, LunaparkF(..), WithLunapark, _lunapark, acceptAlert, addCookie, back, childElement, childElements, clearElement, clickElement, closeWindow, deleteAllCookies, deleteCookie, dismissAlert, elementScreenshot, executeScript, executeScriptAsync, findElement, findElements, forward, fullscreenWindow, getAlertText, getAllCookies, getAttribute, getCookie, getCss, getProperty, getRectangle, getTagName, getText, getTimeouts, getTitle, getUrl, getWindowHandle, getWindowHandles, getWindowRectangle, go, isDisplayed, isEnabled, isSelected, liftLunapark, maximizeWindow, minimizeWindow, performActions, quit, refresh, releaseActions, screenshot, sendAlertText, sendKeysElement, setTimeouts, setWindowRectangle, status, submitElement, switchToFrame, switchToParentFrame, switchToWindow)
import Lunapark.WebdriverError
import Lunapark.WebdriverError (WebdriverError, WebdriverErrorType(..), fromJson, fromStringCode, toStringCode)
1 change: 0 additions & 1 deletion src/Lunapark/Endpoint.purs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ import Effect.Aff (Aff)
import Lunapark.Error as LE
import Lunapark.WebdriverError as LWE
import Lunapark.Types as LT
import Data.Argonaut.Decode (JsonDecodeError(..), printJsonDecodeError) as J

data EndpointPart
= Session
Expand Down
17 changes: 1 addition & 16 deletions src/Lunapark/Error.purs
Original file line number Diff line number Diff line change
@@ -1,24 +1,9 @@
module Lunapark.Error where

import Prelude

import Affjax as N
import Affjax.RequestBody as NQ
import Affjax.ResponseFormat as NR
import Affjax.StatusCode (StatusCode(..))
import Data.Argonaut.Core (Json)
import Data.Argonaut.Decode.Class (decodeJson) as J
import Data.Argonaut.Decode.Combinators ((.:)) as J
import Data.Bifunctor (lmap)
import Data.Either (Either(..), either)
import Data.Foldable as F
import Data.List as L
import Data.Maybe (Maybe(..))
import Data.Newtype (un)
import Effect.Aff (Aff)
import Lunapark.WebdriverError as LWE
import Lunapark.Types as LT
import Data.Argonaut.Decode (JsonDecodeError(..), printJsonDecodeError) as J
import Data.Argonaut.Decode (JsonDecodeError) as Jimport Data.Argonaut.Decode (JsonDecodeError) as J

data Error
= JsonDecodeError J.JsonDecodeError
Expand Down
4 changes: 2 additions & 2 deletions src/Lunapark/WebdriverError.purs
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ module Lunapark.WebdriverError where
import Prelude

import Data.Argonaut.Core (Json, fromString) as J
import Data.Argonaut.Decode (JsonDecodeError(..), printJsonDecodeError) as J
import Data.Argonaut.Decode (JsonDecodeError(..)) as J
import Data.Argonaut.Decode.Combinators ((.:)) as J
import Data.Argonaut.Decode.Class (decodeJson) as J
import Data.Either (Either(..), either)
import Data.Either (Either(..))

data WebdriverErrorType
= ElementClickIntercepted
Expand Down

0 comments on commit 5b58104

Please sign in to comment.