<commit_before>'use strict';
var webdriver = require('selenium-webdriver');
var test = require('selenium-webdriver/testing');

test.describe('Login', function() {
    this.timeout(30000);
    var driver;

    test.beforeEach(function() {
        driver = new webdriver.Builder().forBrowser('firefox').build();
    });

    test.afterEach(function() {
        driver.quit();
    });

    test.it('with valid credentials', function() {
        driver.get('http://the-internet.herokuapp.com/login');
        driver.findElement({id: 'username'}).sendKeys('tomsmith');
        driver.findElement({id: 'password'}).sendKeys('<PASSWORD>!');
        driver.findElement({css: 'button'}).click();
    });
});
<commit_msg>add-assertions: Added assertion check to LoginTest.js<commit_after>'use strict';
var webdriver = require('selenium-webdriver');
var test = require('selenium-webdriver/testing');
var assert = require('assert');

test.describe('Login', function() {
    this.timeout(30000);
    var driver;

    test.beforeEach(function() {
        driver = new webdriver.Builder().forBrowser('firefox').build();
    });

    test.afterEach(function() {
        driver.quit();
    });

    test.it('with valid credentials', function() {
        driver.get('http://the-internet.herokuapp.com/login');
        driver.findElement({id: 'username'}).sendKeys('tomsmith');
        driver.findElement({id: 'password'}).sendKeys('<PASSWORD>!');
        driver.findElement({css: 'button'}).click();
        driver.findElement({css: '.flash.success'}).isDisplayed().then(function(elementDisplayed) {
            assert.equal(elementDisplayed, true, 'Success message not displayed');
        });
    });
});

{'fraction_non_alphanumeric': 0.1847246891651865, 'fraction_numerical': 0.005920663114268798, 'mean_word_length': 3.747191011235955, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3467148', 'n_tokens_mistral': 508, 'n_tokens_neox': 487, 'n_words': 76}