package com.example.tests;

import org.testng.annotations.*;

public class ContactCreationTests extends TestBase {

    @Test
    public void testNonEmptyContactCreation() throws Exception {
        openMainPage();
        initContactCreation();

        ContactData contactData = new ContactData();
        contactData.firstname = "Anna";
        contactData.lastname = "Tretyakova";
        contactData.address = "Saint-Petersburg";
        contactData.homePhoneNumber = "8(812)7252525";
        contactData.mobilePhoneNumber = "8(950)7257272";
        contactData.workPhoneNumber = "8(812)725725";
        contactData.email = "anna.tretyakova@gmail.com";
        contactData.email2 = "anna2.tretyakova@gmail.com";
        contactData.bday = "1";
        contactData.bmonth = "January";
        contactData.byear = "1988";
        contactData.address2 = "Moscow";
        contactData.homePhoneNumber2 = "";

        fillContactForm(contactData);
        submitContactCreation();
        returnToHomePage();
    }

}


@@ -1009,11 +1009,773 @@
 %0A    %7D%0A%0A
+    @Test%0A    public void testEmptyContactCreation() throws Exception %7B%0A        openMainPage();%0A        initContactCreation();%0A%0A        ContactData contactData = new ContactData();%0A        contactData.firstname = %22%22;%0A        contactData.lastname = %22%22;%0A        contactData.address = %22%22;%0A        contactData.homePhoneNumber = %22%22;%0A        contactData.mobilePhoneNumber = %22%22;%0A        contactData.workPhoneNumber = %22%22;%0A        contactData.email = %22%22;%0A        contactData.email2 = %22%22;%0A        contactData.bday = %22-%22;%0A        contactData.bmonth = %22-%22;%0A        contactData.byear = %22%22;%0A        contactData.address2 = %22%22;%0A        contactData.homePhoneNumber2 = %22%22;%0A%0A        fillContactForm(contactData);%0A        submitContactCreation();%0A        returnToHomePage();%0A    %7D%0A%0A
 %7D%0A%0A

Task_2_addition