UNPKG

leaflet-environmental-layers

Version:

[![Gitpod Ready-to-Code](https://img.shields.io/badge/Gitpod-ready--to--code-blue?logo=gitpod)](https://gitpod.io/#https://github.com/publiclab/leaflet-environmental-layers/) [![npm version](https://badge.fury.io/js/leaflet-environmental-layers.svg)](http

20 lines (19 loc) 813 B
describe('OpenWeatherMap layer', function() { it('adds markers on click', function() { cy.openWindow('/example/index.html#lat=41.6283&lon=-91.7235&zoom=10&layers=Standard') cy.wait(300) cy.window().then((win) => { cy.get('.leaflet-tile-pane').children().should('have.length', 1) cy.get('#map-city label').click({ force: true }) cy.get('.leaflet-tile-pane').children().should('have.length', 2) cy.get('.img') }) }) it('loads correct owmloading.gif with config option set', function() { cy.openWindow('/example/oneLinerCodeExample.html') cy.wait(300) cy.window().then((win) => { expect(LEL.overlayMaps.current.options.imageLoadingUrl).to.equal('https://raw.githubusercontent.com/buche/leaflet-openweathermap/master/owmloading.gif') }) }) });