package com.example.tests;

import org.testng.annotations.Test;

public class ContactRemovalTests extends TestBase {

	@Test
	public void removeContact() {
		app.getNavigationHelper().openMainPage();
		app.getContactHelper().initContactEdit(1);
		app.getContactHelper().submitDeleteContact();
		app.getContactHelper().returnToHomePage();
	}
}

@@ -21,16 +21,87 @@
 tests;%0A%0A
+import static org.testng.Assert.assertEquals;%0A%0Aimport java.util.List;%0A%0A
 import o
@@ -263,16 +263,139 @@
 nPage();
+%0A%0A%09%09// save initial contacts list%0A%09%09List%3CContactData%3E initialContacts = app.getContactHelper().getContacts();%0A%0A%09%09// actions
 %0A%09%09app.g
@@ -432,9 +432,9 @@
 dit(
-1
+0
 );%0A%09
@@ -524,14 +524,210 @@
 ePage();
+%0A%0A%09%09// save new contact list%0A%09%09List%3CContactData%3E newContacts = app.getContactHelper().getContacts();%0A%0A%09%09// compare states%0A%09%09initialContacts.remove(0);%0A%09%09assertEquals(newContacts, initialContacts);
 %0A%09%7D%0A%7D%0A

add assert to ContactRemovalTests