aboutsummaryrefslogtreecommitdiffstats
path: root/tests/acceptance/features/app-files.feature
Commit message (Collapse)AuthorAgeFilesLines
* chore: remove outdated acceptance testsJohn Molakvoæ2023-08-171-303/+0
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* test: remove broken steps from files acceptance testDaniel Kesselberg2023-08-091-4/+8
| | | | | | | | | | | | The acceptance tests using the recent view fail since the vue migration. `And I open the details view for "welcome.txt"` Is looking for a row in the filelist with a span having the class nametext, matching the file name "welcome.txt" and button inside having the class action-menu. The markup for the files list looks very different after the vue migration and therefor the test is failing. Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Disable unreliable app-files.feature:108Morris Jobke2020-10-211-6/+7
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Disable failing files app test - act 4Morris Jobke2019-03-141-6/+6
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Disable failing files app test - act 3Morris Jobke2019-03-141-20/+20
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Disable failing files app test - act 2Morris Jobke2019-03-141-10/+10
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Disable failing files app testMorris Jobke2019-03-131-114/+114
| | | | | | | | | | | | | | | | | | | | Fails with: * tests/acceptance/features/app-files.feature:90 <details><summary>Show full log</summary> ``` Scenario: show favorites # /drone/src/github.com/nextcloud/server/tests/acceptance/features/app-files.feature:90 Given I am logged in # LoginPageContext::iAmLoggedIn() And I mark "welcome.txt" as favorite # FileListContext::iMarkAsFavorite() When I open the "Favorites" section # AppNavigationContext::iOpenTheSection() Then I see that the current section is "Favorites" # AppNavigationContext::iSeeThatTheCurrentSectionIs() Then I see that the file list contains a file named "welcome.txt" # FileListContext::iSeeThatTheFileListContainsAFileNamed() Row for file welcome.txt in file list could not be found after 100 seconds (NoSuchElementException) ``` </details> Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Run tests that fail with "no such process" over to apache serverMorris Jobke2019-02-281-0/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Add acceptance tests for copying files to the same folderDaniel Calviño Sánchez2019-01-221-0/+33
| | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Add acceptance tests for moving and copying selections to another folderDaniel Calviño Sánchez2019-01-221-0/+39
| | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Add acceptance tests for moving and copying files to another folderDaniel Calviño Sánchez2019-01-221-0/+23
| | | | 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-231-416/+0
| | | | 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-231-0/+49
| | | | 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-231-0/+27
| | | | | | | | | | | | | | | | 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-231-0/+56
| | | | 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-221-0/+19
| | | | 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-021-0/+4
| | | | 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-301-0/+26
| | | | 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-291-88/+0
| | | | 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-211-0/+72
| | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* 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>
* Adjust acceptance tests to sidebar changes in Files appJohn Molakvoæ (skjnldsv)2018-07-201-5/+5
| | | | | | | | 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>
* Add acceptance tests for creation of subfolders in public shared foldersDaniel Calviño Sánchez2018-03-091-0/+65
| | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* fixup! Acceptance fixJohn Molakvoæ (skjnldsv)2018-03-011-1/+2
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Acceptance fixJohn Molakvoæ (skjnldsv)2018-03-011-0/+11
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Add acceptance test for renaming a file with the details view openDaniel Calviño Sánchez2018-01-111-0/+7
| | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Add acceptance test for opening the menu in a public shared linkDaniel Calviño Sánchez2017-12-191-0/+11
| | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Solve acceptance test failure due to clicks on covered elementsDaniel Calviño Sánchez2017-10-191-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* Add acceptance tests for unselecting items in dropdown for tagsDaniel Calviño Sánchez2017-07-101-0/+72
| | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Add acceptance tests for sorting of favorite filesDaniel Calviño Sánchez2017-07-051-0/+19
| | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Add acceptance tests for showing the input field for tagsDaniel Calviño Sánchez2017-06-091-0/+16
| | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Add acceptance tests for closing details view in Files appDaniel Calviño Sánchez2017-04-251-0/+23
| | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Add acceptance tests for sharing password protected linksDaniel Calviño Sánchez2017-04-241-0/+31
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>