mirror of
https://github.com/datahub-project/datahub.git
synced 2025-12-26 09:26:22 +00:00
fix failing breadcrumb tests
This commit is contained in:
parent
a9949ebfa2
commit
c0ff52eea9
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user