From c037cc370ee6a5c8f5d4da53da38734b3f25bf57 Mon Sep 17 00:00:00 2001 From: stazrouti Date: Sun, 11 Feb 2024 21:43:24 +0100 Subject: [PATCH] About testing e2e --- cypress/e2e/About.cy.js | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 cypress/e2e/About.cy.js diff --git a/cypress/e2e/About.cy.js b/cypress/e2e/About.cy.js new file mode 100644 index 0000000..9b1f05f --- /dev/null +++ b/cypress/e2e/About.cy.js @@ -0,0 +1,28 @@ +describe('Footer', () => { + beforeEach(() => { + cy.visit("http://localhost:3000/about"); + + }); + + it('displays About information', () => { + cy.get('h3').contains('About').should('exist'); + cy.get('h2').contains('You start the engine and your adventure begins').should('exist'); + cy.get('p').contains('Certain but she but shyness why cottage. Guy the put instrument sir entreaties affronting. Pretended exquisite see cordially the you. Weeks quiet do vexed or whose. Motionless if no to affronting imprudence no precaution. My indulged as disposal strongly attended.').should('exist'); + + }); + + it('plan section', () => { + cy.get('h3').contains('Plan your trip now').should('exist'); + cy.get('h2').contains('Quick & easy car rental').should('exist'); + cy.get('h3').contains('Contact Operator').should('exist'); + + }); + + it('Banner', () => { + cy.get('h2').contains('Book a car by getting in touch with us').should('exist'); + cy.get('h3').contains('(123) 456-7869').should('exist'); + + }); + + }); + \ No newline at end of file