/JsPlaywrightPractice

Artem Ovcharenko course

Primary LanguageJavaScript

JsPlaywrightPractice

Завдання:

  1. Створити новий репозиторій в GitHub
  2. Створити пустий Readme.md файл
  3. Створити 2 тести для https://www.saucedemo.com/ (тести шукай нижче).
  4. Тести і написанний код потрібно закомітити в нову гілку.
  5. Додати .gitignore файл
  6. Додати опис в Readme файлі, з поясненням, як користуватись репозиторієм та написанним кодом
  7. Запушати зміни в репозиторій та створити Pull Request вказавши мене, як ревʼюера.

Test 1 - Perform Login:

  1. Perform login using "standard_user"
  2. On the opened page verify:
  3. Products (1) title is displayed
  4. Shopping Cart icon (2) is displayed
  5. More than 1 product (3) is displayed

Test 2 - Add product to the cart:

  1. Perform login using "standard_user"
  2. Add the first product to the cart by clicking Add to Cart button
  3. Verify Shopping Cart icon contains the number of products added (equal 1)
  4. Open the Shopping Cart and verify the added product is displayed (the data should be taken from the Products page and used here to as an expected result)
  5. Remove the product by clicking Remove
  6. Verify no products are available in the Shopping Cart

Як користуватись репозиторієм

  1. Клонуєте репозиторій
  2. Дивитесь на цілих 2 тести
  3. Клянусь, шо намагалась винести логінку в окремий метод, але шось пішло не так)
  4. Чекаєте поки я пройду ПОМ на JS і зроблю КРОСІВО
  5. Хвалите мене яка я молодець <3