Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fabienhenon/test-attribute
Add test attributes in test environment for end to end tests
https://github.com/fabienhenon/test-attribute
Last synced: 9 days ago
JSON representation
Add test attributes in test environment for end to end tests
- Host: GitHub
- URL: https://github.com/fabienhenon/test-attribute
- Owner: FabienHenon
- License: mit
- Created: 2019-12-04T15:25:01.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-05-24T16:02:18.000Z (over 3 years ago)
- Last Synced: 2024-11-05T10:13:22.615Z (about 2 months ago)
- Language: Elm
- Homepage: https://package.elm-lang.org/packages/FabienHenon/test-attribute/latest/
- Size: 3.91 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# test-attribute [![Build Status](https://travis-ci.org/calions-app/test-attribute.svg?branch=master)](https://travis-ci.org/calions-app/test-attribute)
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:
```elm
div [ class "element", TestAttribute.addId "my-element" env ] [ text "My element" ]
```