<commit_before>import FormPage from '../pageobjects/form.page'

describe('auth form', function () {
    it('should deny access with wrong creds', function () {
        FormPage.open()
        FormPage.username.setValue('foo')
        FormPage.password.setValue('<PASSWORD>')
        FormPage.submit()

        expect(FormPage.flash.getText()).toContain('Your username is invalid!')
    })

    it('should allow access with correct creds', function () {
        FormPage.open()
        FormPage.username.setValue('tomsmith')
        FormPage.password.setValue('<PASSWORD>!')
        FormPage.submit()

        FormPage.flash.waitForVisible()
        expect(FormPage.flash.getText()).toContain('You logged into a secure area!')
    })
})
<commit_msg>Fix form spec error<commit_after>import FormPage from '../pageobjects/form.page'

describe('auth form', function () {
    it('should deny access with wrong creds', function () {
        FormPage.open()
        FormPage.username.setValue('foo')
        FormPage.password.setValue('<PASSWORD>')
        FormPage.submit()

        FormPage.flash.waitForVisible();
        expect(FormPage.flash.getText()).toContain('Your username is invalid!')
    })

    it('should allow access with correct creds', function () {
        FormPage.open()
        FormPage.username.setValue('tomsmith')
        FormPage.password.setValue('<PASSWORD>!')
        FormPage.submit()

        FormPage.flash.waitForVisible()
        expect(FormPage.flash.getText()).toContain('You logged into a secure area!')
    })
})

{'fraction_non_alphanumeric': 0.1406351263771873, 'fraction_numerical': 0.0, 'mean_word_length': 3.073878627968338, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '5251597', 'n_tokens_mistral': 427, 'n_tokens_neox': 428, 'n_words': 84}