diff --git a/cypress/e2e/contactsSpec.cy.js b/cypress/e2e/contactsSpec.cy.js index bf8737c..429d0be 100644 --- a/cypress/e2e/contactsSpec.cy.js +++ b/cypress/e2e/contactsSpec.cy.js @@ -75,7 +75,7 @@ describe("Contacts page", () => { cy.get("input[type='search']").should( "have.attr", "placeholder", - "Search Contacts..." + "🔍 Search Contacts" ); }); @@ -342,7 +342,7 @@ describe("Sad Paths - Contacts Page", () => { cy.get("input[type='search']").should( "have.attr", "placeholder", - "Search Contacts..." + "🔍 Search Contacts" ); cy.get("table").find("th").should("have.length", 3); diff --git a/src/components/contacts/Contacts.tsx b/src/components/contacts/Contacts.tsx index e1d26cb..1333a0e 100644 --- a/src/components/contacts/Contacts.tsx +++ b/src/components/contacts/Contacts.tsx @@ -80,10 +80,10 @@ function Contacts({ userData }: UserInformationProps) { const searchBar = (
event.preventDefault()}> @@ -93,14 +93,14 @@ function Contacts({ userData }: UserInformationProps) { const contactData = contacts.map((data) => { const companyName = data.attributes.company?.name || "N/A"; return ( - + - + {data.attributes.first_name} {data.attributes.last_name} - {companyName} - + {companyName} + {data.attributes.notes} @@ -109,14 +109,14 @@ function Contacts({ userData }: UserInformationProps) { return (
-
-

+
+

Contacts

- {searchBar} +
{searchBar}
- @@ -130,7 +130,7 @@ function Contacts({ userData }: UserInformationProps) {

) : null} - +
Name Company