Skip to content

Commit bd40d53

Browse files
author
John Tordoff
committed
move around tests to reflect new behavior
1 parent 4c26c7b commit bd40d53

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

app/institutions/dashboard/-components/object-list/component-test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ module('Integration | institutions | dashboard | -components | object-list', hoo
6262
`);
6363

6464
// Elements from InstitutionDashboarWrapper are present
65-
assert.dom('[data-test-link-to-reports-archive]').exists('Link to download prior reports exists');
6665
assert.dom('[data-test-page-tab="summary"]').exists('Summary tab exists');
6766

6867
// Elements in the top bar are present

tests/acceptance/institutions/dashboard-test.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@ module(moduleName, hooks => {
2222
"Still at '/institutions/has-users/dashboard'.",
2323
);
2424

25-
assert.dom('[data-test-link-to-reports-archive]').exists('Link to download prior reports exists');
26-
2725
assert.dom('[data-test-page-tab="summary"]').exists('Summary tab exists');
2826
assert.dom('[data-test-page-tab="users"]').exists('Users tab exists');
2927
assert.dom('[data-test-page-tab="projects"]').exists('Projects tab exists');
@@ -38,21 +36,29 @@ module(moduleName, hooks => {
3836
await click('[data-test-page-tab="users"]');
3937
await percySnapshot(`${moduleName} - users`);
4038
assert.dom('[data-test-page-tab="users"]').hasClass('active', 'Users tab is active');
39+
assert.dom('[data-test-link-to-reports-archive]').exists('Link to download prior reports exists');
40+
assert.dom('[data-test-download-dropdown]').exists('Link to download file formats');
4141

4242
// Projects tab
4343
await click('[data-test-page-tab="projects"]');
4444
await percySnapshot(`${moduleName} - projects`);
4545
assert.dom('[data-test-page-tab="projects"]').hasClass('active', 'Projects tab is active');
46+
assert.dom('[data-test-link-to-reports-archive]').exists('Link to download prior reports exists');
47+
assert.dom('[data-test-download-dropdown]').exists('Link to download file formats');
4648

4749
// Registrations tab
4850
await click('[data-test-page-tab="registrations"]');
4951
await percySnapshot(`${moduleName} - registrations`);
5052
assert.dom('[data-test-page-tab="registrations"]').hasClass('active', 'Registrations tab is active');
53+
assert.dom('[data-test-link-to-reports-archive]').exists('Link to download prior reports exists');
54+
assert.dom('[data-test-download-dropdown]').exists('Link to download file formats');
5155

5256
// Preprints tab
5357
await click('[data-test-page-tab="preprints"]');
5458
await percySnapshot(`${moduleName} - preprints`);
5559
assert.dom('[data-test-page-tab="preprints"]').hasClass('active', 'Preprints tab is active');
60+
assert.dom('[data-test-link-to-reports-archive]').exists('Link to download prior reports exists');
61+
assert.dom('[data-test-download-dropdown]').exists('Link to download file formats');
5662
});
5763

5864
test('institutions dashboard: projects, registrations, and preprints tab', async function(assert) {

0 commit comments

Comments
 (0)