Screenshot 2025-02-06 at 7.17.48 PM.png

Write automated tests covering the full process of ordering a taxi. The tests should cover:

  1. Setting the address
  2. Selecting Supportive plan(Tip: don't forget to make an if condition whether this tariff is selected or not. To avoid unnecessary clicks that lead to test failures )
  3. Filling in the phone number(Tip: don't forget to use the retrieve_phone_code() method from the helpers.py file to retrieve the sms code)
  4. Adding a credit card (Tip: the ‘Link’ button may not become clickable until the card CVV field on the “Adding a card” modal id=”code” class=”card-input” loses focus. To change focus you can simulate the user pressing TAB or clicking somewhere else on the screen).
  5. Writing a comment for the driver
  6. Ordering a Blanket and handkerchiefs (Tip: there are two selectors to be aware of here. One selector to click on and one to run assert on to verify that the state changed).
  7. Ordering 2 Ice creams
  8. Order a taxi with the ‘Supportive’ tariff. The car search modal window should appear. (Tip: When ordering, don't forget to add a message for the driver)

You will continue to work in the same files that you worked in for Project 7. Open your project in PyCharm.

Tasks

Task 1: Add a setup and teardown classes as class methods

Setup class

Teardown class

Task 2: Add a file for the page class

You’re using POM so you need a page class for Urban Routes. You need to do the following: