Skip to content

Commit

Permalink
#2490: skills-client theme - wip; added tests for skills progress; fi…
Browse files Browse the repository at this point in the history
…xed today points on skill progress bars
  • Loading branch information
sudo-may committed May 10, 2024
1 parent 559e7a0 commit e7987c6
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 1 deletion.
Expand Up @@ -35,9 +35,13 @@ const progressPercent = computed(() => {
return totalPts
})
const progressBeforeToday = computed(() => {
return ((props.skill.points - props.skill.todaysPoints) / props.skill.totalPoints) * 100;
})
</script>
<template>
<vertical-progress-bar :total-progress="progressPercent" :is-locked="isLocked">
<vertical-progress-bar :total-progress="progressPercent" :total-progress-before-today="progressBeforeToday" :is-locked="isLocked">
</vertical-progress-bar>
</template>
Expand Down
Expand Up @@ -126,6 +126,17 @@ describe('Client Display Theme Components Tests', () => {
name: 'progressIndicators settings - completeColor'
});

cy.cdClickSubj(0, 'Subject 1', true);
cy.matchSnapshotImageForElement('[data-cy="skillsProgressList"] [data-pc-section="body"]', {
name: 'progressIndicators settings - skill list - beforeTodayColor earnedTodayColor and incompleteColor'
});

cy.cdBack();
cy.cdClickSubj(2, 'Completed', false);
cy.matchSnapshotImageForElement('[data-cy="skillsProgressList"] [data-pc-section="body"]', {
name: 'progressIndicators settings - skill list - completeColor'
});

});

it.skip('point history chart - line, label and gradient', () => {
Expand Down
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit e7987c6

Please sign in to comment.