Skip to content

Commit

Permalink
feat(test): Added an e2e test to the custom-parameters-example.html
Browse files Browse the repository at this point in the history
  • Loading branch information
tombatossals committed Dec 19, 2013
1 parent 9d32eed commit 3ce6a72
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/e2e/04-custom-parameters-example.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ describe('Loading custom-parameters-example.html', function() {
return ptor.isElementPresent(by.css('img.leaflet-tile-loaded'));
});

var tile = element(by.css('img.leaflet-tile-loaded'));
element(by.xpath('//img[contains(@class, "leaflet-tile-loaded")][1]')).getAttribute("src").then(function(src) {
expect(src).toContain("tile.opencyclemap.org");
});
});
});

0 comments on commit 3ce6a72

Please sign in to comment.