summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Make sure the file is readable before attempting to create a previewRoeland Jago Douma2018-05-291-0/+20
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* make sure force language is reflected in html lang attributeGeorg Ehrke2018-05-241-7/+43
| | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* Certain tokens can expireRoeland Jago Douma2018-05-221-0/+75
| | | | | | | | However due to the nature of what we store in the token (encrypted passwords etc). We can't just delete the tokens because that would make the oauth refresh useless. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Allow the rotation of tokensRoeland Jago Douma2018-05-221-0/+42
| | | | | | This for example will allow rotating the apptoken for oauth Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Add tests for special domain nameMorris Jobke2018-05-091-0/+2
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Add tests for domainsMorris Jobke2018-05-091-0/+2
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Move regex to a function and add testsJoas Schilling2018-05-091-0/+52
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Merge pull request #9231 from nextcloud/13-9205Morris Jobke2018-04-182-1/+53
|\ | | | | [stable13] Provide an option to disable HTML emails
| * Provide an option to disable HTML emailsMorris Jobke2018-04-182-1/+53
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Merge pull request #9233 from nextcloud/13-9159Roeland Jago Douma2018-04-183-0/+29
|\ \ | | | | | | [stable13] fix appinfo parsing when a single localized option is provided
| * | fix appinfo parsing when a single localized option is providedRobin Appelman2018-04-183-0/+29
| |/ | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* / Show EOL warning in the update sectionJoas Schilling2018-04-181-0/+4
|/ | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Merge pull request #8779 from nextcloud/backport/8255/show-group-display-namesJohn Molakvoæ2018-04-062-19/+56
|\ | | | | [stable13] Show group display names
| * Fix unit testsJoas Schilling2018-03-162-16/+53
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
| * Fixed caldav tests and metadata 2John Molakvoæ (skjnldsv)2018-03-121-3/+3
| | | | | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* | Fix testRoeland Jago Douma2018-04-041-1/+1
| | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | reset encryptionVersion to '1' if a file was stream copied, because this ↵Bjoern Schiessle2018-04-031-1/+1
| | | | | | | | | | | | means that we basically write the file from scratch Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* | Use app version to generate scss filenameJohn Molakvoæ (skjnldsv)2018-03-281-12/+23
|/ | | | | | Fixed scsscacher tests Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Merge pull request #8745 from nextcloud/stable13-8716Morris Jobke2018-03-094-13/+33
|\ | | | | [13] Remove base url from global cache prefix
| * Mock method of actual cacheMorris Jobke2018-03-091-5/+1
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
| * Always return the depscacheRoeland Jago Douma2018-03-091-1/+1
| | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
| * Fix tests to use ICacheFactoryJulius Härtl2018-03-094-14/+38
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | 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 #8749 from ↵Morris Jobke2018-03-091-18/+111
|\ \ | | | | | | | | | | | | nextcloud/backport/8596/sharee-email-matches-not-limited [stable13] Sharee email matches not limited
| * | Fix calculation if there are more resultsJoas Schilling2018-03-091-19/+19
| | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
| * | Add tests for finding own email and user results paginationJoas Schilling2018-03-091-1/+94
| |/ | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* / Fix testsRoeland Jago Douma2018-03-091-0/+17
|/ | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Add automatic handling of NoSuchElement exceptionsDaniel Calviño Sánchez2018-03-091-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-091-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>
* Hardening of SimpleFile getContentRoeland Jago Douma2018-03-021-0/+22
| | | | | | | if file_get_contents fails remove the file. And traverse up the tree checking if the other folders are there. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Merge pull request #8099 from nextcloud/7873_13Roeland Jago Douma2018-02-281-8/+20
|\ | | | | [stable13] Don't perform CSRF check on OCS routes with Bearer auth
| * Update testsRoeland Jago Douma2018-02-081-8/+20
| | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Better result handling of email searchJoas Schilling2018-02-202-3/+3
| | | | | | | | | | | | | | 1. Local users should not be returned when searching for empty string 2. The limit of the response should be respected Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Take into account the comment message when looking for itDaniel Calviño Sánchez2018-02-162-24/+17
| | | | | | | | | | | | | | | | Instead of checking that the list contains one comment it is now checked that a comment with certain message is visible. This makes the step (and the locator) more reusable in future tests and also simplifies the code. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | Adjust timeouts in the step to create a new commentDaniel Calviño Sánchez2018-02-161-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | Depending on the previous steps the new comment field may be already shown or not when the step to create a new comment is executed. Therefore, the timeout was increased from 2 to the "standard" 10 seconds used in other tests. If the new comment field was found there is no need to use a timeout when looking for the new comment button; it is either there or not, it will not appear after some time. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | Move locators above step definitionsDaniel Calviño Sánchez2018-02-161-21/+26
| | | | | | | | | | | | | | | | | | The locators are moved above the step definitions for consistency with other context files; besides that I made some minor adjustments for consistency too in the locator descriptions and identation, and moved the locators for ".newCommentRow" descendants together. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | Merge pull request #8102 from nextcloud/s3-uploader-13Morris Jobke2018-02-081-5/+12
|\ \ | |/ |/| [13] Use S3Client::upload instead of splitting single/multipart upload ourselves
| * Use S3Client::upload instead of splitting single/multipart upload ourselvesRobin Appelman2018-01-291-5/+12
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Merge pull request #8197 from nextcloud/stable13-8144Roeland Jago Douma2018-02-073-0/+124
|\ \ | | | | | | [stable13] Repair step to clear frontend related caches
| * | Fix testsRoeland Jago Douma2018-02-061-0/+4
| | | | | | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
| * | Move depsCache clearing to SCSSCacher/JSCombinerJulius Härtl2018-02-063-16/+42
| | | | | | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
| * | Add tests and class mappingJulius Härtl2018-02-061-0/+94
| | | | | | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | | Merge pull request #8045 from nextcloud/8002_13Roeland Jago Douma2018-02-061-45/+50
|\ \ \ | |/ / |/| | [stable13] Dont polute the log on DAV emaillogin
| * | Fix testsRoeland Jago Douma2018-01-251-45/+50
| |/ | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* / Add tests for URL rewritingJulius Härtl2018-02-021-4/+14
|/ | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>