favorites.feature 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. Feature: favorite
  2. Background:
  3. Given using api version "1"
  4. Scenario: Favorite a folder
  5. Given using dav path "remote.php/webdav"
  6. And As an "admin"
  7. And user "user0" exists
  8. When user "user0" favorites element "/FOLDER"
  9. Then as "user0" gets properties of folder "/FOLDER" with
  10. |{http://owncloud.org/ns}favorite|
  11. And the single response should contain a property "{http://owncloud.org/ns}favorite" with value "1"
  12. Scenario: Favorite and unfavorite a folder
  13. Given using dav path "remote.php/webdav"
  14. And As an "admin"
  15. And user "user0" exists
  16. When user "user0" favorites element "/FOLDER"
  17. And user "user0" unfavorites element "/FOLDER"
  18. Then as "user0" gets properties of folder "/FOLDER" with
  19. |{http://owncloud.org/ns}favorite|
  20. And the single response should contain a property "{http://owncloud.org/ns}favorite" with value ""
  21. Scenario: Favorite a file
  22. Given using dav path "remote.php/webdav"
  23. And As an "admin"
  24. And user "user0" exists
  25. When user "user0" favorites element "/textfile0.txt"
  26. Then as "user0" gets properties of file "/textfile0.txt" with
  27. |{http://owncloud.org/ns}favorite|
  28. And the single response should contain a property "{http://owncloud.org/ns}favorite" with value "1"
  29. Scenario: Favorite and unfavorite a file
  30. Given using dav path "remote.php/webdav"
  31. And As an "admin"
  32. And user "user0" exists
  33. When user "user0" favorites element "/textfile0.txt"
  34. And user "user0" unfavorites element "/textfile0.txt"
  35. Then as "user0" gets properties of file "/textfile0.txt" with
  36. |{http://owncloud.org/ns}favorite|
  37. And the single response should contain a property "{http://owncloud.org/ns}favorite" with value ""