aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/tests/js
diff options
context:
space:
mode:
authorJulia Kirschenheuter <6078378+JuliaKirschenheuter@users.noreply.github.com>2023-04-04 14:54:57 +0200
committerGitHub <noreply@github.com>2023-04-04 14:54:57 +0200
commit45c27aa3026cb8fa44973a88f18c843d5e68faa7 (patch)
tree6e9efc748a96a81bc0f190853ba2ee675e3017c2 /apps/files/tests/js
parent59d0e7711dc84d46b30fd7a66ec13d8207b87150 (diff)
parentdc0a95cce0900c6c501147b1e9137c4a3b8ee3b0 (diff)
downloadnextcloud-server-45c27aa3026cb8fa44973a88f18c843d5e68faa7.tar.gz
nextcloud-server-45c27aa3026cb8fa44973a88f18c843d5e68faa7.zip
Merge pull request #37453 from nextcloud/fix/36918-The_breadcrumb_navigation_represents_a_list_and_should_best_be_implemented_as_such
the breadcrumb navigation represents a list and should best be implemented as such
Diffstat (limited to 'apps/files/tests/js')
-rw-r--r--apps/files/tests/js/breadcrumbSpec.js10
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]);
});