DefactoSoftware / test_selector

Elixir library to help selecting the right elements in your tests.
MIT License
14 stars 2 forks source link

Add helpers and examples for usage with Floki #15

Closed sn3p closed 4 years ago

sn3p commented 6 years ago

We should mention we're also supporting Floki out of the box:

html
|> Floki.find("[test-selector=#{SomeView.test_selector("user")}")
|> Floki.attribute("test-value")
{:safe, selector} = IndexView.test()
Floki.find(html, "[#{selector}]")

And we might want to rename TestSelector.Test.Helpers to TestSelector.Hound.Helpers, and optionally add TestSelector.Floki.Helpers (if any).

fatboypunk commented 4 years ago

Fixed in #22