Browse Source

Merge "Make getPorts and setBreadcrumb tests work"

changes/45/751945/1
Zuul 1 week ago
committed by Gerrit Code Review
parent
commit
5056b9bbe6
2 changed files with 4 additions and 1 deletions
  1. +3
    -1
      horizon/static/framework/util/navigations/navigations.service.spec.js
  2. +1
    -0
      openstack_dashboard/dashboards/project/static/dashboard/project/workflow/launch-instance/launch-instance-model.service.spec.js

+ 3
- 1
horizon/static/framework/util/navigations/navigations.service.spec.js View File

@@ -154,7 +154,9 @@

describe('setBreadcrumb', function() {
it('sets breadcrumb items from specified array', function() {
service.setBreadcrumb(breadcrumb);
service.setBreadcrumb(['Identity', 'Roles']);
expect(navigations.text('Identity').length).toBe(1);
expect(navigations.text('Roles').length).toBe(1);
});
});



+ 1
- 0
openstack_dashboard/dashboards/project/static/dashboard/project/workflow/launch-instance/launch-instance-model.service.spec.js View File

@@ -621,6 +621,7 @@
neutronEnabled = true;
model.initialize(true);
scope.$apply();
expect(model.newInstanceSpec.ports.length).toBe(0);
});

it('should have the proper entries in allowedBootSources', function() {


Loading…
Cancel
Save