Skip to content

Commit

Permalink
About testing e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
stazrouti committed Feb 11, 2024
1 parent 0d6bf51 commit c037cc3
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions cypress/e2e/About.cy.js
Original file line number Diff line number Diff line change
@@ -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');

});

});

0 comments on commit c037cc3

Please sign in to comment.