summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Fix testRoeland Jago Douma2018-03-221-1/+1
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Merge pull request #8506 from nextcloud/use-appmanagerMorris Jobke2018-03-221-3/+3
|\ | | | | Use isInstalled of AppManger instead of reimplement it
| * Use isInstalled of AppManger instead of reimplement itMorris Jobke2018-03-211-3/+3
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Migrate tests for contacts manager to correct test classMorris Jobke2018-03-212-130/+32
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Merge pull request #7904 from nextcloud/fix_7224Morris Jobke2018-03-212-12/+12
|\ \ | | | | | | Add Cache-control: immutable
| * | Add Cache-control: immutableRoeland Jago Douma2018-03-192-12/+12
| | | | | | | | | | | | | | | | | | | | | | | | Cache generated CSS forever! Also cache combined JS forever Fix tests Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | | Show EOL warning in the update sectionJoas Schilling2018-03-201-0/+4
|/ / | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Remove \OCP\Files::tmpFolderRoeland Jago Douma2018-03-192-3/+3
| | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Remove \OCP\Files::tmpFileRoeland Jago Douma2018-03-193-3/+3
| | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Merge pull request #8255 from nextcloud/bugfix/noid/group-display-nameblizzz2018-03-153-57/+155
|\ \ | | | | | | Full implement group display names
| * | Fixed caldav tests and metadata 2John Molakvoæ (skjnldsv)2018-03-081-3/+3
| | | | | | | | | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
| * | Fix Metadata testsJohn Molakvoæ (skjnldsv)2018-03-081-1/+8
| | | | | | | | | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
| * | Fixed Controller TestJohn Molakvoæ (skjnldsv)2018-03-082-53/+144
| | | | | | | | | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* | | Remove deprecated OCP\ContactsMorris Jobke2018-03-142-18/+23
| |/ |/| | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Remove deprecated HTTPHelperRoeland Jago Douma2018-03-133-206/+0
| | | | | | | | | | | | | | | | * Remove the HTTP Helper * Remove from Server Containter * Removed legacy share tests that use it Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Merge pull request #8788 from nextcloud/cleanup-oc_apiMorris Jobke2018-03-131-115/+0
|\ \ | | | | | | Remove unused methods and constants from legacy OC_API
| * | Remove unused methods and constants from legacy OC_APIMorris Jobke2018-03-121-115/+0
| | | | | | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | | Use insertIfNotExist of the new interfaceMorris Jobke2018-03-124-135/+140
|/ / | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Merge pull request #8784 from nextcloud/remove-unused-deprecated-apphelperMorris Jobke2018-03-121-2/+0
|\ \ | | | | | | Remove unused and deprecated class and interface AppHelper
| * | Remove unused and deprecated class and interface AppHelperMorris Jobke2018-03-121-2/+0
| | | | | | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | | Use proper method to format absolute timestampMorris Jobke2018-03-121-64/+0
|/ / | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Merge pull request #8743 from nextcloud/strict_settingsRoeland Jago Douma2018-03-121-23/+0
|\ \ | | | | | | Strict settings
| * | Obsolete testRoeland Jago Douma2018-03-091-23/+0
| | | | | | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | | Header acceptance featuresJohn Molakvoæ (skjnldsv)2018-03-096-10/+239
| | | | | | | | | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* | | Merge pull request #8710 from nextcloud/followup/8596/tests-for-user-paginationblizzz2018-03-091-18/+111
|\ \ \ | | | | | | | | Tests for email collaborators pagination
| * | | Fix calculation if there are more resultsJoas Schilling2018-03-081-19/+19
| | | | | | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
| * | | Add tests for finding own email and user results paginationJoas Schilling2018-03-081-1/+94
| | |/ | |/| | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | Add acceptance tests for creation of subfolders in public shared foldersDaniel Calviño Sánchez2018-03-093-0/+121
| | | | | | | | | | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | | Extract common "wait for" functions to a helper classDaniel Calviño Sánchez2018-03-093-46/+86
| | | | | | | | | | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | | Generalize file list steps so a specific ancestor can be usedDaniel Calviño Sánchez2018-03-094-3/+115
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | | Generalize file list locators so a specific ancestor can be usedDaniel Calviño Sánchez2018-03-092-54/+66
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The file list is used in other places besides the Files app (for example, the File sharing app); in those cases the locators for the file list elements are the same, but not for the ancestor of the file list. To make possible to reuse the file list locators in those cases too now they receive the ancestor to use. Note that the locators for the file actions menu were not using an ancestor locator because it is expected that there is only one file actions menu at a time in the whole page; that may change in the future, but for the time being it is a valid assumption and thus the ancestor was not added to those locators in this commit. Although the locators were generalized the steps themselves still use the "FilesAppContext::currentSectionMainView" locator as ancestor; the steps will be generalized in a following commit. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | | Store the name of the actor in the Actor objectDaniel Calviño Sánchez2018-03-092-3/+19
| | | | | | | | | | | | | | | | | | This is needed to be able to easily use the actor as a key in an array. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | | Extract file list locators and steps to its own classDaniel Calviño Sánchez2018-03-093-250/+288
| |/ |/| | | | | | | | | | | | | | | | | Besides the extraction some minor adjustments (sorting locators for file action menu entries to reflect the order of the menu entries in the UI, moving parametrized locators like "createMenuItemFor" above the locators that use them and placing "descendantOf" calls always in a new line) were made too. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | Merge pull request #8648 from nextcloud/feature/csrf-token-controllerRoeland Jago Douma2018-03-081-0/+71
|\ \ | | | | | | Use session heartbeat to update CSRF token
| * | Add CSRF token controller to retrieve the current CSRF tokenChristoph Wurst2018-03-081-0/+71
| | | | | | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | | Merge pull request #8716 from nextcloud/fix-cache-prefixingRoeland Jago Douma2018-03-084-14/+37
|\ \ \ | | | | | | | | Remove base url from global cache prefix
| * | | Fix tests to use ICacheFactoryJulius Härtl2018-03-074-14/+37
| | |/ | |/| | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | | Add automatic handling of NoSuchElement exceptionsDaniel Calviño Sánchez2018-03-081-6/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | NoSuchElement exceptions are sometimes thrown instead of StaleElementReference exceptions. This can happen when the Selenium2 driver for Mink performs an action on an element through the WebDriver session instead of directly through the WebDriver element. In that case, if the element with the given ID does not exist, a NoSuchElement exception would be thrown instead of a StaleElementReference exception, so those cases are handled like StaleElementReference exceptions. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | | Add automatic handling of MoveTargetOutOfBounds exceptionsDaniel Calviño Sánchez2018-03-081-3/+17
| |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | MoveTargetOutOfBounds exceptions are sometimes thrown instead of ElementNotVisible exceptions. This can happen when the Selenium2 driver for Mink moves the cursor on an element using the "moveto" method of the Webdriver session, for example, before clicking on an element. In that case, if the element is not visible, "moveto" would throw a MoveTargetOutOfBounds exception instead of an ElementNotVisible exception, so those cases are handled like ElementNotVisible exceptions. Note that MoveTargetOutOfBounds exceptions could be thrown too if the element was visible but "out of reach"; there is no problem in handling those cases as if the element was not visible, as the exception will be thrown again anyway once it is verified that the element is indeed visible. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | Merge pull request #8593 from eneiluj/masterMorris Jobke2018-03-081-10/+78
|\ \ | |/ |/| Allow public page access to apps with group restrictions
| * Add testsRoeland Jago Douma2018-03-081-10/+78
| | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Merge pull request #8714 from nextcloud/8705Morris Jobke2018-03-071-0/+17
|\ \ | | | | | | Check if the cached js file exists
| * | Fix testsRoeland Jago Douma2018-03-071-0/+17
| | | | | | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | | Merge pull request #8652 from nextcloud/navigation-controller-etagMorris Jobke2018-03-071-0/+31
|\ \ \ | | | | | | | | Add ETag to NavigationController
| * | | Fix testsJulius Härtl2018-03-071-1/+1
| | | | | | | | | | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
| * | | Replace logout href to avoid new etag on every requestJulius Härtl2018-03-061-3/+3
| | | | | | | | | | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
| * | | Add ETag to NavigationControllerJulius Härtl2018-03-051-0/+31
| | | | | | | | | | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | | | Merge pull request #7419 from Abijeet/feature-7175Morris Jobke2018-03-064-3/+59
|\ \ \ \ | |_|/ / |/| | | Fixes #7175 - Allow to search for email address in user management
| * | | reuse query builderRobin Appelman2018-01-121-1/+3
| | | | | | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * | | refactor user searchingRobin Appelman2017-12-203-4/+33
| | | | | | | | | | | | | | | | | | | | | | | | add additional user searching tests Signed-off-by: Robin Appelman <robin@icewind.nl>