Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ENG-6123] Added the dynamic registration data to the component and fixed the tests #2340

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ module('Integration | institutions | dashboard | -components | total-count-kpi-w
userCount: 10,
privateProjectCount: 10,
publicProjectCount: 10,
publicRegistrationCount: 100,
},
});

Expand Down Expand Up @@ -56,7 +57,7 @@ module('Integration | institutions | dashboard | -components | total-count-kpi-w
.exists('The Registration Widget exists');

assert.dom('[data-test-total-count-kpi="2"]')
.hasText('1000 OSF Registrations');
.hasText('100 OSF Registrations');

assert.dom('[data-test-total-count-kpi="2"] [data-test-kpi-icon]')
.hasAttribute('data-icon', 'flag');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,7 @@ export default class TotalCountKpiWrapperComponent extends Component<TotalCountK
},
{
title: this.intl.t('institutions.dashboard.panel.registrations'),
// total: metrics.summaryMetrics.userCount,
total: 1000,
total: metrics.summaryMetrics.publicRegistrationCount,
icon: 'flag',
},
{
Expand Down
Loading