diff --git a/cypress/e2e/Home.cy.js b/cypress/e2e/Home.cy.js new file mode 100644 index 0000000..e265299 --- /dev/null +++ b/cypress/e2e/Home.cy.js @@ -0,0 +1,29 @@ +describe('template spec', () => { + beforeEach(() => { + // Common setup code + cy.visit('http://localhost:3000/'); + + + }); + it('home rendering', () => { + cy.visit('http://localhost:3000/') + cy.contains('Book Ride').click() + //book ride + //Select car + cy.get('select#Select-Your-Car-Type').select('Toyota Camry'); + //Select pickup + cy.get('select#Pick-up').select('Nis'); + //select dropof + cy.get('select#Drop-of').select('Belgrade'); + //select date + cy.get('input#picktime').type('2021-05-05'); + //drop time + cy.get('input#droptime').type('2021-10-05'); + //search book + cy.contains('Search').click(); + }); + + + +}) +