Skip to content

Commit

Permalink
Update regression tests to support new valutext strings
Browse files Browse the repository at this point in the history
  • Loading branch information
mcking65 committed Dec 18, 2023
1 parent 1405105 commit 71170a3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion content/patterns/slider/examples/js/slider-rating.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ class RatingSlider {
getValueText(value) {
switch (value) {
case 0:
return 'no satisfaction rating selected';
return 'Choose a rating from one to ten where 10 is extremely satisfied';

case 1:
return 'one, extremely dissatisfied';
Expand Down
6 changes: 4 additions & 2 deletions test/tests/slider_slider-rating.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ const ex = {
ratingMax: '10',
ratingMin: '0',
ratingDefault: '0',
ratingDefaultValue: 'no rating on the 10 point satisfaction scale selected',
ratingDefaultValue:
'Choose a rating from one to ten where 10 is extremely satisfied',
ratingInc: 1,
ratingPageInc: 2,
};
Expand All @@ -37,7 +38,8 @@ const getRatingValueAndText = function (v, change) {

switch (value) {
case 0:
valuetext = 'no satisfaction rating selected';
valuetext =
'Choose a rating from one to ten where 10 is extremely satisfied';
break;

case 1:
Expand Down

0 comments on commit 71170a3

Please sign in to comment.