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.1KB

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