Skip to content

e2e-test-quest/kata-e2e-uuv

Repository files navigation

Kata E2E UUV

Version Française

Goal

The purpose of this kata is, through a few exercises, to practice writing end-to-end (E2E) tests with the UUV tool.

The web application for which we are to write E2E tests is Weather App.

It's a simple application that displays the weather for a few towns.

Set up your environment

You can either open a codespace from this repository or perform the following actions if you are developing from your local environment:

  1. Clone this Git repository in a directory we'll call KATA_HOME
  2. Install autocompletion in the IDE (if intelliJ, do not run as administrator)
  3. Open project in IDE
  4. Then execute from a terminal :
    npm install
  5. Run the first-test.feature test :
    • From Intellij: Run the UUV task "open" (if you have rights problems, check the Use local npm script ckeckbox)
    • From a terminal :
      npx uuv open
  6. You're ready to work out

Exercises

  1. Hello World : Correct the test to make it successful

  2. Homepage : Check that the following elements are visible on the home page:

    • a title Welcome to Weather App
    • a button Get started
      See Solution
  3. Weather : Check that from the home page, when you click on Get started, the following elements are visible:

    • a text Nothing to display
    • The list of towns in the left panel ['Douala', 'Tunis', 'Limoges']
      See Solution
  4. TownSelection : Check that from the page with url https://e2e-test-quest.github.io/weather-app/?isStarted=true, when select the city Douala, the following elements are visible in the details section :

  5. Filter : Check that from the page with url https://e2e-test-quest.github.io/weather-app/?isStarted=true, when enter the text i in the search field and click on the search button, the towns available are : ['Tunis', 'Limoges']
    See Solution

  6. Keyboard Navigation : Check that from the page with url https://e2e-test-quest.github.io/weather-app/, when start the keyboard navigation from the top of the page, then you see the following items focused during navigation :

    • a link Weather App's Logo
    • a link Home
    • a button Get started
      See Solution
  7. To go further : You can also :

Helpful links