Galen is a test framework originally designed for testing layout of web applications but is also a great tool for functional testing. When it comes to testing a responsive layout it works in a following way:
- Open a page in browser
- Resize it to specified size
- Test the layout according to user-defined specs
It uses Selenium for interacting with elements on page and getting their locations and dimensions.
Once it sees that something is wrong – Galen reports the error, makes a screenshot and highlights the misbehaving element on it.
Once it sees that something is wrong – Galen reports the error, makes a screenshot and highlights the misbehaving element on it.