Fix the has not pseudoselector assertion code

This commit is contained in:
Tessa Kelly 2023-03-13 14:32:12 -06:00
parent f947163e11
commit 7598bac1fc

View File

@ -396,11 +396,7 @@ hasNotPseudoElement pseudoElement highlightMarker relevantHighlightableText view
|> Query.each (Query.hasNot [ Selector.containing [ Selector.text relevantHighlightableText ] ]) |> Query.each (Query.hasNot [ Selector.containing [ Selector.text relevantHighlightableText ] ])
Nothing -> Nothing ->
("Expected to find a class defining a " ++ pseudoElement ++ " element with content: `") Expect.pass
++ highlightMarker
++ "`, but failed to find the class in the styles: \n\n"
++ rawStyles view
|> Expect.fail
pseudoElementSelector : String -> String -> Query.Single msg -> Maybe Selector pseudoElementSelector : String -> String -> Query.Single msg -> Maybe Selector