nextcloud/tests/acceptance
Daniel Calviño Sánchez fcd6cf08e0 Generalize file list steps so a specific ancestor can be used
The "FileListContext" provides steps to interact with and check the
behaviour of a file list. However, the "FileListContext" does not know
the right file list ancestor that has to be used by the file list steps,
so until now the file list steps were explicitly wired to the Files app
and they could be used only in that case.

Instead of duplicating the steps with a slightly different name (for
example, "I create a new folder named :folderName in the public shared
folder" instead of "I create a new folder named :folderName") the steps
were generalized; now contexts that "know" that certain file list
ancestor has to be used by the FileListContext steps performed by
certain actor from that point on (until changed again) set it
explicitly. For example, when the current page is the Files app then the
ancestor of the file list is the main view of the current section of the
Files app, but when the current page is a shared link then the ancestor
is set to null (because there will be just one file list, and thus its
ancestor is not relevant to differentiate between instances)

A helper trait, "FileListAncestorSetter", was introduced to reduce the
boilerplate needed to set the file list ancestor from other contexts.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-03-09 03:37:08 +01:00
..
config Extract file list locators and steps to its own class 2018-03-09 03:37:08 +01:00
features Generalize file list steps so a specific ancestor can be used 2018-03-09 03:37:08 +01:00
composer.json Move acceptance tests from build/acceptance to tests/acceptance 2017-04-21 14:44:29 +02:00
installAndConfigureServer.sh Add option to acceptance test runner to set the Nextcloud server domain 2017-07-20 07:54:39 +02:00
run-local.sh Add option to acceptance test runner to set the Selenium server 2017-07-20 07:56:51 +02:00
run.sh bump acceptance test suite to use php 7.1 image 2017-10-31 10:38:54 +01:00