Skip to content

Commit

Permalink
chore: update snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
BryanttV committed Apr 2, 2024
1 parent 0ca7d58 commit 8b64635
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 126 deletions.
1 change: 1 addition & 0 deletions example/setupTest.example.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ mergeConfig({
STUDIO_BASE_URL: process.env.STUDIO_BASE_URL,
BLOCKSTORE_COLLECTION_UUID: process.env.BLOCKSTORE_COLLECTION_UUID,
SECURE_ORIGIN_XBLOCK_BOOTSTRAP_HTML_URL: process.env.SECURE_ORIGIN_XBLOCK_BOOTSTRAP_HTML_URL,
ENABLE_GRADING_METHOD_IN_PROBLEMS: process.env.ENABLE_GRADING_METHOD_IN_PROBLEMS,
});

window.MutationObserver = MutationObserver;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,58 +5,18 @@ 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}} · Last Score"
summary="{weight, plural, =0 {Ungraded} other {# points}} · {attempts, plural, =1 {# attempt} other {# attempts}}"
title="Scoring"
>
<div
className="mb-4"
>
<FormattedMessage
defaultMessage="Specify grading method, point weight and the number of answer attempts"
defaultMessage="Specify point weight and the number of answer attempts"
description="Descriptive text for scoring settings"
id="authoring.problemeditor.settings.scoring.label"
/>
</div>
<Form.Group>
<Form.Control
as="select"
floatingLabel="Grading Method"
onChange={[MockFunction scoringCardHooks.handleGradingMethodChange]}
value="last_score"
>
<option
key="last_score"
value="last_score"
>
Last Score
</option>
<option
key="highest_score"
value="highest_score"
>
Highest Score
</option>
<option
key="average_score"
value="average_score"
>
Average Score
</option>
<option
key="first_score"
value="first_score"
>
First Score
</option>
</Form.Control>
<Form.Control.Feedback>
<FormattedMessage
defaultMessage="Define the grading method for this problem. By default, it is the score of the last submission made by the student."
description="Summary text for scoring grading method"
id="authoring.problemeditor.settings.scoring.grading.method.hint"
/>
</Form.Control.Feedback>
</Form.Group>
<Form.Group>
<Form.Control
floatingLabel="Points"
Expand Down Expand Up @@ -120,58 +80,18 @@ exports[`ScoringCard snapshot snapshot: scoring setting card max attempts 1`] =
className="scoringCard"
extraSections={Array []}
hasExpandableTextArea={false}
summary="{weight, plural, =0 {Ungraded} other {# points}} · Unlimited attempts · Last Score"
summary="{weight, plural, =0 {Ungraded} other {# points}} · Unlimited attempts"
title="Scoring"
>
<div
className="mb-4"
>
<FormattedMessage
defaultMessage="Specify grading method, point weight and the number of answer attempts"
defaultMessage="Specify point weight and the number of answer attempts"
description="Descriptive text for scoring settings"
id="authoring.problemeditor.settings.scoring.label"
/>
</div>
<Form.Group>
<Form.Control
as="select"
floatingLabel="Grading Method"
onChange={[MockFunction scoringCardHooks.handleGradingMethodChange]}
value="last_score"
>
<option
key="last_score"
value="last_score"
>
Last Score
</option>
<option
key="highest_score"
value="highest_score"
>
Highest Score
</option>
<option
key="average_score"
value="average_score"
>
Average Score
</option>
<option
key="first_score"
value="first_score"
>
First Score
</option>
</Form.Control>
<Form.Control.Feedback>
<FormattedMessage
defaultMessage="Define the grading method for this problem. By default, it is the score of the last submission made by the student."
description="Summary text for scoring grading method"
id="authoring.problemeditor.settings.scoring.grading.method.hint"
/>
</Form.Control.Feedback>
</Form.Group>
<Form.Group>
<Form.Control
floatingLabel="Points"
Expand Down Expand Up @@ -235,58 +155,18 @@ exports[`ScoringCard snapshot snapshot: scoring setting card zero zero weight 1`
className="scoringCard"
extraSections={Array []}
hasExpandableTextArea={false}
summary="{weight, plural, =0 {Ungraded} other {# points}} · {attempts, plural, =1 {# attempt} other {# attempts}} · Last Score"
summary="{weight, plural, =0 {Ungraded} other {# points}} · {attempts, plural, =1 {# attempt} other {# attempts}}"
title="Scoring"
>
<div
className="mb-4"
>
<FormattedMessage
defaultMessage="Specify grading method, point weight and the number of answer attempts"
defaultMessage="Specify point weight and the number of answer attempts"
description="Descriptive text for scoring settings"
id="authoring.problemeditor.settings.scoring.label"
/>
</div>
<Form.Group>
<Form.Control
as="select"
floatingLabel="Grading Method"
onChange={[MockFunction scoringCardHooks.handleGradingMethodChange]}
value="last_score"
>
<option
key="last_score"
value="last_score"
>
Last Score
</option>
<option
key="highest_score"
value="highest_score"
>
Highest Score
</option>
<option
key="average_score"
value="average_score"
>
Average Score
</option>
<option
key="first_score"
value="first_score"
>
First Score
</option>
</Form.Control>
<Form.Control.Feedback>
<FormattedMessage
defaultMessage="Define the grading method for this problem. By default, it is the score of the last submission made by the student."
description="Summary text for scoring grading method"
id="authoring.problemeditor.settings.scoring.grading.method.hint"
/>
</Form.Control.Feedback>
</Form.Group>
<Form.Group>
<Form.Control
floatingLabel="Points"
Expand Down

0 comments on commit 8b64635

Please sign in to comment.