What I like to do is to intercept a XHR request and return a mock response that contains a static list of Stores. So that when I sort a list or filter a list, I can easily test by selenium.
My current problems are:
- I am using TestBrowser. I can only see the html elements found in my scala.html. I cannot see the dynamically created html/dom
- How do I intercept a XHR request and return a mock response that will be used to generate a list of Store dynamically?
I appreciate if someone guides me to somewhere from where I am.