/* global describe, it, browser, expect, element, by, beforeEach */
'use strict';

describe('settings view', function () {
    beforeEach(function () {
        this.settingsView = element(by.css('.view-settings'));
    }); 

    it('should hide if a location is set.', function () {
        browser.get('http://localhost:3000');
        browser.executeScript('window.localStorage.setItem("sunshine.settings.location", "Santo Domingo, DO");');
        
        expect(this.settingsView.getAttribute('class')).toMatch('ng-hide');
    });
});

/* global describe, it, browser, expect, element, by, beforeEach */
'use strict';

describe('settings view', function () {
    beforeEach(function () {
        this.settingsView = element(by.css('.view-settings'));
    }); 

    it('should hide if a location is set.', function () {
        browser.get('http://localhost:3001');
        browser.executeScript('window.localStorage.setItem("sunshine.settings.location", "Santo Domingo, DO");');
        
        expect(this.settingsView.getAttribute('class')).toMatch('ng-hide');
    });
});

Update URL to point to test server.
Update URL to point to test server.
