mirror of
https://github.com/nextcloud/server.git
synced 2026-05-15 01:49:53 -04:00
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>
This commit is contained in:
parent
6d9a6f03fb
commit
424979c32e
1 changed files with 10 additions and 1 deletions
|
|
@ -207,6 +207,13 @@ class FilesAppContext implements Context, ActorAwareInterface {
|
|||
describedAs("File actions menu in Files app");
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Locator
|
||||
*/
|
||||
public static function detailsMenuItem() {
|
||||
return self::fileActionsMenuItemFor("Details");
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Locator
|
||||
*/
|
||||
|
|
@ -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();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue