You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

app-files-tags.feature 5.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. @apache
  2. Feature: app-files-tags
  3. Scenario: show the input field for tags in the details view
  4. Given I am logged in
  5. And I open the details view for "welcome.txt"
  6. And I see that the details view is open
  7. When I open the input field for tags in the details view
  8. Then I see that the input field for tags in the details view is shown
  9. Scenario: show the input field for tags in the details view after closing and opening the details view again
  10. Given I am logged in
  11. And I open the details view for "welcome.txt"
  12. And I see that the details view is open
  13. And I close the details view
  14. And I see that the details view is closed
  15. And I open the details view for "welcome.txt"
  16. And I see that the details view is open
  17. When I open the input field for tags in the details view
  18. Then I see that the input field for tags in the details view is shown
  19. Scenario: show the input field for tags in the details view after the sharing tab has loaded
  20. Given I am logged in
  21. And I open the details view for "welcome.txt"
  22. And I see that the details view is open
  23. And I open the "Sharing" tab in the details view
  24. And I see that the "Sharing" tab in the details view is eventually loaded
  25. When I open the input field for tags in the details view
  26. Then I see that the input field for tags in the details view is shown
  27. Scenario: create tags using the Administration settings
  28. Given I am logged in as the admin
  29. And I visit the settings page
  30. And I open the "Workflow" section
  31. # The "create" button does nothing before JavaScript was initialized, and
  32. # the only way to detect that is waiting for the button to select tags to be
  33. # shown.
  34. And I see that the button to select tags is shown
  35. When I create the tag "tag1" in the settings
  36. Then I see that the dropdown for tags in the settings eventually contains the tag "tag1"
  37. Scenario: add tags using the dropdown in the details view
  38. Given I am logged in as the admin
  39. And I visit the settings page
  40. And I open the "Workflow" section
  41. # The "create" button does nothing before JavaScript was initialized, and
  42. # the only way to detect that is waiting for the button to select tags to be
  43. # shown.
  44. And I see that the button to select tags is shown
  45. And I create the tag "tag1" in the settings
  46. And I create the tag "tag2" in the settings
  47. And I create the tag "tag3" in the settings
  48. And I create the tag "tag4" in the settings
  49. And I see that the dropdown for tags in the settings eventually contains the tag "tag1"
  50. And I see that the dropdown for tags in the settings eventually contains the tag "tag2"
  51. And I see that the dropdown for tags in the settings eventually contains the tag "tag3"
  52. And I see that the dropdown for tags in the settings eventually contains the tag "tag4"
  53. And I log out
  54. And I am logged in
  55. And I open the details view for "welcome.txt"
  56. And I open the input field for tags in the details view
  57. # When the input field is opened the dropdown is also opened automatically.
  58. When I check the tag "tag2" in the dropdown for tags in the details view
  59. And I check the tag "tag4" in the dropdown for tags in the details view
  60. Then I see that the tag "tag2" in the dropdown for tags in the details view is checked
  61. And I see that the tag "tag4" in the dropdown for tags in the details view is checked
  62. And I see that the input field for tags in the details view contains the tag "tag2"
  63. And I see that the input field for tags in the details view contains the tag "tag4"
  64. Scenario: remove tags using the dropdown in the details view
  65. Given I am logged in as the admin
  66. And I visit the settings page
  67. And I open the "Workflow" section
  68. # The "create" button does nothing before JavaScript was initialized, and
  69. # the only way to detect that is waiting for the button to select tags to be
  70. # shown.
  71. And I see that the button to select tags is shown
  72. And I create the tag "tag1" in the settings
  73. And I create the tag "tag2" in the settings
  74. And I create the tag "tag3" in the settings
  75. And I create the tag "tag4" in the settings
  76. And I see that the dropdown for tags in the settings eventually contains the tag "tag1"
  77. And I see that the dropdown for tags in the settings eventually contains the tag "tag2"
  78. And I see that the dropdown for tags in the settings eventually contains the tag "tag3"
  79. And I see that the dropdown for tags in the settings eventually contains the tag "tag4"
  80. And I log out
  81. And I am logged in
  82. And I open the details view for "welcome.txt"
  83. And I open the input field for tags in the details view
  84. # When the input field is opened the dropdown is also opened automatically.
  85. And I check the tag "tag2" in the dropdown for tags in the details view
  86. And I check the tag "tag4" in the dropdown for tags in the details view
  87. And I check the tag "tag3" in the dropdown for tags in the details view
  88. When I uncheck the tag "tag2" in the dropdown for tags in the details view
  89. And I uncheck the tag "tag4" in the dropdown for tags in the details view
  90. Then I see that the tag "tag2" in the dropdown for tags in the details view is not checked
  91. And I see that the tag "tag4" in the dropdown for tags in the details view is not checked
  92. And I see that the tag "tag3" in the dropdown for tags in the details view is checked
  93. And I see that the input field for tags in the details view does not contain the tag "tag2"
  94. And I see that the input field for tags in the details view does not contain the tag "tag4"
  95. And I see that the input field for tags in the details view contains the tag "tag3"