text: from model.formfiller import Contact
  
  
  def test_add_new_contact(app, json_contacts):
      contact = json_contacts
      old_contacts = app.contact.get_contact_list()
      app.contact.add_new_contact(contact)
      assert len(old_contacts) + 1 == app.contact.count()
      new_contacts = app.contact.get_contact_list()
      old_contacts.append(contact)
      assert sorted(old_contacts, key=Contact.id_or_max) == sorted(new_contacts, key=Contact.id_or_max)
      app.open_home_page()
  
  