From 4303b654cc28f5f2ca1768b9f39f93db68db9e3e Mon Sep 17 00:00:00 2001 From: Dipak Acharya Date: Fri, 2 Nov 2018 17:02:17 +0545 Subject: [PATCH] Fix comments and gherkein scenarios --- .../features/lib/FilesPageElement/DetailsDialog.php | 4 ++-- tests/acceptance/features/webUIFiles/versions.feature | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/acceptance/features/lib/FilesPageElement/DetailsDialog.php b/tests/acceptance/features/lib/FilesPageElement/DetailsDialog.php index 9566f8b5df6b..2878d40a4992 100644 --- a/tests/acceptance/features/lib/FilesPageElement/DetailsDialog.php +++ b/tests/acceptance/features/lib/FilesPageElement/DetailsDialog.php @@ -117,7 +117,7 @@ private function getCommentXpath($content) { } /** - * find the xpath of comment with given content + * find the xpath of version list * * @param string $content * @@ -134,7 +134,7 @@ private function getCommentXpath($content) { } /** - * find the xpath of comment with given content + * find the xpath of button to revert to last version * * @param string $content * diff --git a/tests/acceptance/features/webUIFiles/versions.feature b/tests/acceptance/features/webUIFiles/versions.feature index ac06344ca7d7..65958f4322d6 100644 --- a/tests/acceptance/features/webUIFiles/versions.feature +++ b/tests/acceptance/features/webUIFiles/versions.feature @@ -1,4 +1,4 @@ -@webUI @insulated @files_versions-app-required @comments-app-required +@webUI @insulated @files_versions-app-required Feature: Versions of a file As a user @@ -18,7 +18,7 @@ Feature: Versions of a file And user "user0" has uploaded file with content "new lorem content" to "/lorem.txt" When the user browses directly to display the "versions" details of file "lorem.txt" in folder "/" Then the content of file "lorem.txt" for user "user0" should be "new lorem content" - Then the versions list should contain 2 entries + And the versions list should contain 2 entries Scenario: restoring file to old version changes the content of the file Given user "user0" has logged in using the webUI @@ -38,4 +38,4 @@ Feature: Versions of a file And the user has browsed to the files page When the user browses directly to display the "versions" details of file "lorem-file.txt" in folder "/" Then the content of file "lorem-file.txt" for user "user1" should be "new lorem content" - Then the versions list should contain 2 entries + And the versions list should contain 2 entries