diff --git a/src/editors/containers/ProblemEditor/components/EditProblemView/SettingsWidget/settingsComponents/ScoringCard.jsx b/src/editors/containers/ProblemEditor/components/EditProblemView/SettingsWidget/settingsComponents/ScoringCard.jsx index abe4b28bf..53f0e9722 100644 --- a/src/editors/containers/ProblemEditor/components/EditProblemView/SettingsWidget/settingsComponents/ScoringCard.jsx +++ b/src/editors/containers/ProblemEditor/components/EditProblemView/SettingsWidget/settingsComponents/ScoringCard.jsx @@ -22,7 +22,7 @@ export const ScoringCard = ({ learningContextId, isLibrary, }) => { - const isGradingMethodEnabled = getConfig().ENABLE_GRADING_METHOD_IN_PROBLEMS || false; + const isGradingMethodEnabled = getConfig().ENABLE_GRADING_METHOD_IN_PROBLEMS; const { handleUnlimitedChange, handleMaxAttemptChange, diff --git a/src/editors/containers/ProblemEditor/components/EditProblemView/SettingsWidget/settingsComponents/__snapshots__/ScoringCard.test.jsx.snap b/src/editors/containers/ProblemEditor/components/EditProblemView/SettingsWidget/settingsComponents/__snapshots__/ScoringCard.test.jsx.snap index 59a32a66e..41c40704d 100644 --- a/src/editors/containers/ProblemEditor/components/EditProblemView/SettingsWidget/settingsComponents/__snapshots__/ScoringCard.test.jsx.snap +++ b/src/editors/containers/ProblemEditor/components/EditProblemView/SettingsWidget/settingsComponents/__snapshots__/ScoringCard.test.jsx.snap @@ -5,18 +5,58 @@ exports[`ScoringCard snapshot snapshot: scoring setting card 1`] = ` className="scoringCard" extraSections={Array []} hasExpandableTextArea={false} - summary="{weight, plural, =0 {Ungraded} other {# points}} · {attempts, plural, =1 {# attempt} other {# attempts}}" + summary="{weight, plural, =0 {Ungraded} other {# points}} · {attempts, plural, =1 {# attempt} other {# attempts}} · Last Score" title="Scoring" >
+ + + + + + + + + + +
+ + + + + + + + + + +
+ + + + + + + + + + + { const i18n = jest.requireActual('@edx/frontend-platform/i18n');