Skip to content

Commit

Permalink
Added more tests and only test jsunit on drone (for testing only)
Browse files Browse the repository at this point in the history
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
  • Loading branch information
skjnldsv committed Nov 13, 2017
1 parent b4f5b38 commit 8c2dbeb
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions apps/files/tests/js/breadcrumbSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 8c2dbeb

Please sign in to comment.