summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2017-11-12 05:37:01 +0100
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2017-11-13 10:51:31 +0100
commit8c2dbeb13a71ca320f6953302f75ce491c4f1aff (patch)
tree29162c0d83b5c991eb736bbeead6701b4e8f61be /apps
parentb4f5b38713b140cac2318eaefb945e6126ee81ee (diff)
downloadnextcloud-server-8c2dbeb13a71ca320f6953302f75ce491c4f1aff.tar.gz
nextcloud-server-8c2dbeb13a71ca320f6953302f75ce491c4f1aff.zip
Added more tests and only test jsunit on drone (for testing only)
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'apps')
-rw-r--r--apps/files/tests/js/breadcrumbSpec.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/apps/files/tests/js/breadcrumbSpec.js b/apps/files/tests/js/breadcrumbSpec.js
index fe565f4c3cb..dd3eac017ec 100644
--- a/apps/files/tests/js/breadcrumbSpec.js
+++ b/apps/files/tests/js/breadcrumbSpec.js
@@ -215,6 +215,19 @@ describe('OCA.Files.BreadCrumb tests', function() {
$(document).mouseup();
expect($popovermenu.is(':visible')).toEqual(false);
+ // Change directory and reset elements
+ bc.setDirectory('/one/two/three/four/five/six/seven/eight/nine/ten');
+ $crumbmenuLink = bc.$el.find('.crumbmenu > a');
+ $popovermenu = $crumbmenuLink.next('.popovermenu');
+
+ // Click on menu again
+ $crumbmenuLink.click();
+ expect($popovermenu.is(':visible')).toEqual(true);
+
+ // Click on home again
+ $(document).mouseup();
+ expect($popovermenu.is(':visible')).toEqual(false);
+
});
it('Shows only items not in the breadcrumb', function() {
var hiddenCrumbs = bc.$el.find('.crumb:not(.crumbmenu).hidden');