Skip to content

Commit

Permalink
#2490 - added SkillsDisplay link to the c table.
Browse files Browse the repository at this point in the history
  • Loading branch information
rmmayo committed Jun 10, 2024
1 parent f159cf3 commit 26ccb8f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -182,10 +182,10 @@ const reloadTable = () => {
{{ slotProps.data.userName }}
</span>
</div>
<div class="flex">
<!-- <router-link :to="{ name: 'ClientDisplayPreview', params: { projectId: projectId, userId: data.item.userId } }">-->
<div class="flex ml-2">
<router-link :to="{ name: 'SkillsDisplaySkillsDisplayPreviewProject', params: { projectId: route.paramsprojectId, userId: slotProps.data.userId } }">
<SkillsButton size="small" data-cy="achievementsNavigator-clientDisplayBtn"><i class="fa fa-eye"/></SkillsButton>
<!-- </router-link>-->
</router-link>
</div>
</div>
</template>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -199,12 +199,10 @@ describe('Metrics Tests - Achievements', () => {

});

it.skip('achievements table - validate the link to user client display', () => {
it('achievements table - validate the link to user client display', () => {
cy.intercept('/admin/projects/proj1/metrics/userAchievementsChartBuilder?**')
.as('userAchievementsChartBuilder');

cy.intercept('/admin/projects/proj1/token/**').as('getToken');

cy.request('POST', '/admin/projects/proj1/subjects/subj1', {
projectId: 'proj1',
subjectId: 'subj1',
Expand Down Expand Up @@ -292,11 +290,10 @@ describe('Metrics Tests - Achievements', () => {
.find('[data-cy=achievementsNavigator-clientDisplayBtn]')
.click();

cy.wait('@getToken');
cy.url()
.should('include', '/users/[email protected]');
cy.get('[data-cy=subPageHeader]')
.contains('Client Display');
.contains('User\'s Display');
// userId has lowercase "g" while userIdForDisplay has uppercase "G"; this must be userId
cy.get('[data-cy=pageHeader]')
.contains('[email protected]');
Expand Down

0 comments on commit 26ccb8f

Please sign in to comment.