summaryrefslogtreecommitdiffstats
path: root/tests/acceptance
Commit message (Collapse)AuthorAgeFilesLines
* Add acceptance tests for comments on shared files and foldersDaniel Calviño Sánchez2018-12-062-0/+209
| | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Merge pull request #12649 from ↵Morris Jobke2018-11-262-2/+7
|\ | | | | | | | | nextcloud/make-acceptance-tests-for-comments-more-robust Make acceptance tests for comments more robust
| * Wait for the comment to be added before changing to another fileDaniel Calviño Sánchez2018-11-241-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-241-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>
* | 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-489/+519
| | | | | | | | 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-416/+418
| | | | | | | | 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>
* 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>
* Fix breakpoint and shrinking of the content + listJohn Molakvoæ (skjnldsv)2018-11-141-1/+1
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Adjust acceptance tests to changes in public share page menuDaniel Calviño Sánchez2018-11-081-1/+4
| | | | | | | | The "Download" item in the menu of public share pages is no longer shown in wide (>768px) windows (although the element is in the DOM and shown if resized to a narrow window). Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Merge pull request #12215 from ↵Roeland Jago Douma2018-11-021-0/+8
|\ | | | | | | | | nextcloud/wait-for-the-link-share-menu-to-open-in-acceptance-tests Wait for the link share menu to open in acceptance tests
| * Wait for the link share menu to open in acceptance testsDaniel Calviño Sánchez2018-11-021-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In the acceptance tests the link share menu is automatically opened if needed before interacting with an item in the menu; if the menu is not open it is opened by clicking on its toggle. However, since a recent change the link share menu is automatically opened by the regular UI after the link share is created. This causes that, sometimes, after the creation of a link share the acceptance tests check whether the menu is shown or not before the menu was automatically opened; as the menu is not open then the acceptance tests proceed to click on the toggle, but in the meantime the link share was created and the menu opened, so clicking on the toggle now closes it. As the menu is closed it is not possible to interact with its items and the test fails. To prevent that now the acceptance tests wait for the link share menu to open after a link share is created before continuing with the other steps. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | Add acceptance test steps to be used from Talk acceptance testsDaniel Calviño Sánchez2018-11-021-0/+49
| | | | | | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | Test that "Password protect by Talk" is not shown if Talk is not enabledDaniel Calviño Sánchez2018-11-022-0/+48
|/ | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Adjust acceptance tests to changes in link sharesDaniel Calviño Sánchez2018-11-011-21/+18
| | | | | | | | | | | | Although now it is possible to create several link shares the acceptance tests currently handles only the first link share; this first link share is now created by clicking an "Add new share" button instead of a checkbox. Besides that, the "Copy link" button has been moved from the menu to the row, next to the menu trigger. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Add acceptance tests for hiding download in link sharesDaniel Calviño Sánchez2018-10-303-0/+127
| | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* 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-262-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>
* Add acceptance tests for opening a section in the Files appDaniel Calviño Sánchez2018-10-212-0/+88
| | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Change wording of 'Copy URL' to more understandable 'Copy link'Jan-Christoph Borchardt2018-10-011-2/+2
| | | | Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
* Fix class selector for acceptance testsJohn Molakvoæ (skjnldsv)2018-09-281-1/+1
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Also test enabling of the Antivirus App for filesRoeland Jago Douma2018-09-261-5/+5
| | | | | | | Since there is no calendar release for 15 yet we should use an app that we can quickly release for 15 as well. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Include empty directories in the default state of acceptance testsDaniel Calviño Sánchez2018-09-181-0/+2
| | | | | | | | | | | | | | | | | | | | | | | Before each scenario of the acceptance tests is run the Nextcloud server is reset to a default state. To do this the full directory of the Nextcloud server is commited to a local Git repository and then reset to that commit when needed. Unfortunately, Git does not support including empty directories in a commit. Due to this, when the default state was restored, it could happen that the file cache listed an empty directory that did not exist because it was not properly restored (for example, "data/appdata_*/css/icons"), and that in turn could lead to an error when the directory was used. Currently the only way to force Git to include an empty directory is to add a dummy file to the directory (so it will no longer be empty, but that should not be a problem in the affected directories, even if the dummy file is not included in the file cache); although Git FAQ suggests using a ".gitignore" file a ".keep" file was used instead, as it conveys better its purpose. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Adds an acceptance test for the users settings navigation without disabled usersMichael Weimann2018-08-141-0/+14
| | | | Signed-off-by: Michael Weimann <mail@michael-weimann.eu>
* Adjust acceptance test to check if the correct sidebar view is shownJulius Härtl2018-08-031-3/+11
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Add acceptance test for creating a user with a custom display nameDaniel Calviño Sánchez2018-07-312-0/+62
| | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Merge pull request #10322 from ↵Roeland Jago Douma2018-07-243-0/+24
|\ | | | | | | | | weeman1337/feature-9978-improve-disabled-user-login-message Login: Implements the "user disabled" message like the "wrong password" message
| * Adds disabled user acceptance testsMichael Weimann2018-07-243-0/+24
| | | | | | | | Signed-off-by: Michael Weimann <mail@michael-weimann.eu>
* | Acceptance and mobile navigation fixesJohn Molakvoæ (skjnldsv)2018-07-241-2/+12
| | | | | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* | Adjust acceptance tests to the new share link UIDaniel Calviño Sánchez2018-07-211-24/+66
|/ | | | | | | | | | | | | | | The share link UI no longer uses its own layout below the other shares; now it is shown as a share row with a menu for the actions (except enabling it, which is shown in the row itself), just like the other shares. The share link is no longer shown, either; now the link is got by clicking on a "Copy URL" menu item, which copies the link to the clipboard. As the clipboard is not accessible from the acceptance tests the URL is now extracted from the attributes of that menu item (although the menu item is clicked anyway to mimic the user behaviour). Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Adjust acceptance tests to sidebar changes in Files appJohn Molakvoæ (skjnldsv)2018-07-203-89/+73
| | | | | | | | Before, each section of the Files app ("All files", "Favorites"...) had its own sidebar element. Now there is a single sidebar element for all the sections in the Files app. Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Fix accceptance testsJulius Härtl2018-07-201-1/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Adds tests for testing removing an empty groupMichael Weimann2018-07-203-1/+31
| | | | Signed-off-by: Michael Weimann <mail@michael-weimann.eu>
* Fix variable not replaced in "behat.yml" when default value was usedDaniel Calviño Sánchez2018-06-281-15/+13
| | | | | | | | As "selenium.server" is a simulated variable it is not recognized by Mink, so it must be always replaced by its value in "behat.yml" before the file is parsed by Behat. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Fix documentationDaniel Calviño Sánchez2018-06-221-2/+2
| | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Set "wd_host" directly in "behat.yml" instead of through "BEHAT_PARAMS"Daniel Calviño Sánchez2018-06-222-29/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | The "wd_host" parameter of Selenium2 sessions specify the URL used by the Selenium driver to connect with the Selenium server. Thus, when the Selenium server is at a different host or port than the default one (for example, when run on Drone) the "wd_host" parameter must be set for each of the Selenium2 sessions defined in "behat.yml". The "BEHAT_PARAMS" environment variable, which extends the "behat.yml" configuration file, was used for that. However, this required adding to the "BEHAT_PARAMS" in "run-local.sh" each new session added to "behat.yml", including those added in the acceptance tests of apps. To address that limitation, this commit introduces a simulated variable, "selenium.server"; just before the acceptance tests are run the "selenium.server" variable in the "wd_host" parameter is replaced in the "behat.yml" file used by the acceptance tests. Note that the file that is modified is the one inside the Docker container used to run the acceptance tests, so the original file is not touched. Note that a simulated variable is needed because Behat does not support overridding nor setting configuration parameters with environment variables. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Merge pull request #9518 from ↵Roeland Jago Douma2018-06-211-2/+2
|\ | | | | | | | | nextcloud/feature/5986/public_share_controller_middleware Public share middleware & controller
| * Fix acceptance testRoeland Jago Douma2018-06-201-2/+2
| | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Adjust theming acceptance tests to new header colour transitionDaniel Calviño Sánchez2018-06-202-10/+20
| | | | | | | | | | | | | | | | | | | | | | Before, the acceptance tests checked the header colour just once, as the header colour was immediately changed once the new theming colour was saved. This is no longer the case, as currently a transition is used to change between the original colour and the new one, so now the acceptance tests check repeteadly for the expected header colour until it matches or the timeout expires. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>