From 26ccb8f6782d516ac15fe8f8dff34a606496495c Mon Sep 17 00:00:00 2001 From: rmmayo Date: Mon, 10 Jun 2024 19:57:06 +0000 Subject: [PATCH] #2490 - added SkillsDisplay link to the c table. --- .../metrics/projectAchievements/AchievementsNavigator.vue | 6 +++--- .../e2e/metrics/projectMetrics_achievements_spec.js | 7 ++----- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/dashboard-prime/src/components/metrics/projectAchievements/AchievementsNavigator.vue b/dashboard-prime/src/components/metrics/projectAchievements/AchievementsNavigator.vue index f4cac698aa..f7d31c6674 100644 --- a/dashboard-prime/src/components/metrics/projectAchievements/AchievementsNavigator.vue +++ b/dashboard-prime/src/components/metrics/projectAchievements/AchievementsNavigator.vue @@ -182,10 +182,10 @@ const reloadTable = () => { {{ slotProps.data.userName }} -
- +
+ - +
diff --git a/e2e-tests/cypress/e2e/metrics/projectMetrics_achievements_spec.js b/e2e-tests/cypress/e2e/metrics/projectMetrics_achievements_spec.js index 321ca9209e..5375a65e02 100644 --- a/e2e-tests/cypress/e2e/metrics/projectMetrics_achievements_spec.js +++ b/e2e-tests/cypress/e2e/metrics/projectMetrics_achievements_spec.js @@ -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', @@ -292,11 +290,10 @@ describe('Metrics Tests - Achievements', () => { .find('[data-cy=achievementsNavigator-clientDisplayBtn]') .click(); - cy.wait('@getToken'); cy.url() .should('include', '/users/user0good@skills.org'); 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('user0good@skills.org');