From de598edb97fd418f5cfaf48badd92c1a97f967ed Mon Sep 17 00:00:00 2001 From: Tessa Kelly Date: Fri, 5 Apr 2019 13:52:22 -0700 Subject: [PATCH] Adds test against forward button navigability --- tests/Spec/Nri/Ui/SlideModal/V1.elm | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/tests/Spec/Nri/Ui/SlideModal/V1.elm b/tests/Spec/Nri/Ui/SlideModal/V1.elm index c59459cd..43778c55 100644 --- a/tests/Spec/Nri/Ui/SlideModal/V1.elm +++ b/tests/Spec/Nri/Ui/SlideModal/V1.elm @@ -73,6 +73,19 @@ all = , Query.hasNot [ text "Title2", text "Content2" ] , Query.hasNot [ text "Title3", text "Content3" ] ] + , test "cannot navigate forward using the dots" <| + \() -> + { panels = threePanels + , height = Css.vh 60 + , parentMsg = identity + } + |> initTest + |> click "Continue1" + |> assertAndFinish + [ Query.has [ tag "button", containing [ text "Go to Title1" ] ] + , Query.hasNot [ tag "button", containing [ text "Go to Title2" ] ] + , Query.has [ tag "button", disabled True, containing [ text "Go to Title3" ] ] + ] ]