aboutsummaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* check if the user still exists before we try to cleanup the previewsBjoern Schiessle2017-11-141-1/+10
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* Merge pull request #7013 from nextcloud/forgot-passwordJan-Christoph Borchardt2017-11-141-1/+1
|\ | | | | Directly show "Forgot password?" link, fix #6808
| * Fix acceptance testJohn Molakvoæ (skjnldsv)2017-11-081-1/+1
| | | | | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* | Merge pull request #7166 from nextcloud/enhancement/crash-report-contextMorris Jobke2017-11-141-4/+4
|\ \ | | | | | | Pass the exception context to the crash reporter
| * | Pass the exception context to the crash reporterChristoph Wurst2017-11-141-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | This should allow better reports as often the app id is passed as context. While this is not used right now, I'd like to have this for NC13 as adding it later will break the interface for existing apps Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | | Merge pull request #7061 from kyrofa/bugfix/6028/app_path_realpathMorris Jobke2017-11-142-0/+292
|\ \ \ | |/ / |/| | {J,CS}SResourceLocator: account for symlinks in app path
| * | tests: change helper scopeKyle Fazzari2017-11-082-46/+51
| | | | | | | | | | | | | | | | | | | | | | | | This seems to be the only way to have the same helpers used between tests in a manner that works for both standalone phpunit and autotest.sh. Signed-off-by: Kyle Fazzari <kyrofa@ubuntu.com>
| * | JSResourceLocator: account for symlinks in app pathKyle Fazzari2017-11-072-0/+287
| |/ | | | | | | Signed-off-by: Kyle Fazzari <kyrofa@ubuntu.com>
* | Add a mechanism to register crach reportersChristoph Wurst2017-11-142-12/+103
| | | | | | | | | | | | | | | | This adds a crash reporter registry, which is meant for third party apps to hook into the error logging/reporting chain. This way, external tools like Sentry can be used to track and aggregate system crashes. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Fix welcome text for better grammar in themed instancesMorris Jobke2017-11-099-15/+15
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Merge pull request #6220 from nextcloud/cached-mount-info-filepathLukas Reschke2017-11-091-0/+4
|\ \ | | | | | | Allow getting the filepath when getting cached mounts by fileid
| * | Allow getting the filepath when getting cached mounts by fileidRobin Appelman2017-10-271-0/+4
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | Theming: theme flow redirection pageJulius Härtl2017-11-081-1/+1
| | | | | | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | | Merge pull request #6402 from nextcloud/dav-email-customizationMorris Jobke2017-11-061-0/+5
|\ \ \ | |_|/ |/| | Enhance calendar invitation emails
| * | Make L10N->l provide weekdayNameGeorg Ehrke2017-11-031-0/+5
| | | | | | | | | | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* | | Merge branch 'master' into autocomplete-guiArthur Schiwon2017-11-0172-245/+547
|\ \ \
| * \ \ Merge pull request #6958 from ↵Joas Schilling2017-11-011-0/+2
| |\ \ \ | | | | | | | | | | | | | | | | | | | | nextcloud/improved-mimetype-detection-for-object-storage Improve mimetype detection for object storages
| | * | | Improve mimetype detection for object storagesMorris Jobke2017-10-261-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Object storage instances always fall back to the content based mimetype detection, because the file name for object storage was always random due to the fact that it was temporarily storage in a generated temp file. This patch adds a check before that to make sure to use the original file name for this purpose and also remove possible other extensions like the versioning or part file extension. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
| * | | | Merge pull request #7022 from nextcloud/acceptance-tests-7.1blizzz2017-10-311-1/+1
| |\ \ \ \ | | |_|/ / | |/| | | bump acceptance test suite to use php 7.1 image
| | * | | bump acceptance test suite to use php 7.1 imageArthur Schiwon2017-10-311-1/+1
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
| * | | | Merge pull request #6952 from nextcloud/correctly-search-for-resultsJoas Schilling2017-10-311-0/+105
| |\ \ \ \ | | | | | | | | | | | | Correctly search for existing collaboration results
| | * | | | Add unit tests for SearchResultJoas Schilling2017-10-251-0/+105
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
| * | | | | Add foreign key support to OCPiotr Mrowczynski2017-10-301-2/+37
| | |/ / / | |/| | |
| * | | | Unit tests for #6977Joas Schilling2017-10-271-0/+26
| | |_|/ | |/| | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
| * | | Use ::class in test mocks of encryption appMorris Jobke2017-10-267-15/+24
| | | | | | | | | | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
| * | | Merge pull request #6939 from nextcloud/class-usage-in-mocks-dav-appMorris Jobke2017-10-267-11/+14
| |\ \ \ | | |_|/ | |/| | Use ::class in test mocks of dav app
| | * | Use ::class in test mocks of dav appMorris Jobke2017-10-267-11/+14
| | | | | | | | | | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
| * | | Merge pull request #6709 from ↵Morris Jobke2017-10-252-7/+57
| |\ \ \ | | |/ / | |/| | | | | | | | | | nextcloud/show-checkbox-where-the-favourite-icon-is-now Show checkbox where the favourite icon is now
| | * | Solve acceptance test failure due to clicks on covered elementsDaniel Calviño Sánchez2017-10-192-0/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Firefox and Chrome drivers for Selenium refuse to click on an element if the point to be clicked is covered by a different element, throwing an UnknownError exception with message "Element is not clickable at point ({x}, {y}). Other element would receive the click: {element}". Although in general that would be a legit error (as the user would not be able to click on the element) due to a bad layout, sometimes this can be just a temporal issue caused by an animation, in which case there would be no problem once the animation finished and the elements are all in their final location. Unfortunately, automatically handling those situations in which the problem is caused by an animation by just retrying a few times if the element to be clicked is covered before giving up would probably cause confusion instead of easing test writing. The reason is that if the center of the element is covered by another one the Firefox driver for Selenium tries to click on the corners of the element instead. The problem is that the coordinates used for the click are integer values, but Firefox has sub-pixel accuracy, so sometimes (depending on which corner is not covered and whether the left, top, width or height properties of the element to be clicked have a decimal component or not) the clicks silently land on a different HTML element (and that is with squared borders; with round borders they always land on a different HTML element. That was partially addressed for Selenium 3.0 by clicking first on the edges, but it would still fail if the middle point of the edges is covered but not the corners). It is not possible to fix or even detect all that from the tests (except maybe with some extreme hacks involving accessing private PHP members from Mink and bypassing or replacing the standard JavaScript executed by the Firefox driver with a custom implementation...), so it is not possible to ensure that clicks during an animation will land on the right element (in fact it is not possible even on static elements, although except when the layout is wrong there should be no problem); sometimes retrying a click when the element is covered would solve the problem, sometimes it would cause a different element to be clicked (and sometimes there would be even no retry, as the first click would have silently landed on a different element than the expected one). Therefore, a different approach must be used. Instead of trying to automatically handle clicks during animations the tests must be written being aware of the problem and thus waiting somehow for the animations that can cause a problem to end before performing the clicks. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
| | * | Replace inline favorite action with just a favorite iconDaniel Calviño Sánchez2017-10-191-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a preparatory step for a following commit in which the position of the favorite icon and the checkbox will be swapped; in that new design the favorite icon is no longer expected to be an action but just a simple mark on whether the file is favorited or not (the action is expected to be triggered then only from the file actions menu). The favorite icon is now fully shown or completely hidden depending on whether the file is favorited or not. As the icon is just informative but no longer an action now it does not change when hovered or focus. In the same way, the alternative text when the file is not favorited now it is not "Favorite" (an action) but "Not favorited" instead. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
| | * | Update acceptance tests to favorite files through the file actions menuDaniel Calviño Sánchez2017-10-191-2/+20
| | |/ | | | | | | | | | | | | | | | | | | | | | | | | Currently a file can be favorited either through the inline action or through the file actions menu. However, the inline action will be removed in a following commit and then it will be possible to do it only through the file actions menu. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
| * | Merge pull request #6921 from nextcloud/appmanager-securitymiddlewareRoeland Jago Douma2017-10-241-1/+9
| |\ \ | | | | | | | | Use proper DI for security middleware for app enabled check
| | * | Use proper DI for security middleware for app enabled checkMorris Jobke2017-10-241-1/+9
| | |/ | | | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
| * | Use ::class in test mocksMorris Jobke2017-10-2458-208/+257
| | | | | | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
| * | Merge pull request #6919 from nextcloud/di-appmanager-encryption-migrationMorris Jobke2017-10-241-0/+6
| |\ \ | | | | | | | | Use DI for IAppManager to encryption migration
| | * | Use DI for IAppManager to encryption migrationMorris Jobke2017-10-241-0/+6
| | |/ | | | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
| * / Provide tests for future timestamp formattingMorris Jobke2017-10-231-0/+9
| |/ | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | adjust jsunit testsArthur Schiwon2017-11-011-0/+2
| | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | meanwhile we can have exact matches. also show those.Arthur Schiwon2017-10-311-0/+29
| | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | fix comment sorterArthur Schiwon2017-10-301-31/+0
| | | | | | | | | | | | | | background: we have a flat hierarchy of comments, not a tree. therefore we can also remove again the unnecessary additions. Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | add acceptance testsArthur Schiwon2017-10-283-0/+91
| | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | add search parameter to autocomplete controllerArthur Schiwon2017-10-251-2/+7
| | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | AutoCompletion backendArthur Schiwon2017-10-223-23/+156
|/ | | | | | | | | | * introduce a Controller for requests * introduce result sorting mechanism * extend Comments to retrieve commentors (actors) in a tree * add commenters sorter * add share recipients sorter Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Set the data from the templateJoas Schilling2017-10-182-52/+29
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* fix urlBjoern Schiessle2017-10-171-2/+2
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* Merge pull request #6602 from nextcloud/s3-multipart-uploadRobin Appelman2017-10-111-4/+17
|\ | | | | Add multipart upload for s3
| * Add tests for multipart uploadRobin Appelman2017-09-211-4/+17
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | App management: add update sectionJulius Härtl2017-10-101-0/+6
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Allow multiple settings and sections per appJoas Schilling2017-10-052-2/+8
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Merge pull request #6328 from nextcloud/split-sharees-api-logicblizzz2017-10-046-0/+2059
|\ \ | | | | | | Splits off the logic from sharees endpoint thus making it available from within Nc/via PHP.