var EC = protractor.ExpectedConditions;

describe('con10t pages', function() {


    function click() {
        
        browser.waitForAngular();
        return element.all(by.css('.leaflet-control-zoom-in')).get(0).getText().click();
    }

    it('should contain markers on the grako_map page', function(done) {

        browser.driver.manage().window().setSize(1280, 1024);
        browser.get('/project/grako_map');

        click().then(click).then(click).then(click).then(click).then(click).then(click).then(click).then(function() {

            var marker = element(by.css('.awesome-marker'));
            browser.wait(EC.presenceOf(marker), 10000);
            expect(marker.isPresent()).toBe(true);
            done();
        })
    });

});


var EC = protractor.ExpectedConditions;

describe('con10t pages', function() {

    it('should display a heatmap on the grako_map page', function(done) {

        browser.get('/project/grako_map');

        var heatmap = element(by.css('.leaflet-heatmap-layer'));

        browser.wait(EC.presenceOf(heatmap), 5000);
        expect(heatmap.isPresent()).toBe(true);

        done();
    });

});


Rewrite test to check for heatmap on project page.
Rewrite test to check for heatmap on project page.
