File tree Expand file tree Collapse file tree 2 files changed +6
-7
lines changed
src/components/Quiz/QuizWidget Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -58,6 +58,7 @@ i18n.use(initReactI18next).init({
58
58
react : { useSuspense : false } ,
59
59
supportedLngs,
60
60
resources,
61
+ defaultNS : "common" ,
61
62
} )
62
63
63
64
export default i18n
Original file line number Diff line number Diff line change @@ -47,13 +47,11 @@ export const QuizWidgetAllCorrect: StoryObj<typeof meta> = {
47
47
const quizWidget = canvas . getByTestId ( "quiz-widget" )
48
48
await expect ( quizWidget ) . toBeInTheDocument ( )
49
49
50
- // TODO: would like to add this check to confirm translation is working
51
- // currently broken here, despite it working fine in prod
52
- // await waitFor(() =>
53
- // expect(canvas.getByTestId("answer-status-null")).toHaveTextContent(
54
- // "Layer 2"
55
- // )
56
- // )
50
+ await waitFor ( ( ) =>
51
+ expect ( canvas . getByTestId ( "answer-status-null" ) ) . toHaveTextContent (
52
+ "Layer 2"
53
+ )
54
+ )
57
55
58
56
await waitFor ( ( ) =>
59
57
expect ( canvas . getByTestId ( "check-answer-button" ) ) . toBeDisabled ( )
You can’t perform that action at this time.
0 commit comments