Finding DOM element by data-role in Phoenix LiveView testing
Today I put together one technique I find useful for writing test. That is to use data attributes for finding DOM elements in test. The same idea can apply to JavaScripting, but I focus mainly on Phoenix LiveView testing here because that is the one ...