mirror of
https://github.com/NoRedInk/noredink-ui.git
synced 2024-09-19 03:09:11 +03:00
Inline Spec.Nri.Ui.TextInput.V6.basic
This commit is contained in:
parent
fab0271d03
commit
36ce3cb9b2
@ -9,24 +9,20 @@ import Test.Html.Selector exposing (id, tag)
|
||||
|
||||
all : Test
|
||||
all =
|
||||
let
|
||||
basic =
|
||||
{ label = "label"
|
||||
, isInError = False
|
||||
, onInput = identity
|
||||
, onBlur = Nothing
|
||||
, placeholder = "placeholder"
|
||||
, value = "value"
|
||||
, autofocus = False
|
||||
, showLabel = False
|
||||
, type_ = TextInput.text
|
||||
}
|
||||
in
|
||||
describe "Nri.Ui.TextInput.V6"
|
||||
[ test "it uses the same DOM id that generateId produces" <|
|
||||
\() ->
|
||||
TextInput.view
|
||||
{ basic | label = "myLabel" }
|
||||
{ label = "myLabel"
|
||||
, isInError = False
|
||||
, onInput = identity
|
||||
, onBlur = Nothing
|
||||
, placeholder = "placeholder"
|
||||
, value = "value"
|
||||
, autofocus = False
|
||||
, showLabel = False
|
||||
, type_ = TextInput.text
|
||||
}
|
||||
|> Html.Styled.toUnstyled
|
||||
|> Query.fromHtml
|
||||
|> Query.has
|
||||
|
Loading…
Reference in New Issue
Block a user