package ru.stqa.pft.m2.tests;
import org.hamcrest.CoreMatchers;
import org.hamcrest.MatcherAssert;
import org.testng.Assert;
import org.testng.annotations.Test;
import ru.stqa.pft.m2.model.CustomerData;

import java.util.List;

import static org.hamcrest.CoreMatchers.equalTo;
import static org.hamcrest.MatcherAssert.assertThat;

public class CustomerCreationTests extends TestBase {

    @Test
    public void testCustomerCreation() {

        //app.getNav().closeNoisePopup();
        app.getNav().gotoCustomerGrid();
        int before = app.getCustomerHelper().getCustomerCount();
        app.getCustomerHelper().createCustomer(
                new CustomerData()
                        .withFirstname("Tester")
                        .withLastname("Customer"),
                        //.withGender("Male"),
                true
        );
        int after = app.getCustomerHelper().getCustomerCount();
        assertThat(after, equalTo(before + 1));
    }

}

@@ -662,16 +662,75 @@
 rData()%0A
+                        .withEmail(%22Test1235767@gmail.by%22)%0A
         

edit email