HelloWorld.feature 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. Feature: HelloWorld
  2. I want to open the home page
  3. Scenario: Navigating Home
  4. Given I open the home page
  5. Then I see "Vite App" in the title
  6. Then I should see the "chronos-logo" element
  7. @ignore
  8. Scenario: This Test should be skipped
  9. Scenario: Clicking on the button enough times should break it
  10. Given I open the home page
  11. And I can see the "click-me" element
  12. When I click on the "click-me" button 60 times
  13. Then The "click-me" button should say "It's Broken!" and be disabled
  14. Scenario: Switching Dark Mode
  15. Given I open the home page
  16. And I can see the "dark-mode" element
  17. When I click on the "dark-mode" element
  18. Then The "dark-mode" switch should say "Dark"
  19. Then The "app" element should have class "dark"
  20. Given I refresh the page
  21. Then The "app" element should have class "dark"
  22. Scenario: Switching Light Mode
  23. Given I open the home page
  24. And I can see the "dark-mode" element
  25. When I click on the "dark-mode" element
  26. Then The "dark-mode" switch should say "Dark"
  27. When I click on the "dark-mode" element
  28. Then The "dark-mode" switch should say "Light"
  29. Then The "app" element should not have class "dark"
  30. Given I refresh the page
  31. Then The "app" element should not have class "dark"
  32. Scenario: Mouseover/leave the sidebar
  33. Given I open the home page
  34. And I can see the "sidebar" element
  35. When I trigger the "mouseover" event on the "sidebar" element
  36. Then The "max-width" style on the "sidebar" element should be "240px"
  37. When I trigger the "mouseleave" event on the "sidebar" element
  38. Then The "max-width" style on the "sidebar" element should be "48px"