aab_basic_urls_test.rb 995 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. require 'browser_test_helper'
  2. class AABBasicUrlsTest < TestCase
  3. def test_logout
  4. @browser = browser_instance
  5. location(
  6. url: "#{browser_url}/#logout",
  7. )
  8. location_check(
  9. url: "#{browser_url}/#login",
  10. )
  11. end
  12. def test_session
  13. @browser = browser_instance
  14. location(
  15. url: "#{browser_url}/#system/sessions",
  16. )
  17. location_check(
  18. url: "#{browser_url}/#login",
  19. )
  20. end
  21. def test_profile
  22. @browser = browser_instance
  23. location(
  24. url: "#{browser_url}/#profile/linked",
  25. )
  26. location_check(
  27. url: "#{browser_url}/#login",
  28. )
  29. end
  30. def test_ticket
  31. @browser = browser_instance
  32. location(
  33. url: "#{browser_url}/#ticket/zoom/1",
  34. )
  35. location_check(
  36. url: "#{browser_url}/#login",
  37. )
  38. end
  39. def test_not_existing
  40. @browser = browser_instance
  41. location(
  42. url: "#{browser_url}/#not_existing",
  43. )
  44. location_check(
  45. url: "#{browser_url}/#not_existing",
  46. )
  47. end
  48. end