fix failing breadcrumb tests

This commit is contained in:
Seyi Adebajo 2018-07-10 21:38:48 -07:00
parent a9949ebfa2
commit c0ff52eea9

View File

@ -7,13 +7,13 @@ moduleForComponent('datasets/urn-breadcrumbs', 'Integration | Component | datase
integration: true
});
const home = ['datasets'];
const home = ['Data Systems'];
test('it renders only the home breadcrumb without a valid urn', function(assert) {
this.render(hbs`{{datasets/urn-breadcrumbs}}`);
const homeCrumb = document.querySelector('.nacho-breadcrumbs__crumb');
assert.equal(homeCrumb.textContent.trim(), 'datasets', 'shows the home breadcrumb');
assert.equal(homeCrumb.textContent.trim(), 'Data Systems', 'shows the home breadcrumb');
assert.equal(
document.querySelectorAll('.nacho-breadcrumbs__crumb').length,
1,