samedi 10 janvier 2015

Protractor: Testing for 'busy indicator'

I have a busy indicator that appears if the HTTP request takes longer than 1 second. If it returns in less than 1 second, the busy indicator does not appear.


What's the best way to test this with protractor? I'm thinking I need two test cases:



it('should not show busy indicator because http response is quick', function () {
// ??
});

it('should show busy indicator because http response is taking longer than 1 second', function () {
// ??
});

Aucun commentaire:

Enregistrer un commentaire