From 3ce6a721a6bfd24158574935dc214871a8c84ef2 Mon Sep 17 00:00:00 2001 From: tombatossals Date: Thu, 19 Dec 2013 19:25:19 +0100 Subject: [PATCH] feat(test): Added an e2e test to the custom-parameters-example.html --- test/e2e/04-custom-parameters-example.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/e2e/04-custom-parameters-example.js b/test/e2e/04-custom-parameters-example.js index 1a9e7374..9897800c 100644 --- a/test/e2e/04-custom-parameters-example.js +++ b/test/e2e/04-custom-parameters-example.js @@ -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"); + }); }); });