<commit_before>package org.motechproject.testing.uifunctionaltests;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
import org.motechproject.uitest.TestBase;
import org.motechproject.uitest.page.DataServicesPage;


public class DataServicesUIFT extends TestBase {

    public static final String ENTITY_NAME = "newEntity";

    private DataServicesPage dataServicesPage;

    @Before
    public void initialize() {
        dataServicesPage = new DataServicesPage(getDriver());
        login();
    }

    @After
    public void cleanUp() throws InterruptedException {
        logout();
    }

    @Test
    public void newEntityTest () throws Exception {
        dataServicesPage.goToPage();
        assertEquals(dataServicesPage.createNewEntity(ENTITY_NAME), ENTITY_NAME);
        dataServicesPage.goToPage();
        dataServicesPage.goToEntityTable(ENTITY_NAME);
    }
}<commit_msg>MOTECH-2033: Adding selenium test for adding a new entity in MDS<commit_after>package org.motechproject.testing.uifunctionaltests;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
import org.motechproject.uitest.TestBase;
import org.motechproject.uitest.page.DataServicesPage;


public class DataServicesUIFT extends TestBase {

    public static final String ENTITY_NAME = "newEntity";

    private DataServicesPage dataServicesPage;

    @Before
    public void initialize() {
        dataServicesPage = new DataServicesPage(getDriver());
        login();
    }

    @After
    public void cleanUp() throws InterruptedException {
        logout();
    }

    @Test
    public void newEntityTest () throws Exception {
        dataServicesPage.goToPage();
        assertEquals(ENTITY_NAME, dataServicesPage.createNewEntity(ENTITY_NAME));
        dataServicesPage.goToPage();
        dataServicesPage.goToEntityTable(ENTITY_NAME);
    }
}
{'fraction_non_alphanumeric': 0.08465068842427333, 'fraction_numerical': 0.002039775624681285, 'mean_word_length': 3.8564356435643563, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '537939', 'n_tokens_mistral': 567, 'n_tokens_neox': 539, 'n_words': 120}