diff --git a/codegrade_mvp.test.js b/codegrade_mvp.test.js index 2624bae..bab4237 100644 --- a/codegrade_mvp.test.js +++ b/codegrade_mvp.test.js @@ -24,7 +24,7 @@ describe('index.html', () => { }); it('renders with an external stylesheet', () => { - const cssLinkTag = dom.window.document.head.querySelector('link[rel="stylesheet"]'); + const cssLinkTag = dom.window.document.head.querySelector('link[href="index.css"]'); expect(cssLinkTag).toBeInTheDocument(); }); @@ -40,7 +40,7 @@ describe('index.html', () => { expect(headerNavLinks[0].innerHTML).toMatch(/About/i); expect(headerNavLinks[1].innerHTML).toMatch(/Cookies/i); - expect(headerNavLinks[2].innerHTML).toMatch(/Celebrations/i); + expect(headerNavLinks[2].innerHTML).toMatch(/Weddings/i); expect(headerNavLinks[3].innerHTML).toMatch(/Catering/i); expect(headerNavLinks[4].innerHTML).toMatch(/Contact/i); }); @@ -50,7 +50,7 @@ describe('index.html', () => { expect(headerNavLinks[0].href.includes('#about')).toEqual(true); expect(headerNavLinks[1].href.includes('#cookies')).toEqual(true); - expect(headerNavLinks[2].href.includes('#celebrations')).toEqual(true); + expect(headerNavLinks[2].href.includes('#weddings')).toEqual(true); expect(headerNavLinks[3].href.includes('#catering')).toEqual(true); expect(headerNavLinks[4].href.includes('#contact')).toEqual(true); }); @@ -60,17 +60,17 @@ describe('index.html', () => { expect(h2Arr.length).toBe(5); expect(getByText(h2Arr[0], /About Sweet Eats Bakery/i)).toBeInTheDocument(); - expect(getByText(h2Arr[1], /Cookies/i)).toBeInTheDocument(); - expect(getByText(h2Arr[2], /Celebrations/i)).toBeInTheDocument(); - expect(getByText(h2Arr[3], /Catering/i)).toBeInTheDocument(); + expect(getByText(h2Arr[1], /Cupcakes/i)).toBeInTheDocument(); + expect(getByText(h2Arr[2], /Cookies/i)).toBeInTheDocument(); + expect(getByText(h2Arr[3], /Celebrations/i)).toBeInTheDocument(); expect(getByText(h2Arr[4], /Contact Us/i)).toBeInTheDocument(); }); it('renders the correct four images in body', () => { const expectedImgSrcsArr = [ "https://tk-assets.lambdaschool.com/bcf76f62-2431-4c22-b466-2e711f3da2b9_ui-i-bakery-main-header.png", + "https://tk-assets.lambdaschool.com/7393a8fd-c8e5-4003-921f-79e0d546d02c_ui-i-bakery-cookies.png", "https://tk-assets.lambdaschool.com/297378d6-9c89-430f-9d2e-46ae3d5edce8_ui-i-bakery-cupcake-i.png", - "https://tk-assets.lambdaschool.com/7393a8fd-c8e5-4003-921f-79e0d546d02c_ui-i-bakery-cookies.png", "https://tk-assets.lambdaschool.com/ab0cb095-5900-476c-b042-aea065d3dbbf_ui-i-bakery-celebrate.png" ]; const allImages = Array.from(container.querySelectorAll('img')); @@ -106,7 +106,7 @@ describe('index.html', () => { expect(footerNavLinks[0].innerHTML).toMatch(/About/i); expect(footerNavLinks[1].innerHTML).toMatch(/Cookies/i); - expect(footerNavLinks[2].innerHTML).toMatch(/Celebrations/i); + expect(footerNavLinks[2].innerHTML).toMatch(/Weddings/i); expect(footerNavLinks[3].innerHTML).toMatch(/Catering/i); expect(footerNavLinks[4].innerHTML).toMatch(/Contact/i); }); @@ -116,7 +116,7 @@ describe('index.html', () => { expect(footerNavLinks[0].href.includes('#about')).toEqual(true); expect(footerNavLinks[1].href.includes('#cookies')).toEqual(true); - expect(footerNavLinks[2].href.includes('#celebrations')).toEqual(true); + expect(footerNavLinks[2].href.includes('#weddings')).toEqual(true); expect(footerNavLinks[3].href.includes('#catering')).toEqual(true); expect(footerNavLinks[4].href.includes('#contact')).toEqual(true); }); diff --git a/index.html b/index.html index a48d8e5..b8f1a9b 100644 --- a/index.html +++ b/index.html @@ -16,7 +16,7 @@ About Cookies - Celebrations + Weddings Catering Contact @@ -31,21 +31,21 @@ - - Cookies + + Cupcakes Cookie soufflé dessert carrot cake fruitcake halvah pudding cake. Marzipan topping bear claw soufflé gingerbread biscuit. Tiramisu gummi bears chocolate bar sugar plum icing muffin cake jelly-o icing. - - Celebrations + + Cookies Candy apple pie lemon drops sweet roll danish. Tiramisu candy canes jelly-o jelly beans cotton candy pastry pudding tootsie roll carrot cake. Dessert sesame snaps brownie lemon drops cookie donut dragée. Toffee pie fruitcake powder gingerbread pudding. - Catering + Celebrations Sweet jelly-o apple pie powder jelly beans. Pastry sweet roll cake jujubes halvah soufflé brownie. Toffee cookie lemondrops jelly beans chocolate bar. Wafer muffin jujubes danish tart danish chocolate wafer. @@ -62,7 +62,7 @@ About Cookies - Celebrations + Weddings Catering Contact