mirror of
https://github.com/NoRedInk/noredink-ui.git
synced 2024-11-13 07:48:26 +03:00
Updated accordion version in tests and test up and down directions
This commit is contained in:
parent
74bdddc1e6
commit
d49a9114d1
@ -3,7 +3,7 @@ module Spec.Nri.Ui.Accordion exposing (spec)
|
||||
import Accessibility.Aria as Aria
|
||||
import Browser.Dom as Dom
|
||||
import Html.Styled as Html exposing (..)
|
||||
import Nri.Ui.Accordion.V3 as Accordion
|
||||
import Nri.Ui.Accordion.V4 as Accordion
|
||||
import ProgramTest exposing (..)
|
||||
import Set exposing (Set)
|
||||
import Task
|
||||
@ -14,7 +14,7 @@ import Test.Html.Selector as Selector
|
||||
|
||||
spec : Test
|
||||
spec =
|
||||
describe "Nri.Ui.Accordion.V3"
|
||||
describe "Nri.Ui.Accordion.V4"
|
||||
[ describe "panel rendering" panelRenderingTests
|
||||
, describe "aria attributes" ariaAttributesTests
|
||||
]
|
||||
@ -157,6 +157,7 @@ view model =
|
||||
{ caret = Accordion.defaultCaret
|
||||
, content = \() -> text "Content 1"
|
||||
, entryClass = ""
|
||||
, expansionDirection = Accordion.Downwards
|
||||
, headerContent = text "Header 1"
|
||||
, headerId = "header-1"
|
||||
, headerLevel = Accordion.H4
|
||||
@ -165,9 +166,10 @@ view model =
|
||||
}
|
||||
[]
|
||||
, Accordion.AccordionEntry
|
||||
{ caret = Accordion.defaultCaret
|
||||
{ caret = Accordion.upwardCaret
|
||||
, content = \() -> text "Content 2"
|
||||
, entryClass = ""
|
||||
, expansionDirection = Accordion.Upwards
|
||||
, headerContent = text "Header 2"
|
||||
, headerId = "header-2"
|
||||
, headerLevel = Accordion.H4
|
||||
|
@ -5,7 +5,7 @@
|
||||
"Nri.Test.KeyboardHelpers.V1",
|
||||
"Nri.Test.MouseHelpers.V1",
|
||||
"Nri.Ui",
|
||||
"Nri.Ui.Accordion.V3",
|
||||
"Nri.Ui.Accordion.V4",
|
||||
"Nri.Ui.AnimatedIcon.V1",
|
||||
"Nri.Ui.AssignmentIcon.V2",
|
||||
"Nri.Ui.Balloon.V2",
|
||||
|
Loading…
Reference in New Issue
Block a user