FabienHenon/test-attribute

Add test attributes to your elements for end-to-end tests


License
MIT
Install
elm-package install FabienHenon/test-attribute 1.0.0

Documentation

test-attribute Build Status

With the TestAttribute module you can add attributes to your html elements only for Test env. This allows you to select DOM elements with these attributes for your end to end tests.

Getting started

Here is how to add an id test attribute to an element:

div [ class "element", TestAttribute.addId "my-element" env ] [ text "My element" ]