summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Calviño Sánchez <danxuliu@gmail.com>2017-05-21 14:45:43 +0200
committerDaniel Calviño Sánchez <danxuliu@gmail.com>2017-05-21 14:45:43 +0200
commit41412088db32a6223ce92fafde5392ccb11e87ee (patch)
tree1b2121db65435fcb3220c3b4c98676c777a7f90f
parenta442c86a8465a27fab84837d2fc40f2211de06b8 (diff)
downloadnextcloud-server-41412088db32a6223ce92fafde5392ccb11e87ee.tar.gz
nextcloud-server-41412088db32a6223ce92fafde5392ccb11e87ee.zip
Update acceptance tests for issue #4921
Acceptance tests opened the details view by clicking on the middle of the file row, but due to the changes made in issue #4921 that now opens the file instead; this commit updates the acceptance tests to open the details view through the "Details" item in the file actions menu. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
-rw-r--r--tests/acceptance/features/bootstrap/FilesAppContext.php11
1 files changed, 10 insertions, 1 deletions
diff --git a/tests/acceptance/features/bootstrap/FilesAppContext.php b/tests/acceptance/features/bootstrap/FilesAppContext.php
index e769820c9ee..5916fd4bec6 100644
--- a/tests/acceptance/features/bootstrap/FilesAppContext.php
+++ b/tests/acceptance/features/bootstrap/FilesAppContext.php
@@ -210,6 +210,13 @@ class FilesAppContext implements Context, ActorAwareInterface {
/**
* @return Locator
*/
+ public static function detailsMenuItem() {
+ return self::fileActionsMenuItemFor("Details");
+ }
+
+ /**
+ * @return Locator
+ */
public static function viewFileInFolderMenuItem() {
return self::fileActionsMenuItemFor("View in folder");
}
@@ -234,7 +241,9 @@ class FilesAppContext implements Context, ActorAwareInterface {
* @Given I open the details view for :fileName
*/
public function iOpenTheDetailsViewFor($fileName) {
- $this->actor->find(self::mainLinkForFile($fileName), 10)->click();
+ $this->actor->find(self::fileActionsMenuButtonForFile($fileName), 10)->click();
+
+ $this->actor->find(self::detailsMenuItem(), 2)->click();
}
/**