<commit_before>﻿module Kitos.Tests.e2e.Home {
    class KitosHomePage {
        emailInput;

        constructor() {
            this.emailInput = element(by.model('email'));
        }

        get(): void {
            browser.get('https://localhost:44300');
        }

        get email(): string {
            return this.emailInput.getText();
        }

        set email(value: string) {
            this.emailInput.sendKeys(value);
        }
    }

    describe('home view', () => {
        var homePage = new KitosHomePage();
        beforeEach(() => {
            homePage.get();
        });

        it('should mark invalid email in field', () => {
            // arrange
            var emailField = homePage.emailInput;

            // act
            homePage.email = 'some invalid email';

            // assert
            expect(emailField.getAttribute('class')).toMatch('ng-invalid');
        });

        it('should mark valid email in field', () => {
            // arrange
            var emailField = homePage.emailInput;
            // act
            homePage.email = '<EMAIL>';
<commit_msg>Cleanup home e2e test.<commit_after>﻿module Kitos.Tests.e2e.Home {
    class KitosHomePage {
        emailInput;

        constructor() {
            this.emailInput = element(by.model('email'));
        }

        get(): void {
            browser.get('https://localhost:44300');
        }

        get email(): string {
            return this.emailInput.getText();
        }

        set email(value: string) {
            this.emailInput.sendKeys(value);
        }
    }

    describe('home view', () => {
        var homePage;

        beforeEach(() => {
            homePage = new KitosHomePage();
            homePage.get();
        });

        it('should mark invalid email in field', () => {
            // arrange
            var emailField = homePage.emailInput;

            // act
            homePage.email = 'some invalid email';

            // assert
            expect(emailField.getAttribute('class')).toMatch('ng-invalid');
        });

        it('should mark valid email in field', () => {
            // arrange
            var emailField = homePage.emailInput;
            // act
            homePage.email = '<EMAIL>';

{'fraction_non_alphanumeric': 0.1328609388839681, 'fraction_numerical': 0.005757307351638618, 'mean_word_length': 1.4906284454244763, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 13, 'https://': 2, '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': '1674552', 'n_tokens_mistral': 603, 'n_tokens_neox': 581, 'n_words': 120}