How to detected truncated strings by the front end libraries?
Alberto last edited by
The Chrome browser's inspect tool says that the "Welcome" string isn't truncated at all. It's in a
To test the potentially truncated strings like this, I cannot just query the DOM. What are the tools and libraries available in the software testing industry to catch such undesirable modifications by the front end library?
You can check that the text-overflow is not ellipsis with WebDriver/Selenium.
assert element.value_of_css_property("text-overflow") != "ellipsis"