test_task_run_1.py 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. import pytest
  2. class TestMainPage():
  3. # номер 1
  4. @pytest.mark.xfail
  5. @pytest.mark.smoke
  6. def test_guest_can_login(self, browser):
  7. assert True
  8. # номер 2
  9. @pytest.mark.regression
  10. def test_guest_can_add_book_from_catalog_to_basket(self, browser):
  11. assert True
  12. class TestBasket():
  13. # номер 3
  14. @pytest.mark.skip(reason="not implemented yet")
  15. @pytest.mark.smoke
  16. def test_guest_can_go_to_payment_page(self, browser):
  17. assert True
  18. # номер 4
  19. @pytest.mark.smoke
  20. def test_guest_can_see_total_price(self, browser):
  21. assert True
  22. @pytest.mark.skip
  23. class TestBookPage():
  24. # номер 5
  25. @pytest.mark.smoke
  26. def test_guest_can_add_book_to_basket(self, browser):
  27. assert True
  28. # номер 6
  29. @pytest.mark.regression
  30. def test_guest_can_see_book_price(self, browser):
  31. assert True
  32. # номер 7
  33. @pytest.mark.beta_users
  34. @pytest.mark.smoke
  35. def test_guest_can_open_gadget_catalogue(browser):
  36. assert True