UNPKG

mohsen-angular-leaflet-directive

Version:

angular-leaflet-directive - An AngularJS directive to easily interact with Leaflet maps

19 lines (14 loc) 530 B
'use strict'; describe('Loading 0100-basic-first-example.html', function() { beforeEach(function() { browser.get('0100-basic-first-example.html'); browser.wait(function() { return element(by.css('img.leaflet-tile-loaded')).isPresent(); }, 5000); }, 30000); it('should load the Leaflet map inside the directive tag', function() { element(by.className('angular-leaflet-map')).getText().then(function(text) { expect(text).toBe('+\n-\nLeaflet | © OpenStreetMap contributors'); }); }); });