{"size": 765, "ext": "js", "max_stars_repo_path": "client/test/nightwatch/test/testProfile.js", "max_stars_repo_name": "merc2001/nware", "max_stars_repo_stars_event_min_datetime": "2017-01-02T18:52:49.000Z", "max_stars_repo_stars_event_max_datetime": "2017-01-02T18:52:49.000Z", "max_issues_repo_path": "client/test/nightwatch/test/testProfile.js", "max_issues_repo_name": "merc2001/nware", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "client/test/nightwatch/test/testProfile.js", "max_forks_repo_name": "merc2001/nware", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 28.3333333333, "max_line_length": 65, "alphanum_fraction": 0.5633986928}
describe('Profile', function () {
    before(function (client, done) {
        client.page.login().login(done);
    });

    after(function (client, done) {
        client.page.logout().logout(done)
    });

    it('read and save profile', function (client) {
        client.page.profile().navigate()
            .waitForElementVisible('.profile-page', 5000)
            .assert.title('My Profile - StarHackIt')
            .setValue('@biographyInput', 'My Bio')
            .click('@submit')

    });

    it('save biography too long', function (client) {
        client.page.profile().navigate()
            .waitForElementVisible('.profile-page', 5000)
            .setValue('@biographyInput', 'abcdefhigk'.repeat(10))
            .click('@submit')

    });
});
