Skip to content

Commit

Permalink
feat(tests): Added a new e2e test for: layers-imageoverlay-example.html
Browse files Browse the repository at this point in the history
  • Loading branch information
tombatossals committed Dec 29, 2013
1 parent 4032188 commit 5eb20dc
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions test/e2e/11-imageoverlay-example.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
'use strict';

describe('Loading layers-imageoverlay-example.html', function() {

var ptor, driver;
beforeEach(function() {
ptor = protractor.getInstance();
browser.get('layers-imageoverlay-example.html');
driver = ptor.driver;
});

it('should load the static image of the andes on the map', function() {
ptor.wait(function() {
return ptor.isElementPresent(by.xpath('//img[contains(@src, "andes.jpg")]'));
});

expect(ptor.isElementPresent(by.xpath('//img[contains(@src, "andes.jpg")]'))).toBe(true);
});
});

0 comments on commit 5eb20dc

Please sign in to comment.