In my protractor test I would also like to verify that the correct ajax calls are made. For example, if I navigate to /chapters
I would like to make sure that there was an ajax call to /chapters/documents?page=1
Is it possible to do this with protractor ?
I found this post with some interesting solution, but still I don't see how I can use that such that in my it(...)
I can actually test something. For example. browser.addMockModule
sounds very promising, but again, what should I do in my beforeEach
and how can I verify anything. Help would be appreciated!