aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorDaniel Calviño Sánchez <danxuliu@gmail.com>2018-11-24 18:16:09 +0100
committerBackportbot <backportbot-noreply@rullzer.com>2018-11-27 16:56:38 +0000
commit876ee0fd76b6c464740379cc8fb8d5001e8628c7 (patch)
treeb405c055c2aaecae87b7e8fe08f771235953db42 /tests
parentfc0a1d10159e60d1e76a3f141b5c13da7a633c1f (diff)
downloadnextcloud-server-876ee0fd76b6c464740379cc8fb8d5001e8628c7.tar.gz
nextcloud-server-876ee0fd76b6c464740379cc8fb8d5001e8628c7.zip
Wait for the comment to be added before changing to another file
If the server is too slow, changing to a different file immediately after sending a new comment but without waiting for the comment to be shown for the original file could cause the new comment to be shown for the current file instead. This is, indeed, a bug in the comments. However, it is not possible to test it reliably in the acceptance tests, as it depends on how fast the server adds the message and how fast the client changes to a different file; sometimes the test would fail and sometimes it would not. Therefore, now it is waited for the comment to be added before changing to another file, as in this case it can be reliably tested that changing to a different file does not cause the comments from the previous file to be shown in the current file (this was a different bug already fixed and due to which this test was added in the first place). Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/acceptance/features/app-comments.feature1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/acceptance/features/app-comments.feature b/tests/acceptance/features/app-comments.feature
index 1ee113d0aac..42893e5ea35 100644
--- a/tests/acceptance/features/app-comments.feature
+++ b/tests/acceptance/features/app-comments.feature
@@ -24,6 +24,7 @@ Feature: app-comments
And I open the details view for "Folder"
And I open the "Comments" tab in the details view
And I create a new comment with "Comment in Folder" as message
+ And I see a comment with "Comment in Folder" as message
And I open the details view for "welcome.txt"
# The "Comments" tab should already be opened
When I create a new comment with "Comment in welcome.txt" as message