diff options
author | julia.kirschenheuter <julia.kirschenheuter@nextcloud.com> | 2023-04-04 09:06:41 +0200 |
---|---|---|
committer | julia.kirschenheuter <julia.kirschenheuter@nextcloud.com> | 2023-04-04 12:16:45 +0200 |
commit | dc0a95cce0900c6c501147b1e9137c4a3b8ee3b0 (patch) | |
tree | a9f8e3a6cc7b45956445700e7422c380a8760609 /apps/files/tests | |
parent | 135b0ded50a5909f78685f9bb09b84d42f8d51cd (diff) | |
download | nextcloud-server-dc0a95cce0900c6c501147b1e9137c4a3b8ee3b0.tar.gz nextcloud-server-dc0a95cce0900c6c501147b1e9137c4a3b8ee3b0.zip |
Adjust breadcrumb navigation structure to the navigation list
Signed-off-by: julia.kirschenheuter <julia.kirschenheuter@nextcloud.com>
Diffstat (limited to 'apps/files/tests')
-rw-r--r-- | apps/files/tests/js/breadcrumbSpec.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/files/tests/js/breadcrumbSpec.js b/apps/files/tests/js/breadcrumbSpec.js index 52c9f51835e..6bc7eb0a54d 100644 --- a/apps/files/tests/js/breadcrumbSpec.js +++ b/apps/files/tests/js/breadcrumbSpec.js @@ -41,7 +41,7 @@ describe('OCA.Files.BreadCrumb tests', function() { }); it('Renders its own container', function() { bc.render(); - expect(bc.$el.hasClass('breadcrumb')).toEqual(true); + expect(bc.$el.find("ul").hasClass('breadcrumb')).toEqual(true); }); it('Renders root by default', function() { var $crumbs; @@ -189,7 +189,7 @@ describe('OCA.Files.BreadCrumb tests', function() { bc.setDirectory(dummyDir); - $('div.crumb').each(function(index){ + $('li.crumb').each(function(index){ $(this).css('width', 50); $(this).css('padding', 0); $(this).css('margin', 0); @@ -248,7 +248,7 @@ describe('OCA.Files.BreadCrumb tests', function() { paddings = [0, 0, 0, 0, 0, 0, 0, 0]; margins = [0, 0, 0, 0, 0, 0, 0, 0]; - $('div.crumb').each(function(index){ + $('li.crumb').each(function(index){ $(this).css('width', widths[index]); $(this).css('padding', paddings[index]); $(this).css('margin', margins[index]); @@ -302,7 +302,7 @@ describe('OCA.Files.BreadCrumb tests', function() { // Each element is 20px wider paddings = [10, 10, 10, 10, 10, 10, 10, 10]; - $('div.crumb').each(function(index){ + $('li.crumb').each(function(index){ $(this).css('padding', paddings[index]); }); @@ -329,7 +329,7 @@ describe('OCA.Files.BreadCrumb tests', function() { // Each element is 20px wider margins = [10, 10, 10, 10, 10, 10, 10, 10]; - $('div.crumb').each(function(index){ + $('li.crumb').each(function(index){ $(this).css('margin', margins[index]); }); |