summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* Properly catch InvalidTokenException for better error responseMorris Jobke2018-01-181-0/+40
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Backport of format self-mentions, but don't offer them #7914Arthur Schiwon2018-01-182-2/+54
| | | | | | | | | | | | | | | | | | comments should compile mentions also if done by author it is used by clients for formatting reasons, there is no reason not format the author if her handle is included in the comment body. It is unrelated to sending out notifications. Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de> do not offer the handle of the current user for auto completion Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de> add types to php doc Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Merge pull request #7915 from nextcloud/backport/7909/fix-migration-type-hintsRoeland Jago Douma2018-01-171-2/+0
|\ | | | | Fix the type hints of migrations and correctly inject the wrapped sch…
| * Fix the type hints of migrations and correctly inject the wrapped schema ↵Joas Schilling2018-01-171-2/+0
| | | | | | | | | | | | into migrations Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Support arbitrary number of arguments for d:or and d:and in search queriesRobin Appelman2018-01-161-1/+6
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Add unit testJoas Schilling2018-01-151-0/+123
|/ | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Merge pull request #7650 from rpirritano/masterMorris Jobke2018-01-111-1/+1
|\ | | | | made small changes to login screen
| * made small changes to login screenRobert Pirritano2018-01-111-1/+1
| | | | | | | | | | | | added height back 70px back to footer and removed .htaccess file Signed-off-by: Robert R Pirritano <rpirritano@gmail.com>
* | Add acceptance test for renaming a file with the details view openDaniel Calviño Sánchez2018-01-112-0/+57
|/ | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Don't lie about the preview mimetypeRoeland Jago Douma2018-01-071-0/+8
| | | | | | | | | | | | | | For legacy reasons we stored all the previews with a png extention. However we did not put png data in them all the time. This caused the preview endpoints to always report that a preview is a png file. Which was a lie. Since we abstract away from the storage etc in the previewmanager. There is no need anymore to store them as .png files and instead we can use the actual file extention. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* removes invalid tests, adapts another oneArthur Schiwon2018-01-031-33/+0
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* never translate login names when requiring with a user idArthur Schiwon2018-01-031-12/+28
| | | | | | where appropriate, the preLoginNameUsedAsUserName hook should be thrown. Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* extend tests for status quoArthur Schiwon2018-01-032-0/+19
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Merge pull request #7487 from nextcloud/no-password-confirm-with-ssoblizzz2018-01-032-4/+133
|\ | | | | disable password confirmation with SSO
| * Move passwordconfirmation to its own midlewareRoeland Jago Douma2018-01-022-10/+130
| | | | | | | | | | | | Add tests Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
| * disable password confirmation with SSOBjoern Schiessle2018-01-021-1/+10
| | | | | | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* | Merge pull request #7526 from ↵Morris Jobke2018-01-031-1/+1
|\ \ | |/ |/| | | | | nextcloud/make-possible-for-apps-to-disable-the-navigation-bar-slide-gesture Make possible for apps to disable the navigation bar slide gesture
| * Add unit tests for the navigation bar slide gestureDaniel Calviño Sánchez2017-12-141-1/+1
| | | | | | | | | | | | | | | | The slide gesture is enabled or disabled depending on the width of the browser window. In order to easily control that width the karma-viewport plugin is now used in the unit tests. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | Merge pull request #7631 from nextcloud/fix-scss-webroot-and-url-rewriteMorris Jobke2018-01-023-13/+72
|\ \ | | | | | | Fix scss webroot and url rewrite
| * | Fixed testsJohn Molakvoæ (skjnldsv)2017-12-303-13/+32
| | | | | | | | | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
| * | Correctly remove temp test directory treeJohn Molakvoæ (skjnldsv)2017-12-301-1/+13
| | | | | | | | | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
| * | Added tests for various installations typesJohn Molakvoæ (skjnldsv)2017-12-301-0/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - With root installation - Core css - App inside server root - Secondary apps directory outside server root - With an installation in a sub directory - Core css - App inside server root - Secondary apps directory outside server root Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
| * | Fixed webroot for scss filesJohn Molakvoæ (skjnldsv)2017-12-301-11/+2
| | | | | | | | | | | | | | | | | | Fixed tests Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* | | Merge pull request #7590 from nextcloud/flow-hide-stay-logged-inMorris Jobke2018-01-021-0/+33
|\ \ \ | | | | | | | | Hide stay logged in checkbox when flow authentication is used
| * | | Hide stay logged in checkbox when flow authentication is usedJulius Härtl2017-12-281-0/+33
| |/ / | | | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* / / Get correct translations for SecurityProviderRoeland Jago Douma2018-01-021-2/+2
|/ / | | | | | | | | | | Fixes #7657 Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Wait for the shared link to be set in the acceptance testsDaniel Calviño Sánchez2017-12-221-1/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When clicking on "Share link" in the "Sharing" tab of the Files app an input field with the link appears. That input field already exists in the DOM, although empty, before clicking on "Share link", and when that is done the proper value is set and then the input field is shown. In the acceptance tests "getValue()" can return the value of hidden elements too, so as long as an element exists its value is returned without waiting for the field to be visible. Due to this if the test code runs too fast the "I write down the shared link" step could be executed before the proper value was set, so the shared link got in that case would be an empty value, and this would lead to failures when the following steps were executed. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | Add missing timeout multiplierDaniel Calviño Sánchez2017-12-221-2/+6
| | | | | | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | Fix typo in callback nameDaniel Calviño Sánchez2017-12-221-2/+2
| | | | | | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | Fix failing AvatarTestJulius Härtl2017-12-191-1/+1
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Merge pull request #7566 from nextcloud/fix-opening-the-menu-in-a-share-pageRoeland Jago Douma2017-12-192-0/+95
|\ \ | | | | | | Fix opening the menu in a share page
| * | Add acceptance test for opening the menu in a public shared linkDaniel Calviño Sánchez2017-12-192-0/+95
| | | | | | | | | | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | | Merge pull request #7562 from nextcloud/fix-wrongly-cached-resultRoeland Jago Douma2017-12-191-1/+52
|\ \ \ | |/ / |/| | Cache final result of update check
| * | Cache final result of update checkMorris Jobke2017-12-181-1/+52
| | | | | | | | | | | | | | | | | | | | | | | | If the parsed data is not a valid response we should not cache it and only cache the preprocessed result set. Fixes #7442 Signed-off-by: Morris Jobke <hey@morrisjobke.de>