nextcloud/tests/acceptance/features/bootstrap
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
..
AppNavigationContext.php Extract app navigation elements to its own context 2017-07-08 15:36:01 +02:00
CommentsAppContext.php Take into account the comment message when looking for it 2018-02-15 17:48:07 +01:00
FeatureContext.php Move acceptance tests from build/acceptance to tests/acceptance 2017-04-21 14:44:29 +02:00
FileListAncestorSetter.php Generalize file list steps so a specific ancestor can be used 2018-03-09 03:37:08 +01:00
FileListContext.php Generalize file list steps so a specific ancestor can be used 2018-03-09 03:37:08 +01:00
FilesAppContext.php Generalize file list steps so a specific ancestor can be used 2018-03-09 03:37:08 +01:00
FilesSharingAppContext.php Generalize file list steps so a specific ancestor can be used 2018-03-09 03:37:08 +01:00
LoginPageContext.php made small changes to login screen 2018-01-11 12:37:47 +01:00
NotificationContext.php Remove "content" locator from acceptance tests 2017-05-02 15:09:25 +02:00
SettingsContext.php Add acceptance tests for unselecting items in dropdown for tags 2017-07-10 03:38:22 +02:00
SettingsMenuContext.php try to lower the timeout in an acceptance test 2017-06-26 14:42:07 +02:00
ThemingAppContext.php Allows adding of hex color to the theme-color 2017-12-08 10:42:41 +01:00
UsersSettingsContext.php Fix acceptance tests 2018-02-28 11:17:39 +01:00