summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* fix can change password check in case of encryption is enabledBjoern Schiessle2019-01-041-1/+47
| | | | | | | | | | | | Admin should _not_ be able to change password when: - if an encryption module is loaded and it uses per-user keys - if encryption is enabled but no encryption modules are loaded Admin should be able to change the password when: - no encryption module is loaded and encryption is disabled - encryption module is loaded but it doesn't require per user keys Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* Add acceptance tests for opening search results for commentsDaniel Calviño Sánchez2018-12-243-0/+91
| | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Add acceptance tests for searching commentsDaniel Calviño Sánchez2018-12-243-0/+152
| | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Merge pull request #12617 from nextcloud/backport/10839/stable14Roeland Jago Douma2018-12-222-16/+74
|\ | | | | [stable14] adjust Calendar resource / room interfaces to use class implementation
| * RoomManager/ResourceManager: Inject IServerContainer instead of using OC ServerGeorg Ehrke2018-11-222-38/+60
| | | | | | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
| * adjust Calendar resource / room interfaces to use class implementationGeorg Ehrke2018-11-222-14/+50
| | | | | | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* | Use a case insensitive search for emailRoeland Jago Douma2018-12-201-2/+3
| | | | | | | | | | | | | | | | Fixes #7084 Now entering wrongly cased email (roeland@ instead of Roeland@) for password reset etc. Will also work. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Apply patch from @cwiedmann but drop -oi option for pipeCarsten Wiedmann2018-12-083-14/+50
| | | | | | | | | | | | | | * Add sendmailmode to gui * Add testcases for pipe mode Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* | Make sure to always load the latest icons-vars.css fileJulius Härtl2018-12-071-1/+6
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Add acceptance tests for comments on shared files and foldersDaniel Calviño Sánchez2018-12-072-0/+209
| | | | | | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | Fix folder path containing leading slash when getting mount root by idRobin Appelman2018-11-281-0/+48
| | | | | | | | | | | | | | | | This fixes collabora on public link shared groupfolders Fixes https://github.com/nextcloud/groupfolders/issues/225 Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Merge pull request #12701 from ↵Daniel Kesselberg2018-11-289-291/+784
|\ \ | | | | | | | | | | | | nextcloud/stable14-12632-add-acceptance-tests-for-sharing-files-and-folders-with-another-user [stable14] Add acceptance tests for sharing files and folders with another user
| * | Rename "FilesSharingAppContext" to "PublicShareContext"Daniel Calviño Sánchez2018-11-232-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | Having both "FilesAppSharingContext" and "FilesSharingAppContext" was confusing, so "FilesSharingAppContext" was renamed to a more descriptive name. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
| * | Extract locators and steps for sharing in Files app to their own contextDaniel Calviño Sánchez2018-11-233-330/+360
| | | | | | | | | | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
| * | Extract sharing related acceptance tests to their own feature filesDaniel Calviño Sánchez2018-11-233-386/+388
| | | | | | | | | | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
| * | Add acceptance tests for folders that can not be resharedDaniel Calviño Sánchez2018-11-232-0/+142
| | | | | | | | | | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
| * | Add acceptance tests for resharing a folder with another userDaniel Calviño Sánchez2018-11-231-0/+52
| | | | | | | | | | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
| * | Add acceptance test for checking that the owner can see resharesDaniel Calviño Sánchez2018-11-231-0/+25
| | | | | | | | | | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
| * | Add acceptance test for resharing a file with another userDaniel Calviño Sánchez2018-11-234-0/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | To reshare a file there must be at least three enabled users in the system; although it would be possible to run the steps to create a third user in the scenarios that need it for convenience a third enabled user besides "admin" and "user0" was added to the default setup. In a similar way, a new step was added too to login as a given user name, similar to the steps to log in as "user0" and as "admin". Finally, another actor, "Jim", was introduced for those scenarios which should be played by three standard actors (that is, without a special configuration like "Rubeus"). Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
| * | Add acceptance tests for sharing a folder with another userDaniel Calviño Sánchez2018-11-231-0/+59
| | | | | | | | | | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
| * | Add acceptance tests for sharing a file with another userDaniel Calviño Sánchez2018-11-232-0/+143
| | | | | | | | | | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | | Wait for the comment to be added before changing to another fileDaniel Calviño Sánchez2018-11-271-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If the server is too slow, changing to a different file immediately after sending a new comment but without waiting for the comment to be shown for the original file could cause the new comment to be shown for the current file instead. This is, indeed, a bug in the comments. However, it is not possible to test it reliably in the acceptance tests, as it depends on how fast the server adds the message and how fast the client changes to a different file; sometimes the test would fail and sometimes it would not. Therefore, now it is waited for the comment to be added before changing to another file, as in this case it can be reliably tested that changing to a different file does not cause the comments from the previous file to be shown in the current file (this was a different bug already fixed and due to which this test was added in the first place). Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | | Wait for the empty content element to be shownDaniel Calviño Sánchez2018-11-271-2/+6
|/ / | | | | | | | | | | | | | | | | | | | | | | When the "Comments" tab is open the empty content element is always in the DOM, although it is only shown once the message collection was fetched and there were no messages. Due to this it is necessary to explicitly wait for it to be shown instead of relying on the implicit wait made to find the element; otherwise it would be found immediately and if the collection was not fetched yet it would not be visible, causing the test to fail. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | Add acceptance tests for showing again the input field for tagsDaniel Calviño Sánchez2018-11-221-0/+11
| | | | | | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | Add acceptance tests for opening and closing again the details viewDaniel Calviño Sánchez2018-11-221-0/+37
| | | | | | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | Add acceptance tests for marking a file as favorite in the details viewDaniel Calviño Sánchez2018-11-222-0/+80
| | | | | | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | Add acceptance tests for switching to the comments of another fileDaniel Calviño Sánchez2018-11-222-0/+51
|/ | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Use the proper default valuesMorris Jobke2018-11-191-2/+2
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Verify that isPhpMailerUsed uses config as expectedKyle Fazzari2018-11-191-0/+33
| | | | Signed-off-by: Kyle Fazzari <kyrofa@ubuntu.com>
* Use the proper server for the apptoken flow loginRoeland Jago Douma2018-11-061-2/+8
| | | | | | | | | | | | | If a user can't authenticate normally (because they have 2FA that is not available on their devices for example). The redirect that is generated should be of the proper format. This means 1. Include the protocol 2. Include the possible subfolder Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Revert "Wait for cron to finish before running upgrade command"Morris Jobke2018-11-011-8/+1
| | | | | | This reverts commit 18e9631810ad1d3d72c2b4bbee330169808108ad. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Move ExpiredTokenException to the correct namespaceRoeland Jago Douma2018-10-312-5/+2
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Merge pull request #12121 from ↵Roeland Jago Douma2018-10-296-92/+123
|\ | | | | | | | | nextcloud/stable14-12104-move-acceptance-tests-that-crash-the-php-built-in-server-to-apache [stable14] Move acceptance tests that crash the PHP built-in server to Apache
| * Move acceptance tests that crash the PHP built-in server to ApacheDaniel Calviño Sánchez2018-10-293-0/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The PHP built-in server can crash when certain actions are performed in Nextcloud (but although the crash is triggered by Nextcloud it does not seem to be a Nextcloud bug), which can lead to failures in the acceptance tests that would have otherwise passed. A crash of the PHP built-in server during an acceptance test can be identified by the message "sh: 1: kill: No such process" in the acceptance tests output; as the PHP built-in server crashed its process does no longer exist when it is tried to be killed when the scenario ends. Although the crash has been observed in other tests too it is more prevalent in the tests for tags and the theming app. In order to reduce the false positives those tests are now run on Apache instead of on the PHP built-in sever. However, the rest of tests are still run on the PHP built-in server due to its lower resource consumption. In order to run a feature or just a scenario using Apache it has to be tagged with "@apache"; features or scenarios without that tag (the default) will run on the PHP built-in server instead. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
| * Link the default Apache directory to the Nextcloud server in all runnersDaniel Calviño Sánchez2018-10-292-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | In order to run the acceptance tests in Apache "/var/www/html" has to be linked to the root directory of the Nextcloud server. Before this was automatically done when launching the acceptance tests through "./run.sh", but an explicit command was needed when run in Drone. Now the linking was moved from "run.sh" to "run-local.sh", so it is automatically done when run through "./run.sh" and in Drone, including when running the tests for an app instead of for the server. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
| * Extract acceptance tests for tags to their own feature fileDaniel Calviño Sánchez2018-10-292-88/+89
| | | | | | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | Move the browser window of an actor to the foreground when acting as himDaniel Calviño Sánchez2018-10-292-0/+17
|/ | | | | | | | | | | | | | | | | Each time a new actor appears in a scenario the browser window of the new actor is put in front of the browser windows of the previous actors. Before, when acting again as a previous actor his browser window stayed in the background; in most cases everything worked fine even if the window was in the background, but due to a bug in the Firefox driver of Selenium and/or maybe in Firefox itself when the window was in the background it was not possible to set the value of an input field that had a range selected. Now, when acting again as a previous actor his browser window is brought to the foreground. This prevents the bug from manifesting, but also reflects better how a user would interact with the browser in real life. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* skip already decrypted files on decrypt all commandBjoern Schiessle2018-10-251-10/+31
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* Merge pull request #12005 from iPaat/Backport14/Fix11847Morris Jobke2018-10-241-2/+2
|\ | | | | [stable14] Remove cookies from Clear-Site-Data Header
| * Remove cookies from Clear-Site-Data HeaderPatrick Conrad2018-10-241-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | In https://github.com/nextcloud/server/commit/2f87fb6b456fd109c90a5093c31b7a3f62a32040 this header was introduced. The referenced documentation says: > When delivered with a response from https://example.com/clear, the following header will cause cookies associated with the origin https://example.com to be cleared, as well as cookies on any origin in the same registered domain (e.g. https://www.example.com/ and https://more.subdomains.example.com/). This also applies if `https://nextcloud.example.com/` sends the `Clear-Site-Data: "cookies"` header. This is not the behavior we want at this point! So I removed the deletion of cookies from the header. This has no effect on the logout process as this header is supported only recently and the logout works in old browsers as well. Signed-off-by: Patrick Conrad <conrad@iza.org> (cherry picked from commit 1806baaeafa284808cceb1a38ea2e1a9189d0407)
* | Merge pull request #11800 from nextcloud/lookupserver-and-global-scale-stable14Morris Jobke2018-10-241-2/+272
|\ \ | |/ |/| [stable14] always query the lookup server in a global scale setup
| * add more testsBjoern Schiessle2018-10-121-0/+231
| | | | | | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
| * some small fixes and improvementsBjoern Schiessle2018-10-101-1/+11
| | | | | | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
| * adjust testsBjoern Schiessle2018-10-091-2/+31
| | | | | | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* | Add acceptance tests for opening a section in the Files appDaniel Calviño Sánchez2018-10-232-0/+88
| | | | | | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | filter null values for UserManager::getByEmailGeorg Ehrke2018-10-221-0/+33
| | | | | | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* | Merge pull request #11425 from ↵Morris Jobke2018-09-281-1/+1
|\ \ | | | | | | | | | | | | nextcloud/stable14-hover-quota-used-space-regression [stable14] Add back the total used space per user
| * | Add back the total used space per userJohn Molakvoæ (skjnldsv)2018-09-281-1/+1
| | | | | | | | | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* | | Fix acceptance tests as app title changedRoeland Jago Douma2018-09-271-1/+1
|/ / | | | | | | | | | | | | The redundant app was removed. So we need to update the tests to make it green. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Add simple unit test for findLanguageFromLocaleDaniel Kesselberg2018-09-231-0/+27
| | | | | | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>