Skip to content

Commit

Permalink
Update test
Browse files Browse the repository at this point in the history
  • Loading branch information
futa-ikeda committed Nov 19, 2024
1 parent 6e8dc51 commit 97b1c79
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ module('Integration | routes | institutions | dashboard | -components | institut
this.owner.register('service:router', OsfLinkRouterStub);
});

test('it renders and paginates 8 default columns', async function(assert) {
test('it renders and paginates 9 default columns', async function(assert) {
server.create('institution', {
id: 'testinstitution',
}, 'withMetrics');
Expand All @@ -41,16 +41,18 @@ module('Integration | routes | institutions | dashboard | -components | institut
/>
`);
assert.dom('[data-test-header]')
.exists({ count: 8 }, '8 default headers');
.exists({ count: 9 }, '9 default headers');
assert.dom('[data-test-header="department"]')
.exists({ count: 1 }, '1 departments header');
assert.dom('[data-test-header="orcid"]')
.exists('1 orcid header');
assert.dom('[data-test-header="publicProjects"]')
.exists({ count: 1 }, '1 public projects header');
assert.dom('[data-test-header="privateProjects"]')
.exists({ count: 1 }, '1 private projects header');

assert.dom('[data-test-item]')
.exists({ count: 80 }, '80 items 10 rows and 8 columns by default');
.exists({ count: 90 }, '90 items 10 rows and 9 columns by default');
assert.dom('[data-test-item="department"]')
.exists({ count: 10 }, '10 in the list with department');
assert.dom('[data-test-item="publicProjects"]')
Expand Down

0 comments on commit 97b1c79

Please sign in to comment.