nextcloud/apps/files/tests/js
Daniel Calviño Sánchez 1bcba56d8f Fix setup to test the breadcrumbs menu
The "Shows only items not in the breadcrumb" test was failing when run
on Firefox, but not on PhantomJS. This was caused by the differences in
the starting width between both browsers and an incorrect setup of the
test (the width set for the crumbs was overriden when the breadcrumbs
were rendered again, and the breadcrumb was resized to 300 from an
indeterminate initial width).

Now the crumbs are rendered and then its width, padding and margin are
set to a known value. Then it is resized to 1000px, which ensures that
there will be enough room for all the crumbs and thus the menu will be
hidden, and finally it is resized to 300, which causes the middle crumb
to be hidden and the menu to be shown.

Note, however, that the test now always fails, no matter if it is run on
PhantomJS or on Firefox; if the menu crumb is hidden when "_updateMenu"
is called it will show it, but it will also wrongly try to add the menu
itself to the menu. As the "crumb-id" of the menu crumb is "-1" this
causes the last regular crumb to be added to the menu. This will be
fixed with other related issues in the next commit.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-02-28 15:03:26 +01:00
..
appSpec.js Trigger events before and after a file action is executed 2017-12-19 18:33:34 +01:00
breadcrumbSpec.js Fix setup to test the breadcrumbs menu 2018-02-28 15:03:26 +01:00
detailsviewSpec.js Make possible to know the registered detail views in a details view 2017-06-09 03:14:23 +02:00
favoritesfilelistspec.js Make it possible to filter by tags with REPORT method 2016-10-19 11:06:29 +02:00
favoritespluginspec.js Added unit tests for right sidebar 2015-08-07 01:22:43 +02:00
fileactionsmenuSpec.js Split move and copy operations 2018-02-15 18:51:12 +01:00
fileactionsSpec.js Trigger events before and after a file action is executed 2017-12-19 18:33:34 +01:00
filelistSpec.js Split move and copy operations 2018-02-15 18:51:12 +01:00
filesSpec.js Add ignore_files to config, 2017-03-20 01:17:12 -06:00
filesummarySpec.js Display number of hidden files in files summary (#25870) 2016-08-29 14:47:41 +02:00
fileUploadSpec.js Upload autorename on client side 2016-11-02 22:15:03 +01:00
mainfileinfodetailviewSpec.js Hide favourite icon in details view if favourite action is not available 2018-01-05 19:06:06 +01:00
newfilemenuSpec.js Remove "Text file" entry in the "+" menu 2015-11-19 15:36:21 +01:00
tagspluginspec.js Remove "has-favorites" class from file list table 2017-10-19 01:46:13 +02:00