TestSelector.test_selector
You're seeing just the function
test_selector
, go back to TestSelector module for more information.
Generates a unique code for an HTML element.
Examples
iex> UserView.test_selector()
"user-45e6f"
Generates a unique code by appending a custom name for an HTML element.
Examples
iex> UserCell.test_selector("avatar")
"user-45e6f-avatar"