Skip to content

Commit f2a5933

Browse files
committed
test: following comment links leads to activity tab
Test the current behavior: When clicking on a comment related link such as the "new comment" icon or the search results for comments Nextcloud opens the activity tab of the corresponding file. I am not sure if this is desired. But it is the current behavior. Make the comment tests pass by clicking on the "Comments" tab whenever we want to see the actual comment instead of the activity list. This used to be hidden because the activity app was not installed by default. However other comment related tests require the app to be installed. Since it is a default err on the side of documenting the current default behavior. Signed-off-by: Azul <azul@riseup.net>
1 parent 7b81e98 commit f2a5933

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/acceptance/features/app-comments.feature

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ Feature: app-comments
9797
Then I see that "shared.txt" has unread comments
9898
And I open the unread comments for "shared.txt"
9999
And I see that the details view is open
100+
And I open the "Comments" tab in the details view
100101
And I see a comment with "Hello world" as message
101102

102103
Scenario: unread comment icon shown for comment written by the sharee in a shared file
@@ -121,6 +122,7 @@ Feature: app-comments
121122
Then I see that "shared.txt" has unread comments
122123
And I open the unread comments for "shared.txt"
123124
And I see that the details view is open
125+
And I open the "Comments" tab in the details view
124126
And I see a comment with "Hello world" as message
125127

126128
Scenario: unread comment icon shown for comment written by the sharer in a shared folder
@@ -142,6 +144,7 @@ Feature: app-comments
142144
Then I see that "Folder" has unread comments
143145
And I open the unread comments for "Folder"
144146
And I see that the details view is open
147+
And I open the "Comments" tab in the details view
145148
And I see a comment with "Hello world" as message
146149

147150
Scenario: unread comment icon shown for comment written by the sharee in a shared folder
@@ -166,6 +169,7 @@ Feature: app-comments
166169
Then I see that "Folder" has unread comments
167170
And I open the unread comments for "Folder"
168171
And I see that the details view is open
172+
And I open the "Comments" tab in the details view
169173
And I see a comment with "Hello world" as message
170174

171175
Scenario: unread comment icon shown for comment written by the sharer in a child folder of a shared folder
@@ -190,6 +194,7 @@ Feature: app-comments
190194
Then I see that "Child folder" has unread comments
191195
And I open the unread comments for "Child folder"
192196
And I see that the details view is open
197+
And I open the "Comments" tab in the details view
193198
And I see a comment with "Hello world" as message
194199

195200
Scenario: unread comment icon shown for comment written by the sharee in a child folder of a shared folder
@@ -215,6 +220,7 @@ Feature: app-comments
215220
Then I see that "Child folder" has unread comments
216221
And I open the unread comments for "Child folder"
217222
And I see that the details view is open
223+
And I open the "Comments" tab in the details view
218224
And I see a comment with "Hello world" as message
219225

220226

@@ -281,6 +287,7 @@ Feature: app-comments
281287
And I open the search result 1
282288
Then I see that the details view is open
283289
And I see that the file name shown in the details view is "welcome.txt"
290+
And I open the "Comments" tab in the details view
284291
And I see a comment with "Hello world" as message
285292
And I see that the file list is currently in "Home"
286293
And I see that the file list contains a file named "welcome.txt"
@@ -300,6 +307,7 @@ Feature: app-comments
300307
And I open the search result 1
301308
Then I see that the details view is open
302309
And I see that the file name shown in the details view is "Folder"
310+
And I open the "Comments" tab in the details view
303311
And I see a comment with "Hello world" as message
304312
And I see that the file list is currently in "Home"
305313
And I see that the file list contains a file named "welcome.txt"
@@ -320,6 +328,7 @@ Feature: app-comments
320328
And I open the search result 1
321329
Then I see that the details view is open
322330
And I see that the file name shown in the details view is "Child folder"
331+
And I open the "Comments" tab in the details view
323332
And I see a comment with "Hello world" as message
324333
And I see that the file list is currently in "Home/Folder"
325334
And I see that the file list contains a file named "Child folder"

0 commit comments

Comments
 (0)