<commit_before>package org.openlmis.functional;


import org.openlmis.UiUtils.TestCaseHelper;
import org.openlmis.pageobjects.CreateFacilityPage;
import org.openlmis.pageobjects.LoginPage;
import org.springframework.test.context.transaction.TransactionConfiguration;
import org.springframework.transaction.annotation.Transactional;
import org.testng.annotations.AfterClass;
import org.testng.annotations.DataProvider;
import org.testng.annotations.Test;
@TransactionConfiguration(defaultRollback=true)
@Transactional
public class CreateFacilityTest extends TestCaseHelper {


    @Test(dataProvider = "Data-Provider-Function-Positive")
    public void testLoginPositive(String[] credentials) {

        LoginPage loginpage=new LoginPage(testWebDriver);
        CreateFacilityPage createfacilitypage=new CreateFacilityPage(testWebDriver);
        loginpage.login(credentials[0], credentials[1]);
        createfacilitypage.navigateCreateFacility();
        createfacilitypage.enterAndVerifyFacility();
        createfacilitypage.insertUserAndAllocateFacility();

    }

//    @AfterClass
//    public void tearDown() throws Exception
//    {
//        CreateFacilityPage createfacilitypage=new CreateFacilityPage(testWebDriver);
//        createfacilitypage.deleteUser();
//    }
<commit_msg>#0|<NAME>|Added log out functionality for create facility functional test<commit_after>package org.openlmis.functional;


import org.openlmis.UiUtils.TestCaseHelper;
import org.openlmis.pageobjects.CreateFacilityPage;
import org.openlmis.pageobjects.LoginPage;
import org.springframework.test.context.transaction.TransactionConfiguration;
import org.springframework.transaction.annotation.Transactional;
import org.testng.annotations.AfterClass;
import org.testng.annotations.DataProvider;
import org.testng.annotations.Test;
@TransactionConfiguration(defaultRollback=true)
@Transactional
public class CreateFacilityTest extends TestCaseHelper {


    @Test(dataProvider = "Data-Provider-Function-Positive")
    public void testLoginPositive(String[] credentials) {

        LoginPage loginpage=new LoginPage(testWebDriver);
        CreateFacilityPage createfacilitypage=new CreateFacilityPage(testWebDriver);
        loginpage.login(credentials[0], credentials[1]);
        createfacilitypage.navigateCreateFacility();
        createfacilitypage.enterAndVerifyFacility();
        createfacilitypage.insertUserAndAllocateFacility();
        loginpage.logout();

    }

//    @AfterClass
//    public void tearDown() throws Exception
//    {
//        CreateFacilityPage createfacilitypage=new CreateFacilityPage(testWebDriver);
//        createfacilitypage.deleteUser();
//    }

{'fraction_non_alphanumeric': 0.0902621722846442, 'fraction_numerical': 0.0018726591760299626, 'mean_word_length': 5.197215777262181, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '6002776', 'n_tokens_mistral': 714, 'n_tokens_neox': 698, 'n_words': 113}