Skip to content

Commit

Permalink
Home e2e automated
Browse files Browse the repository at this point in the history
  • Loading branch information
stazrouti committed Feb 6, 2024
1 parent b7863ff commit 5dcb630
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions cypress/e2e/Home.cy.js
Original file line number Diff line number Diff line change
@@ -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();
});



})

0 comments on commit 5dcb630

Please sign in to comment.