@magmamath/students-features 1.2.2-rc.2 → 1.2.2-rc.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (338) hide show
  1. package/dist/commonjs/config/dataTestIDs.js +52 -7
  2. package/dist/commonjs/config/dataTestIDs.js.map +1 -1
  3. package/dist/commonjs/features/chatbot/components/Chat/Chat.js +1 -1
  4. package/dist/commonjs/features/chatbot/components/Chat/Chat.js.map +1 -1
  5. package/dist/commonjs/features/chatbot/components/Chat/ChatIcon.js +2 -0
  6. package/dist/commonjs/features/chatbot/components/Chat/ChatIcon.js.map +1 -1
  7. package/dist/commonjs/features/chatbot/components/Chat/CloseButton.js +2 -0
  8. package/dist/commonjs/features/chatbot/components/Chat/CloseButton.js.map +1 -1
  9. package/dist/commonjs/features/chatbot/components/ChatControls/ChatControls.js +1 -1
  10. package/dist/commonjs/features/chatbot/components/ChatControls/ChatControls.js.map +1 -1
  11. package/dist/commonjs/features/chatbot/components/ChatInput/FreeText/ChatTextInput.js +3 -1
  12. package/dist/commonjs/features/chatbot/components/ChatInput/FreeText/ChatTextInput.js.map +1 -1
  13. package/dist/commonjs/features/chatbot/components/ChatInput/FreeText/FreeTextInputBlock.js +2 -0
  14. package/dist/commonjs/features/chatbot/components/ChatInput/FreeText/FreeTextInputBlock.js.map +1 -1
  15. package/dist/commonjs/features/chatbot/components/ChatInput/FreeText/SendMessageButton.js +2 -0
  16. package/dist/commonjs/features/chatbot/components/ChatInput/FreeText/SendMessageButton.js.map +1 -1
  17. package/dist/commonjs/features/chatbot/components/ChatInput/RequestHintButton.js +1 -1
  18. package/dist/commonjs/features/chatbot/components/ChatInput/RequestHintButton.js.map +1 -1
  19. package/dist/commonjs/features/chatbot/components/ChatMessage/MessageLoader.js +2 -0
  20. package/dist/commonjs/features/chatbot/components/ChatMessage/MessageLoader.js.map +1 -1
  21. package/dist/commonjs/features/chatbot/components/ChatMessage/MessageTextToSpeech.js +3 -1
  22. package/dist/commonjs/features/chatbot/components/ChatMessage/MessageTextToSpeech.js.map +1 -1
  23. package/dist/commonjs/features/chatbot/components/ChatMessage/ReceivedMessage.js +2 -0
  24. package/dist/commonjs/features/chatbot/components/ChatMessage/ReceivedMessage.js.map +1 -1
  25. package/dist/commonjs/features/chatbot/components/ChatMessage/SentMessage.js +2 -0
  26. package/dist/commonjs/features/chatbot/components/ChatMessage/SentMessage.js.map +1 -1
  27. package/dist/commonjs/features/chatbot/errorSpotting/ErrorSpottingButton.js +2 -0
  28. package/dist/commonjs/features/chatbot/errorSpotting/ErrorSpottingButton.js.map +1 -1
  29. package/dist/commonjs/features/endOfAssignment/components/CheatDetected/CheatDetected.js +3 -0
  30. package/dist/commonjs/features/endOfAssignment/components/CheatDetected/CheatDetected.js.map +1 -1
  31. package/dist/commonjs/features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.js +2 -0
  32. package/dist/commonjs/features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.js.map +1 -1
  33. package/dist/commonjs/features/endOfAssignment/components/ExamLeave/ExamLeave.js +3 -0
  34. package/dist/commonjs/features/endOfAssignment/components/ExamLeave/ExamLeave.js.map +1 -1
  35. package/dist/commonjs/features/endOfAssignment/components/ExamPaused/ExamPaused.js +3 -0
  36. package/dist/commonjs/features/endOfAssignment/components/ExamPaused/ExamPaused.js.map +1 -1
  37. package/dist/commonjs/features/endOfAssignment/components/ExamSubmit/ExamSubmit.js +3 -0
  38. package/dist/commonjs/features/endOfAssignment/components/ExamSubmit/ExamSubmit.js.map +1 -1
  39. package/dist/commonjs/features/endOfAssignment/components/Modal/Modal.js +4 -1
  40. package/dist/commonjs/features/endOfAssignment/components/Modal/Modal.js.map +1 -1
  41. package/dist/commonjs/features/endOfAssignment/components/NoAnswer/NoAnswer.js +9 -3
  42. package/dist/commonjs/features/endOfAssignment/components/NoAnswer/NoAnswer.js.map +1 -1
  43. package/dist/commonjs/features/endOfAssignment/ui/PracticeButton.js +2 -0
  44. package/dist/commonjs/features/endOfAssignment/ui/PracticeButton.js.map +1 -1
  45. package/dist/commonjs/features/endOfAssignment/ui/PracticeButtonGroup.js +2 -0
  46. package/dist/commonjs/features/endOfAssignment/ui/PracticeButtonGroup.js.map +1 -1
  47. package/dist/commonjs/features/exampleSolution/components/QuestionSection.js +2 -0
  48. package/dist/commonjs/features/exampleSolution/components/QuestionSection.js.map +1 -1
  49. package/dist/commonjs/features/exampleSolution/components/SolutionSection.js +2 -0
  50. package/dist/commonjs/features/exampleSolution/components/SolutionSection.js.map +1 -1
  51. package/dist/commonjs/features/feedback/components/EmptyComment.js +2 -0
  52. package/dist/commonjs/features/feedback/components/EmptyComment.js.map +1 -1
  53. package/dist/commonjs/features/feedback/components/ListCardCommentsCount.js +2 -0
  54. package/dist/commonjs/features/feedback/components/ListCardCommentsCount.js.map +1 -1
  55. package/dist/commonjs/features/feedback/components/TeacherFeedbackButton.js +2 -2
  56. package/dist/commonjs/features/feedback/components/TeacherFeedbackButton.js.map +1 -1
  57. package/dist/commonjs/features/feedback/components/TeacherFeedbackComments/TeacherComment.js +2 -0
  58. package/dist/commonjs/features/feedback/components/TeacherFeedbackComments/TeacherComment.js.map +1 -1
  59. package/dist/commonjs/features/feedback/components/TeacherFeedbackComments/TeacherFeedbackComments.js +0 -2
  60. package/dist/commonjs/features/feedback/components/TeacherFeedbackComments/TeacherFeedbackComments.js.map +1 -1
  61. package/dist/commonjs/features/feedback/components/UnreadMessagesBadge.js +1 -1
  62. package/dist/commonjs/features/feedback/components/UnreadMessagesBadge.js.map +1 -1
  63. package/dist/commonjs/features/keyboard/components/AlgebraLayout/AlgebraLayout.js +2 -0
  64. package/dist/commonjs/features/keyboard/components/AlgebraLayout/AlgebraLayout.js.map +1 -1
  65. package/dist/commonjs/features/keyboard/components/BasicLayout/BasicLayout.js +2 -0
  66. package/dist/commonjs/features/keyboard/components/BasicLayout/BasicLayout.js.map +1 -1
  67. package/dist/commonjs/features/keyboard/components/BasicLayout/CurrencyBasicLayout.js +9 -4
  68. package/dist/commonjs/features/keyboard/components/BasicLayout/CurrencyBasicLayout.js.map +1 -1
  69. package/dist/commonjs/features/keyboard/components/BasicLayout/TimeBasicLayout.js +15 -11
  70. package/dist/commonjs/features/keyboard/components/BasicLayout/TimeBasicLayout.js.map +1 -1
  71. package/dist/commonjs/features/keyboard/components/BasicPlusLayout/BasicPlusLayout.js +2 -0
  72. package/dist/commonjs/features/keyboard/components/BasicPlusLayout/BasicPlusLayout.js.map +1 -1
  73. package/dist/commonjs/features/keyboard/components/BasicPlusPlusLayout/BasicPlusPlusLayout.js +2 -0
  74. package/dist/commonjs/features/keyboard/components/BasicPlusPlusLayout/BasicPlusPlusLayout.js.map +1 -1
  75. package/dist/commonjs/features/keyboard/components/Keyboard.js +2 -0
  76. package/dist/commonjs/features/keyboard/components/Keyboard.js.map +1 -1
  77. package/dist/commonjs/features/keyboard/components/MainLayout/MainLayout.js +2 -0
  78. package/dist/commonjs/features/keyboard/components/MainLayout/MainLayout.js.map +1 -1
  79. package/dist/commonjs/features/keyboard/components/Numpad/Numpad.js +2 -0
  80. package/dist/commonjs/features/keyboard/components/Numpad/Numpad.js.map +1 -1
  81. package/dist/commonjs/features/keyboard/components/UnderlinedLayout/UnderlinedLayout.js +9 -4
  82. package/dist/commonjs/features/keyboard/components/UnderlinedLayout/UnderlinedLayout.js.map +1 -1
  83. package/dist/commonjs/features/keyboard/components/UnitsLayout/UnitsLayout.js +2 -0
  84. package/dist/commonjs/features/keyboard/components/UnitsLayout/UnitsLayout.js.map +1 -1
  85. package/dist/commonjs/features/voice/recording/components/VoiceRecordButton.js +2 -0
  86. package/dist/commonjs/features/voice/recording/components/VoiceRecordButton.js.map +1 -1
  87. package/dist/commonjs/features/voice/recording/components/VoiceRecordDeleteButton.js +2 -0
  88. package/dist/commonjs/features/voice/recording/components/VoiceRecordDeleteButton.js.map +1 -1
  89. package/dist/commonjs/features/voice/recording/components/VoiceRecordTimer.js +2 -0
  90. package/dist/commonjs/features/voice/recording/components/VoiceRecordTimer.js.map +1 -1
  91. package/dist/commonjs/features/voice/recording/modal/ModalFooterButtons.js +5 -1
  92. package/dist/commonjs/features/voice/recording/modal/ModalFooterButtons.js.map +1 -1
  93. package/dist/commonjs/features/voice/recording/modal/VoiceRecordDeleteModal.js +4 -0
  94. package/dist/commonjs/features/voice/recording/modal/VoiceRecordDeleteModal.js.map +1 -1
  95. package/dist/commonjs/features/voice/recording/modal/VoiceRecordUndoModal.js +4 -0
  96. package/dist/commonjs/features/voice/recording/modal/VoiceRecordUndoModal.js.map +1 -1
  97. package/dist/commonjs/shared/components/PlayButton.js.map +1 -1
  98. package/dist/module/config/dataTestIDs.js +52 -7
  99. package/dist/module/config/dataTestIDs.js.map +1 -1
  100. package/dist/module/features/chatbot/components/Chat/Chat.js +1 -1
  101. package/dist/module/features/chatbot/components/Chat/Chat.js.map +1 -1
  102. package/dist/module/features/chatbot/components/Chat/ChatIcon.js +2 -0
  103. package/dist/module/features/chatbot/components/Chat/ChatIcon.js.map +1 -1
  104. package/dist/module/features/chatbot/components/Chat/CloseButton.js +2 -0
  105. package/dist/module/features/chatbot/components/Chat/CloseButton.js.map +1 -1
  106. package/dist/module/features/chatbot/components/ChatControls/ChatControls.js +1 -1
  107. package/dist/module/features/chatbot/components/ChatControls/ChatControls.js.map +1 -1
  108. package/dist/module/features/chatbot/components/ChatInput/FreeText/ChatTextInput.js +3 -1
  109. package/dist/module/features/chatbot/components/ChatInput/FreeText/ChatTextInput.js.map +1 -1
  110. package/dist/module/features/chatbot/components/ChatInput/FreeText/FreeTextInputBlock.js +2 -0
  111. package/dist/module/features/chatbot/components/ChatInput/FreeText/FreeTextInputBlock.js.map +1 -1
  112. package/dist/module/features/chatbot/components/ChatInput/FreeText/SendMessageButton.js +2 -0
  113. package/dist/module/features/chatbot/components/ChatInput/FreeText/SendMessageButton.js.map +1 -1
  114. package/dist/module/features/chatbot/components/ChatInput/RequestHintButton.js +1 -1
  115. package/dist/module/features/chatbot/components/ChatInput/RequestHintButton.js.map +1 -1
  116. package/dist/module/features/chatbot/components/ChatMessage/MessageLoader.js +2 -0
  117. package/dist/module/features/chatbot/components/ChatMessage/MessageLoader.js.map +1 -1
  118. package/dist/module/features/chatbot/components/ChatMessage/MessageTextToSpeech.js +3 -1
  119. package/dist/module/features/chatbot/components/ChatMessage/MessageTextToSpeech.js.map +1 -1
  120. package/dist/module/features/chatbot/components/ChatMessage/ReceivedMessage.js +2 -0
  121. package/dist/module/features/chatbot/components/ChatMessage/ReceivedMessage.js.map +1 -1
  122. package/dist/module/features/chatbot/components/ChatMessage/SentMessage.js +2 -0
  123. package/dist/module/features/chatbot/components/ChatMessage/SentMessage.js.map +1 -1
  124. package/dist/module/features/chatbot/errorSpotting/ErrorSpottingButton.js +2 -0
  125. package/dist/module/features/chatbot/errorSpotting/ErrorSpottingButton.js.map +1 -1
  126. package/dist/module/features/endOfAssignment/components/CheatDetected/CheatDetected.js +3 -0
  127. package/dist/module/features/endOfAssignment/components/CheatDetected/CheatDetected.js.map +1 -1
  128. package/dist/module/features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.js +2 -0
  129. package/dist/module/features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.js.map +1 -1
  130. package/dist/module/features/endOfAssignment/components/ExamLeave/ExamLeave.js +3 -0
  131. package/dist/module/features/endOfAssignment/components/ExamLeave/ExamLeave.js.map +1 -1
  132. package/dist/module/features/endOfAssignment/components/ExamPaused/ExamPaused.js +3 -0
  133. package/dist/module/features/endOfAssignment/components/ExamPaused/ExamPaused.js.map +1 -1
  134. package/dist/module/features/endOfAssignment/components/ExamSubmit/ExamSubmit.js +3 -0
  135. package/dist/module/features/endOfAssignment/components/ExamSubmit/ExamSubmit.js.map +1 -1
  136. package/dist/module/features/endOfAssignment/components/Modal/Modal.js +4 -1
  137. package/dist/module/features/endOfAssignment/components/Modal/Modal.js.map +1 -1
  138. package/dist/module/features/endOfAssignment/components/NoAnswer/NoAnswer.js +9 -3
  139. package/dist/module/features/endOfAssignment/components/NoAnswer/NoAnswer.js.map +1 -1
  140. package/dist/module/features/endOfAssignment/ui/PracticeButton.js +2 -0
  141. package/dist/module/features/endOfAssignment/ui/PracticeButton.js.map +1 -1
  142. package/dist/module/features/endOfAssignment/ui/PracticeButtonGroup.js +2 -0
  143. package/dist/module/features/endOfAssignment/ui/PracticeButtonGroup.js.map +1 -1
  144. package/dist/module/features/exampleSolution/components/QuestionSection.js +2 -0
  145. package/dist/module/features/exampleSolution/components/QuestionSection.js.map +1 -1
  146. package/dist/module/features/exampleSolution/components/SolutionSection.js +2 -0
  147. package/dist/module/features/exampleSolution/components/SolutionSection.js.map +1 -1
  148. package/dist/module/features/feedback/components/EmptyComment.js +2 -0
  149. package/dist/module/features/feedback/components/EmptyComment.js.map +1 -1
  150. package/dist/module/features/feedback/components/ListCardCommentsCount.js +2 -0
  151. package/dist/module/features/feedback/components/ListCardCommentsCount.js.map +1 -1
  152. package/dist/module/features/feedback/components/TeacherFeedbackButton.js +2 -2
  153. package/dist/module/features/feedback/components/TeacherFeedbackButton.js.map +1 -1
  154. package/dist/module/features/feedback/components/TeacherFeedbackComments/TeacherComment.js +2 -0
  155. package/dist/module/features/feedback/components/TeacherFeedbackComments/TeacherComment.js.map +1 -1
  156. package/dist/module/features/feedback/components/TeacherFeedbackComments/TeacherFeedbackComments.js +0 -2
  157. package/dist/module/features/feedback/components/TeacherFeedbackComments/TeacherFeedbackComments.js.map +1 -1
  158. package/dist/module/features/feedback/components/UnreadMessagesBadge.js +1 -1
  159. package/dist/module/features/feedback/components/UnreadMessagesBadge.js.map +1 -1
  160. package/dist/module/features/keyboard/components/AlgebraLayout/AlgebraLayout.js +2 -0
  161. package/dist/module/features/keyboard/components/AlgebraLayout/AlgebraLayout.js.map +1 -1
  162. package/dist/module/features/keyboard/components/BasicLayout/BasicLayout.js +2 -0
  163. package/dist/module/features/keyboard/components/BasicLayout/BasicLayout.js.map +1 -1
  164. package/dist/module/features/keyboard/components/BasicLayout/CurrencyBasicLayout.js +9 -4
  165. package/dist/module/features/keyboard/components/BasicLayout/CurrencyBasicLayout.js.map +1 -1
  166. package/dist/module/features/keyboard/components/BasicLayout/TimeBasicLayout.js +16 -12
  167. package/dist/module/features/keyboard/components/BasicLayout/TimeBasicLayout.js.map +1 -1
  168. package/dist/module/features/keyboard/components/BasicPlusLayout/BasicPlusLayout.js +2 -0
  169. package/dist/module/features/keyboard/components/BasicPlusLayout/BasicPlusLayout.js.map +1 -1
  170. package/dist/module/features/keyboard/components/BasicPlusPlusLayout/BasicPlusPlusLayout.js +2 -0
  171. package/dist/module/features/keyboard/components/BasicPlusPlusLayout/BasicPlusPlusLayout.js.map +1 -1
  172. package/dist/module/features/keyboard/components/Keyboard.js +2 -0
  173. package/dist/module/features/keyboard/components/Keyboard.js.map +1 -1
  174. package/dist/module/features/keyboard/components/MainLayout/MainLayout.js +2 -0
  175. package/dist/module/features/keyboard/components/MainLayout/MainLayout.js.map +1 -1
  176. package/dist/module/features/keyboard/components/Numpad/Numpad.js +2 -0
  177. package/dist/module/features/keyboard/components/Numpad/Numpad.js.map +1 -1
  178. package/dist/module/features/keyboard/components/UnderlinedLayout/UnderlinedLayout.js +9 -4
  179. package/dist/module/features/keyboard/components/UnderlinedLayout/UnderlinedLayout.js.map +1 -1
  180. package/dist/module/features/keyboard/components/UnitsLayout/UnitsLayout.js +2 -0
  181. package/dist/module/features/keyboard/components/UnitsLayout/UnitsLayout.js.map +1 -1
  182. package/dist/module/features/voice/recording/components/VoiceRecordButton.js +2 -0
  183. package/dist/module/features/voice/recording/components/VoiceRecordButton.js.map +1 -1
  184. package/dist/module/features/voice/recording/components/VoiceRecordDeleteButton.js +2 -0
  185. package/dist/module/features/voice/recording/components/VoiceRecordDeleteButton.js.map +1 -1
  186. package/dist/module/features/voice/recording/components/VoiceRecordTimer.js +2 -0
  187. package/dist/module/features/voice/recording/components/VoiceRecordTimer.js.map +1 -1
  188. package/dist/module/features/voice/recording/modal/ModalFooterButtons.js +5 -1
  189. package/dist/module/features/voice/recording/modal/ModalFooterButtons.js.map +1 -1
  190. package/dist/module/features/voice/recording/modal/VoiceRecordDeleteModal.js +4 -0
  191. package/dist/module/features/voice/recording/modal/VoiceRecordDeleteModal.js.map +1 -1
  192. package/dist/module/features/voice/recording/modal/VoiceRecordUndoModal.js +4 -0
  193. package/dist/module/features/voice/recording/modal/VoiceRecordUndoModal.js.map +1 -1
  194. package/dist/module/shared/components/PlayButton.js.map +1 -1
  195. package/dist/typescript/commonjs/config/dataTestIDs.d.ts +52 -7
  196. package/dist/typescript/commonjs/config/dataTestIDs.d.ts.map +1 -1
  197. package/dist/typescript/commonjs/features/chatbot/components/Chat/ChatIcon.d.ts.map +1 -1
  198. package/dist/typescript/commonjs/features/chatbot/components/Chat/CloseButton.d.ts.map +1 -1
  199. package/dist/typescript/commonjs/features/chatbot/components/ChatInput/FreeText/ChatTextInput.d.ts.map +1 -1
  200. package/dist/typescript/commonjs/features/chatbot/components/ChatInput/FreeText/FreeTextInputBlock.d.ts.map +1 -1
  201. package/dist/typescript/commonjs/features/chatbot/components/ChatInput/FreeText/SendMessageButton.d.ts.map +1 -1
  202. package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/MessageLoader.d.ts.map +1 -1
  203. package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/MessageTextToSpeech.d.ts.map +1 -1
  204. package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/ReceivedMessage.d.ts.map +1 -1
  205. package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/SentMessage.d.ts.map +1 -1
  206. package/dist/typescript/commonjs/features/chatbot/errorSpotting/ErrorSpottingButton.d.ts.map +1 -1
  207. package/dist/typescript/commonjs/features/endOfAssignment/components/CheatDetected/CheatDetected.d.ts.map +1 -1
  208. package/dist/typescript/commonjs/features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.d.ts.map +1 -1
  209. package/dist/typescript/commonjs/features/endOfAssignment/components/ExamLeave/ExamLeave.d.ts.map +1 -1
  210. package/dist/typescript/commonjs/features/endOfAssignment/components/ExamPaused/ExamPaused.d.ts.map +1 -1
  211. package/dist/typescript/commonjs/features/endOfAssignment/components/ExamSubmit/ExamSubmit.d.ts.map +1 -1
  212. package/dist/typescript/commonjs/features/endOfAssignment/components/Modal/Modal.d.ts.map +1 -1
  213. package/dist/typescript/commonjs/features/endOfAssignment/components/NoAnswer/NoAnswer.d.ts.map +1 -1
  214. package/dist/typescript/commonjs/features/endOfAssignment/ui/PracticeButton.d.ts.map +1 -1
  215. package/dist/typescript/commonjs/features/endOfAssignment/ui/PracticeButtonGroup.d.ts.map +1 -1
  216. package/dist/typescript/commonjs/features/exampleSolution/components/QuestionSection.d.ts.map +1 -1
  217. package/dist/typescript/commonjs/features/exampleSolution/components/SolutionSection.d.ts.map +1 -1
  218. package/dist/typescript/commonjs/features/feedback/components/EmptyComment.d.ts.map +1 -1
  219. package/dist/typescript/commonjs/features/feedback/components/ListCardCommentsCount.d.ts.map +1 -1
  220. package/dist/typescript/commonjs/features/feedback/components/TeacherFeedbackComments/TeacherComment.d.ts.map +1 -1
  221. package/dist/typescript/commonjs/features/feedback/components/TeacherFeedbackComments/TeacherFeedbackComments.d.ts.map +1 -1
  222. package/dist/typescript/commonjs/features/keyboard/components/AlgebraLayout/AlgebraLayout.d.ts.map +1 -1
  223. package/dist/typescript/commonjs/features/keyboard/components/BasicLayout/BasicLayout.d.ts.map +1 -1
  224. package/dist/typescript/commonjs/features/keyboard/components/BasicLayout/CurrencyBasicLayout.d.ts.map +1 -1
  225. package/dist/typescript/commonjs/features/keyboard/components/BasicLayout/TimeBasicLayout.d.ts.map +1 -1
  226. package/dist/typescript/commonjs/features/keyboard/components/BasicPlusLayout/BasicPlusLayout.d.ts.map +1 -1
  227. package/dist/typescript/commonjs/features/keyboard/components/BasicPlusPlusLayout/BasicPlusPlusLayout.d.ts.map +1 -1
  228. package/dist/typescript/commonjs/features/keyboard/components/Keyboard.d.ts.map +1 -1
  229. package/dist/typescript/commonjs/features/keyboard/components/MainLayout/MainLayout.d.ts.map +1 -1
  230. package/dist/typescript/commonjs/features/keyboard/components/Numpad/Numpad.d.ts.map +1 -1
  231. package/dist/typescript/commonjs/features/keyboard/components/UnderlinedLayout/UnderlinedLayout.d.ts.map +1 -1
  232. package/dist/typescript/commonjs/features/keyboard/components/UnitsLayout/UnitsLayout.d.ts.map +1 -1
  233. package/dist/typescript/commonjs/features/voice/recording/components/VoiceRecordButton.d.ts.map +1 -1
  234. package/dist/typescript/commonjs/features/voice/recording/components/VoiceRecordDeleteButton.d.ts.map +1 -1
  235. package/dist/typescript/commonjs/features/voice/recording/components/VoiceRecordTimer.d.ts.map +1 -1
  236. package/dist/typescript/commonjs/features/voice/recording/modal/ModalFooterButtons.d.ts +3 -1
  237. package/dist/typescript/commonjs/features/voice/recording/modal/ModalFooterButtons.d.ts.map +1 -1
  238. package/dist/typescript/commonjs/features/voice/recording/modal/VoiceRecordDeleteModal.d.ts.map +1 -1
  239. package/dist/typescript/commonjs/features/voice/recording/modal/VoiceRecordUndoModal.d.ts.map +1 -1
  240. package/dist/typescript/commonjs/shared/components/PlayButton.d.ts +1 -0
  241. package/dist/typescript/commonjs/shared/components/PlayButton.d.ts.map +1 -1
  242. package/dist/typescript/module/config/dataTestIDs.d.ts +52 -7
  243. package/dist/typescript/module/config/dataTestIDs.d.ts.map +1 -1
  244. package/dist/typescript/module/features/chatbot/components/Chat/ChatIcon.d.ts.map +1 -1
  245. package/dist/typescript/module/features/chatbot/components/Chat/CloseButton.d.ts.map +1 -1
  246. package/dist/typescript/module/features/chatbot/components/ChatInput/FreeText/ChatTextInput.d.ts.map +1 -1
  247. package/dist/typescript/module/features/chatbot/components/ChatInput/FreeText/FreeTextInputBlock.d.ts.map +1 -1
  248. package/dist/typescript/module/features/chatbot/components/ChatInput/FreeText/SendMessageButton.d.ts.map +1 -1
  249. package/dist/typescript/module/features/chatbot/components/ChatMessage/MessageLoader.d.ts.map +1 -1
  250. package/dist/typescript/module/features/chatbot/components/ChatMessage/MessageTextToSpeech.d.ts.map +1 -1
  251. package/dist/typescript/module/features/chatbot/components/ChatMessage/ReceivedMessage.d.ts.map +1 -1
  252. package/dist/typescript/module/features/chatbot/components/ChatMessage/SentMessage.d.ts.map +1 -1
  253. package/dist/typescript/module/features/chatbot/errorSpotting/ErrorSpottingButton.d.ts.map +1 -1
  254. package/dist/typescript/module/features/endOfAssignment/components/CheatDetected/CheatDetected.d.ts.map +1 -1
  255. package/dist/typescript/module/features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.d.ts.map +1 -1
  256. package/dist/typescript/module/features/endOfAssignment/components/ExamLeave/ExamLeave.d.ts.map +1 -1
  257. package/dist/typescript/module/features/endOfAssignment/components/ExamPaused/ExamPaused.d.ts.map +1 -1
  258. package/dist/typescript/module/features/endOfAssignment/components/ExamSubmit/ExamSubmit.d.ts.map +1 -1
  259. package/dist/typescript/module/features/endOfAssignment/components/Modal/Modal.d.ts.map +1 -1
  260. package/dist/typescript/module/features/endOfAssignment/components/NoAnswer/NoAnswer.d.ts.map +1 -1
  261. package/dist/typescript/module/features/endOfAssignment/ui/PracticeButton.d.ts.map +1 -1
  262. package/dist/typescript/module/features/endOfAssignment/ui/PracticeButtonGroup.d.ts.map +1 -1
  263. package/dist/typescript/module/features/exampleSolution/components/QuestionSection.d.ts.map +1 -1
  264. package/dist/typescript/module/features/exampleSolution/components/SolutionSection.d.ts.map +1 -1
  265. package/dist/typescript/module/features/feedback/components/EmptyComment.d.ts.map +1 -1
  266. package/dist/typescript/module/features/feedback/components/ListCardCommentsCount.d.ts.map +1 -1
  267. package/dist/typescript/module/features/feedback/components/TeacherFeedbackComments/TeacherComment.d.ts.map +1 -1
  268. package/dist/typescript/module/features/feedback/components/TeacherFeedbackComments/TeacherFeedbackComments.d.ts.map +1 -1
  269. package/dist/typescript/module/features/keyboard/components/AlgebraLayout/AlgebraLayout.d.ts.map +1 -1
  270. package/dist/typescript/module/features/keyboard/components/BasicLayout/BasicLayout.d.ts.map +1 -1
  271. package/dist/typescript/module/features/keyboard/components/BasicLayout/CurrencyBasicLayout.d.ts.map +1 -1
  272. package/dist/typescript/module/features/keyboard/components/BasicLayout/TimeBasicLayout.d.ts.map +1 -1
  273. package/dist/typescript/module/features/keyboard/components/BasicPlusLayout/BasicPlusLayout.d.ts.map +1 -1
  274. package/dist/typescript/module/features/keyboard/components/BasicPlusPlusLayout/BasicPlusPlusLayout.d.ts.map +1 -1
  275. package/dist/typescript/module/features/keyboard/components/Keyboard.d.ts.map +1 -1
  276. package/dist/typescript/module/features/keyboard/components/MainLayout/MainLayout.d.ts.map +1 -1
  277. package/dist/typescript/module/features/keyboard/components/Numpad/Numpad.d.ts.map +1 -1
  278. package/dist/typescript/module/features/keyboard/components/UnderlinedLayout/UnderlinedLayout.d.ts.map +1 -1
  279. package/dist/typescript/module/features/keyboard/components/UnitsLayout/UnitsLayout.d.ts.map +1 -1
  280. package/dist/typescript/module/features/voice/recording/components/VoiceRecordButton.d.ts.map +1 -1
  281. package/dist/typescript/module/features/voice/recording/components/VoiceRecordDeleteButton.d.ts.map +1 -1
  282. package/dist/typescript/module/features/voice/recording/components/VoiceRecordTimer.d.ts.map +1 -1
  283. package/dist/typescript/module/features/voice/recording/modal/ModalFooterButtons.d.ts +3 -1
  284. package/dist/typescript/module/features/voice/recording/modal/ModalFooterButtons.d.ts.map +1 -1
  285. package/dist/typescript/module/features/voice/recording/modal/VoiceRecordDeleteModal.d.ts.map +1 -1
  286. package/dist/typescript/module/features/voice/recording/modal/VoiceRecordUndoModal.d.ts.map +1 -1
  287. package/dist/typescript/module/shared/components/PlayButton.d.ts +1 -0
  288. package/dist/typescript/module/shared/components/PlayButton.d.ts.map +1 -1
  289. package/package.json +1 -1
  290. package/src/config/dataTestIDs.ts +57 -7
  291. package/src/features/chatbot/components/Chat/Chat.tsx +1 -1
  292. package/src/features/chatbot/components/Chat/ChatIcon.tsx +2 -1
  293. package/src/features/chatbot/components/Chat/CloseButton.tsx +2 -0
  294. package/src/features/chatbot/components/ChatControls/ChatControls.tsx +1 -1
  295. package/src/features/chatbot/components/ChatInput/FreeText/ChatTextInput.tsx +2 -0
  296. package/src/features/chatbot/components/ChatInput/FreeText/FreeTextInputBlock.tsx +2 -1
  297. package/src/features/chatbot/components/ChatInput/FreeText/SendMessageButton.tsx +2 -0
  298. package/src/features/chatbot/components/ChatInput/RequestHintButton.tsx +1 -1
  299. package/src/features/chatbot/components/ChatMessage/MessageLoader.tsx +3 -2
  300. package/src/features/chatbot/components/ChatMessage/MessageTextToSpeech.tsx +2 -0
  301. package/src/features/chatbot/components/ChatMessage/ReceivedMessage.tsx +2 -1
  302. package/src/features/chatbot/components/ChatMessage/SentMessage.tsx +2 -0
  303. package/src/features/chatbot/errorSpotting/ErrorSpottingButton.tsx +2 -0
  304. package/src/features/endOfAssignment/components/CheatDetected/CheatDetected.tsx +3 -1
  305. package/src/features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.tsx +2 -0
  306. package/src/features/endOfAssignment/components/ExamLeave/ExamLeave.tsx +3 -1
  307. package/src/features/endOfAssignment/components/ExamPaused/ExamPaused.tsx +3 -1
  308. package/src/features/endOfAssignment/components/ExamSubmit/ExamSubmit.tsx +3 -1
  309. package/src/features/endOfAssignment/components/Modal/Modal.tsx +6 -1
  310. package/src/features/endOfAssignment/components/NoAnswer/NoAnswer.tsx +6 -1
  311. package/src/features/endOfAssignment/ui/PracticeButton.tsx +2 -0
  312. package/src/features/endOfAssignment/ui/PracticeButtonGroup.tsx +2 -0
  313. package/src/features/exampleSolution/components/QuestionSection.tsx +2 -1
  314. package/src/features/exampleSolution/components/SolutionSection.tsx +5 -1
  315. package/src/features/feedback/components/EmptyComment.tsx +2 -1
  316. package/src/features/feedback/components/ListCardCommentsCount.tsx +2 -1
  317. package/src/features/feedback/components/TeacherFeedbackButton.tsx +2 -2
  318. package/src/features/feedback/components/TeacherFeedbackComments/TeacherComment.tsx +2 -1
  319. package/src/features/feedback/components/TeacherFeedbackComments/TeacherFeedbackComments.tsx +1 -5
  320. package/src/features/feedback/components/UnreadMessagesBadge.tsx +1 -1
  321. package/src/features/keyboard/components/AlgebraLayout/AlgebraLayout.tsx +2 -1
  322. package/src/features/keyboard/components/BasicLayout/BasicLayout.tsx +2 -1
  323. package/src/features/keyboard/components/BasicLayout/CurrencyBasicLayout.tsx +5 -1
  324. package/src/features/keyboard/components/BasicLayout/TimeBasicLayout.tsx +16 -13
  325. package/src/features/keyboard/components/BasicPlusLayout/BasicPlusLayout.tsx +2 -1
  326. package/src/features/keyboard/components/BasicPlusPlusLayout/BasicPlusPlusLayout.tsx +2 -1
  327. package/src/features/keyboard/components/Keyboard.tsx +2 -0
  328. package/src/features/keyboard/components/MainLayout/MainLayout.tsx +5 -1
  329. package/src/features/keyboard/components/Numpad/Numpad.tsx +2 -1
  330. package/src/features/keyboard/components/UnderlinedLayout/UnderlinedLayout.tsx +9 -1
  331. package/src/features/keyboard/components/UnitsLayout/UnitsLayout.tsx +2 -1
  332. package/src/features/voice/recording/components/VoiceRecordButton.tsx +2 -0
  333. package/src/features/voice/recording/components/VoiceRecordDeleteButton.tsx +2 -1
  334. package/src/features/voice/recording/components/VoiceRecordTimer.tsx +2 -1
  335. package/src/features/voice/recording/modal/ModalFooterButtons.tsx +6 -0
  336. package/src/features/voice/recording/modal/VoiceRecordDeleteModal.tsx +4 -0
  337. package/src/features/voice/recording/modal/VoiceRecordUndoModal.tsx +4 -0
  338. package/src/shared/components/PlayButton.tsx +1 -0
@@ -23,6 +23,7 @@ import {
23
23
 
24
24
  import { ModalModel } from './model'
25
25
  import { ModalBackground } from './ModalBackground'
26
+ import { TEST_IDS } from '../../../../config/dataTestIDs'
26
27
 
27
28
  const stopPropagation = {
28
29
  onTouchStart: (event: GestureResponderEvent) => {
@@ -71,7 +72,10 @@ export const Modal = ({
71
72
  if (!isVisible) return null
72
73
  return (
73
74
  <TouchableWithoutFeedback onPress={() => isDismissable && onClose?.()}>
74
- <Animated.View style={[styles.overlay, style?.overlay, modalModel.animatedStyle]}>
75
+ <Animated.View
76
+ style={[styles.overlay, style?.overlay, modalModel.animatedStyle]}
77
+ testID={TEST_IDS.EOA_MODAL}
78
+ >
75
79
  <TouchableWithoutFeedback {...stopPropagation}>
76
80
  <View style={[styles.container, style?.container]}>
77
81
  {withBackground && <View style={styles.backgroundWrapper}>{<ModalBackground />}</View>}
@@ -81,6 +85,7 @@ export const Modal = ({
81
85
  variant={ButtonVariant.TERTIARY}
82
86
  icon={<CrossIcon size={18} color={COLORS.NEUTRAL_7} />}
83
87
  onPress={onClose}
88
+ testID={TEST_IDS.EOA_MODAL_CLOSE_BUTTON}
84
89
  />
85
90
  </View>
86
91
  )}
@@ -18,6 +18,7 @@ import { useKeyBoard } from '../../../../shared/hooks/useKeyboard'
18
18
  import { KeyboardKeys } from '../../../../lib/constants'
19
19
  import { getEoaButtonColor } from '../../helpers'
20
20
  import { AssessmentScoreCard } from '../AssessmentScoreCard/AssessmentScoreCard'
21
+ import { TEST_IDS } from '../../../../config/dataTestIDs'
21
22
 
22
23
  export const NoAnswer = ({ model, textContent, onPracticePress }: EOAModalContentProps) => {
23
24
  const popUpData = useUnit(model.$popUpData)
@@ -30,6 +31,7 @@ export const NoAnswer = ({ model, textContent, onPracticePress }: EOAModalConten
30
31
  text: textContent.leftButtonText ?? '',
31
32
  colorScheme: getEoaButtonColor(popUpData),
32
33
  onPress: () => model.hidePopUpAndLeave(),
34
+ testID: TEST_IDS.EOA_LEAVE_BUTTON as string | undefined,
33
35
  },
34
36
  ]
35
37
 
@@ -41,6 +43,7 @@ export const NoAnswer = ({ model, textContent, onPracticePress }: EOAModalConten
41
43
  model.goToFirstProblemPressed()
42
44
  model.hidePopUp()
43
45
  },
46
+ testID: TEST_IDS.EOA_GO_TO_PROBLEM_ONE_BUTTON,
44
47
  })
45
48
  return buttons
46
49
  }
@@ -55,6 +58,7 @@ export const NoAnswer = ({ model, textContent, onPracticePress }: EOAModalConten
55
58
  onPracticePress?.()
56
59
  model.hidePopUp()
57
60
  },
61
+ testID: TEST_IDS.EOA_PRACTICE_BUTTON,
58
62
  })
59
63
  }
60
64
 
@@ -73,7 +77,7 @@ export const NoAnswer = ({ model, textContent, onPracticePress }: EOAModalConten
73
77
  })
74
78
 
75
79
  return (
76
- <View style={styles.container}>
80
+ <View style={styles.container} testID={TEST_IDS.EOA_WITH_NO_CORRECT_ANSWER}>
77
81
  <View style={styles.textContainer}>
78
82
  {!!textContent.title && (
79
83
  <Typography variant="h2" style={styles.title}>
@@ -108,6 +112,7 @@ export const NoAnswer = ({ model, textContent, onPracticePress }: EOAModalConten
108
112
  colorScheme={button.colorScheme}
109
113
  style={{ text: { textTransform: 'uppercase' } }}
110
114
  onPress={button.onPress}
115
+ testID={button.testID}
111
116
  >
112
117
  {button.text}
113
118
  </Button>
@@ -1,6 +1,7 @@
1
1
  import React from 'react'
2
2
 
3
3
  import { Button, ButtonColor } from '@magmamath/react-native-ui'
4
+ import { TEST_IDS } from '../../../config/dataTestIDs'
4
5
 
5
6
  type PracticeButtonProps = {
6
7
  onPress: () => void
@@ -20,6 +21,7 @@ export const PracticeButton = ({
20
21
  size="large"
21
22
  style={{ text: { textTransform: 'uppercase' } }}
22
23
  onPress={onPress}
24
+ testID={TEST_IDS.EOA_PRACTICE_BUTTON}
23
25
  >
24
26
  {text}
25
27
  </Button>
@@ -11,6 +11,7 @@ import Animated, {
11
11
  import { ButtonVariant, SPACING, Button, ButtonSize, ButtonColor } from '@magmamath/react-native-ui'
12
12
 
13
13
  import { PracticeButton } from './PracticeButton'
14
+ import { TEST_IDS } from '../../../config/dataTestIDs'
14
15
 
15
16
  type PracticeButtonGroupProps = {
16
17
  textContent: { leftButtonText?: string; rightButtonText?: string }
@@ -50,6 +51,7 @@ export const PracticeButtonGroup = ({
50
51
  colorScheme={buttonColor}
51
52
  style={{ text: { textTransform: 'uppercase' } }}
52
53
  onPress={onLeftButtonPress}
54
+ testID={TEST_IDS.EOA_LEAVE_BUTTON}
53
55
  >
54
56
  {textContent.leftButtonText}
55
57
  </Button>
@@ -3,6 +3,7 @@ import React from 'react'
3
3
  import { COLORS, Loader, LoaderColor, SPACING } from '@magmamath/react-native-ui'
4
4
  import Animated, { FadeOut } from 'react-native-reanimated'
5
5
  import { ExampleSolutionStatuses } from '../constants'
6
+ import { TEST_IDS } from '../../../config/dataTestIDs'
6
7
 
7
8
  type QuestionSectionProps = {
8
9
  question?: string
@@ -16,7 +17,7 @@ export const QuestionSection = ({
16
17
  renderKatexComponent,
17
18
  }: QuestionSectionProps) => {
18
19
  return (
19
- <View style={styles.container}>
20
+ <View style={styles.container} testID={TEST_IDS.EXAMPLE_SOLUTION_QUESTION_SECTION}>
20
21
  {question && <View style={styles.katexContainer}>{renderKatexComponent(question)}</View>}
21
22
  {status === ExampleSolutionStatuses.LOADING && (
22
23
  <Animated.View exiting={FadeOut} style={styles.loaderContainer}>
@@ -11,6 +11,7 @@ import { COLORS, IS_WEB, SPACING } from '@magmamath/react-native-ui'
11
11
  import Animated, { FadeIn } from 'react-native-reanimated'
12
12
  import { ExampleSolutionStatuses } from '../constants'
13
13
  import gridImage from '../assets/grid.webp'
14
+ import { TEST_IDS } from '../../../config/dataTestIDs'
14
15
 
15
16
  type SolutionSectionProps = {
16
17
  answer?: string
@@ -34,7 +35,10 @@ export const SolutionSection = ({ answer, status }: SolutionSectionProps) => {
34
35
  (status === ExampleSolutionStatuses.DONE_DATA || status === ExampleSolutionStatuses.CACHE)
35
36
 
36
37
  return (
37
- <View style={[styles.container, IS_WEB && { maxHeight: height - CONTAINER_HEIGHT_OFFSET }]}>
38
+ <View
39
+ style={[styles.container, IS_WEB && { maxHeight: height - CONTAINER_HEIGHT_OFFSET }]}
40
+ testID={TEST_IDS.EXAMPLE_SOLUTION_SOLUTION_SECTION}
41
+ >
38
42
  <ScrollView
39
43
  style={styles.solutionScroll}
40
44
  contentContainerStyle={styles.solutionScrollContent}
@@ -3,11 +3,12 @@ import { StyleSheet, Text, View } from 'react-native'
3
3
  import { COLORS } from '@magmamath/react-native-ui'
4
4
  import { BUENOS_AIRES_FONT } from '../constants'
5
5
  import { useText } from '../../../shared/translation'
6
+ import { TEST_IDS } from '../../../config/dataTestIDs'
6
7
 
7
8
  export const EmptyComment = () => {
8
9
  const t = useText()
9
10
  return (
10
- <View style={styles.container}>
11
+ <View style={styles.container} testID={TEST_IDS.NO_COMMENTS_PLACEHOLDER}>
11
12
  <Text style={styles.text}>{t('teacherFeedback.noComments')}</Text>
12
13
  </View>
13
14
  )
@@ -3,6 +3,7 @@ import { Text, View, StyleSheet } from 'react-native'
3
3
  import { MessageBubbleIcon } from '../../../shared/icons/MessageBubbleIcon'
4
4
  import { COLORS } from '@magmamath/react-native-ui'
5
5
  import { BUENOS_AIRES_FONT } from '../constants'
6
+ import { TEST_IDS } from '../../../config/dataTestIDs'
6
7
 
7
8
  type ListCardCommentsCountProps = {
8
9
  count: number
@@ -10,7 +11,7 @@ type ListCardCommentsCountProps = {
10
11
 
11
12
  export const ListCardCommentsCount = ({ count }: ListCardCommentsCountProps) => {
12
13
  return (
13
- <View style={styles.container}>
14
+ <View style={styles.container} testID={TEST_IDS.EXERCISE_CARD_COMMENTS_COUNT}>
14
15
  <MessageBubbleIcon size={23} color={COLORS.NEUTRAL_7} />
15
16
  <Text style={styles.text}>{count}</Text>
16
17
  </View>
@@ -37,7 +37,7 @@ export const TeacherFeedbackButton = ({
37
37
  return (
38
38
  <Button
39
39
  id={TEACHER_FEEDBACK_BUTTON_ID}
40
- testID={TEST_IDS.TEACHER_FEEDBACK_BUTTON}
40
+ testID={TEST_IDS.TEACHER_COMMENTS_BUTTON}
41
41
  onPress={onPress}
42
42
  size="large"
43
43
  variant="primary"
@@ -56,7 +56,7 @@ export const TeacherFeedbackButton = ({
56
56
  return (
57
57
  <Button
58
58
  id={TEACHER_FEEDBACK_BUTTON_ID}
59
- testID={TEST_IDS.TEACHER_FEEDBACK_BUTTON}
59
+ testID={TEST_IDS.TEACHER_COMMENTS_BUTTON}
60
60
  onPress={onPress}
61
61
  size="large"
62
62
  variant="primary"
@@ -4,6 +4,7 @@ import { COLORS } from '@magmamath/react-native-ui'
4
4
  import { BUENOS_AIRES_FONT } from '../../constants'
5
5
  import { getRelativeTimeText } from '../../../../lib/helpers/helpers'
6
6
  import { TeacherComment as TeacherCommentEntity } from '../../types'
7
+ import { TEST_IDS } from '../../../../config/dataTestIDs'
7
8
 
8
9
  type TeacherCommentProps = {
9
10
  comment: TeacherCommentEntity
@@ -12,7 +13,7 @@ type TeacherCommentProps = {
12
13
 
13
14
  export const TeacherComment = ({ comment, style }: TeacherCommentProps) => {
14
15
  return (
15
- <View style={style}>
16
+ <View style={style} testID={TEST_IDS.TEACHER_COMMENT}>
16
17
  <View style={styles.authorInfo}>
17
18
  <Text style={styles.teacherName} numberOfLines={1}>
18
19
  {comment.teacherName}
@@ -4,7 +4,6 @@ import { TeacherComment } from './TeacherComment'
4
4
  import { EmptyComment } from '../EmptyComment'
5
5
  import { EMPTY_COMMENT_ID, FeedbackMode } from '../../constants'
6
6
  import { COLORS } from '@magmamath/react-native-ui'
7
- import { TEST_IDS } from '../../../../config/dataTestIDs'
8
7
  import { TeacherComment as TeacherCommentEntity } from '../../types'
9
8
 
10
9
  const TOOLBAR_HEIGHT = 140
@@ -32,10 +31,7 @@ export const TeacherFeedbackComments = ({
32
31
  }, [])
33
32
 
34
33
  return (
35
- <View
36
- testID={TEST_IDS.TEACHER_FEEDBACK_COMMENTS}
37
- style={[styles.container, { maxHeight: MAX_HEIGHT - maxHeightOffset }]}
38
- >
34
+ <View style={[styles.container, { maxHeight: MAX_HEIGHT - maxHeightOffset }]}>
39
35
  <ScrollView
40
36
  ref={ref}
41
37
  contentContainerStyle={styles.commentsList}
@@ -18,7 +18,7 @@ export const UnreadMessagesBadge = ({
18
18
  }: UnreadMessagesBadgeProps) => {
19
19
  return (
20
20
  <View
21
- testID={TEST_IDS.UNREAD_MESSAGES_BADGE}
21
+ testID={TEST_IDS.UNREAD_COMMENTS_BADGE}
22
22
  style={[
23
23
  styles.container,
24
24
  style,
@@ -7,6 +7,7 @@ import { SelectedLayout } from './types'
7
7
  import { getMainKeyboardGroup } from '../../helpers'
8
8
  import { getSelectOptions } from './helpers'
9
9
  import { KEYBOARD_LAYOUTS } from '../../constants/keyboardLayouts'
10
+ import { TEST_IDS } from '../../../../config/dataTestIDs'
10
11
 
11
12
  export const AlgebraLayout = ({ onLayoutChange, keys, ...props }: KeyboardLayoutProps) => {
12
13
  const [selectedLayout, setSelectedLayout] = useState<SelectedLayout>(SelectedLayout.BASIC)
@@ -31,7 +32,7 @@ export const AlgebraLayout = ({ onLayoutChange, keys, ...props }: KeyboardLayout
31
32
  const currentKeys = keyboardGroups.get(selectedLayout)?.keys ?? []
32
33
 
33
34
  return (
34
- <View style={styles.container}>
35
+ <View style={styles.container} testID={TEST_IDS.KEYBOARD_ALGEBRA_LAYOUT}>
35
36
  {isDesktop && (
36
37
  <SelectGroup
37
38
  numOfRows={2}
@@ -5,6 +5,7 @@ import { KeyboardLayoutProps, KeyboardType } from '../../types/types'
5
5
  import { IS_MOBILE } from '@magmamath/react-native-ui'
6
6
  import { KEYBOARD_LAYOUTS } from '../../constants/keyboardLayouts'
7
7
  import { getMainKeyboardGroup } from '../../helpers'
8
+ import { TEST_IDS } from '../../../../config/dataTestIDs'
8
9
 
9
10
  export const BasicLayout = ({ keys, ...props }: KeyboardLayoutProps & PropsWithChildren) => {
10
11
  const keysByLocale = getMainKeyboardGroup(keys, KeyboardType.Basic)
@@ -18,7 +19,7 @@ export const BasicLayout = ({ keys, ...props }: KeyboardLayoutProps & PropsWithC
18
19
  }
19
20
 
20
21
  return (
21
- <View style={styles.container}>
22
+ <View style={styles.container} testID={TEST_IDS.KEYBOARD_BASIC_LAYOUT}>
22
23
  <KeysList keys={keysToShow} numOfRows={2} {...props} />
23
24
  {props.children || null}
24
25
  </View>
@@ -1,15 +1,19 @@
1
1
  import React from 'react'
2
+ import { View } from 'react-native'
2
3
  import { KeysList } from '../KeysList/KeysList'
3
4
  import { BasicLayout } from './BasicLayout'
4
5
  import { KeyboardLayoutProps, KeyboardType } from '../../types/types'
5
6
  import { getMainKeyboardGroup } from '../../helpers'
7
+ import { TEST_IDS } from '../../../../config/dataTestIDs'
6
8
 
7
9
  export const CurrencyBasicLayout = ({ keys, ...props }: KeyboardLayoutProps) => {
8
10
  const keysGroup = getMainKeyboardGroup(keys, KeyboardType.BasicCurrency)
9
11
 
10
12
  return (
11
13
  <BasicLayout keys={keys} {...props}>
12
- <KeysList keys={keysGroup.keys} numOfRows={keysGroup.keys.length} {...props} />
14
+ <View testID={TEST_IDS.KEYBOARD_CURRENCY_KEYS}>
15
+ <KeysList keys={keysGroup.keys} numOfRows={keysGroup.keys.length} {...props} />
16
+ </View>
13
17
  </BasicLayout>
14
18
  )
15
19
  }
@@ -1,28 +1,31 @@
1
1
  import React from 'react'
2
2
  import { KeysList } from '../KeysList/KeysList'
3
- import { StyleSheet } from 'react-native'
3
+ import { StyleSheet, View } from 'react-native'
4
4
  import { BasicLayout } from './BasicLayout'
5
5
  import { KeyboardLayoutProps, KeyboardType } from '../../types/types'
6
6
  import { getMainKeyboardGroup } from '../../helpers'
7
7
  import { IS_MOBILE } from '@magmamath/react-native-ui'
8
+ import { TEST_IDS } from '../../../../config/dataTestIDs'
8
9
 
9
10
  export const TimeBasicLayout = ({ keys, ...props }: KeyboardLayoutProps) => {
10
11
  const keysGroup = getMainKeyboardGroup(keys, KeyboardType.BasicTime)
11
12
 
12
13
  return (
13
14
  <BasicLayout keys={keys} {...props}>
14
- <KeysList
15
- keys={keysGroup.keys}
16
- numOfRows={keysGroup.numOfRows || keysGroup.keys.length}
17
- style={{
18
- option: {
19
- text: styles.text,
20
- button: styles.button,
21
- container: styles.container,
22
- },
23
- }}
24
- {...props}
25
- />
15
+ <View testID={TEST_IDS.KEYBOARD_TIME_KEYS}>
16
+ <KeysList
17
+ keys={keysGroup.keys}
18
+ numOfRows={keysGroup.numOfRows || keysGroup.keys.length}
19
+ style={{
20
+ option: {
21
+ text: styles.text,
22
+ button: styles.button,
23
+ container: styles.container,
24
+ },
25
+ }}
26
+ {...props}
27
+ />
28
+ </View>
26
29
  </BasicLayout>
27
30
  )
28
31
  }
@@ -5,6 +5,7 @@ import { KeyboardLayoutProps, KeyboardType } from '../../types/types'
5
5
  import { getMainKeyboardGroup } from '../../helpers'
6
6
  import { MOBILE_LAYOUT_WIDTH } from '../../constants/keyboard.constants'
7
7
  import { IS_MOBILE } from '@magmamath/react-native-ui'
8
+ import { TEST_IDS } from '../../../../config/dataTestIDs'
8
9
 
9
10
  export const BasicPlusLayout = ({ keys, ...props }: KeyboardLayoutProps) => {
10
11
  const { width } = useWindowDimensions()
@@ -16,7 +17,7 @@ export const BasicPlusLayout = ({ keys, ...props }: KeyboardLayoutProps) => {
16
17
  )
17
18
 
18
19
  return (
19
- <View style={styles.container}>
20
+ <View style={styles.container} testID={TEST_IDS.KEYBOARD_BASIC_PLUS_LAYOUT}>
20
21
  <KeysList keys={keysGroup.keys} numOfRows={3} {...props} />
21
22
  </View>
22
23
  )
@@ -5,6 +5,7 @@ import { KeyboardLayoutProps, KeyboardType } from '../../types/types'
5
5
  import { getMainKeyboardGroup } from '../../helpers'
6
6
  import { IS_MOBILE } from '@magmamath/react-native-ui'
7
7
  import { KEYBOARD_LAYOUTS } from '../../constants/keyboardLayouts'
8
+ import { TEST_IDS } from '../../../../config/dataTestIDs'
8
9
 
9
10
  export const BasicPlusPlusLayout = ({ keys, ...props }: KeyboardLayoutProps) => {
10
11
  const { width } = useWindowDimensions()
@@ -18,7 +19,7 @@ export const BasicPlusPlusLayout = ({ keys, ...props }: KeyboardLayoutProps) =>
18
19
  )
19
20
 
20
21
  return (
21
- <View style={styles.container}>
22
+ <View style={styles.container} testID={TEST_IDS.KEYBOARD_BASIC_PLUS_PLUS_LAYOUT}>
22
23
  <KeysList keys={keysGroup.keys} numOfRows={3} {...props} />
23
24
  </View>
24
25
  )
@@ -12,6 +12,7 @@ import { isMobileWidth } from '../helpers'
12
12
  import { KeyboardConfig } from '@magmamath/frontend-config'
13
13
  import { KeyboardKey, KeyboardKeyValue } from '../types/types'
14
14
  import { resolveKeyboard } from '../constants/keyboard.helpers'
15
+ import { TEST_IDS } from '../../../config/dataTestIDs'
15
16
 
16
17
  type KeyboardProps = {
17
18
  onKeyPress: (key: KeyboardKeyValue) => void
@@ -56,6 +57,7 @@ export const Keyboard = ({
56
57
 
57
58
  return (
58
59
  <Animated.View
60
+ testID={TEST_IDS.KEYBOARD}
59
61
  style={[
60
62
  styles.container,
61
63
  style,
@@ -4,6 +4,7 @@ import { IS_MOBILE, IS_WEB, SelectOptionColor } from '@magmamath/react-native-ui
4
4
  import { getLayoutByCharType, isBasicPlusPlusLayout } from '../../constants/keyboardLayouts'
5
5
  import { UnderlinedLayout } from '../UnderlinedLayout/UnderlinedLayout'
6
6
  import { KeyboardKey, KeyboardKeyValue, ResolvedKeyboard } from '../../types/types'
7
+ import { TEST_IDS } from '../../../../config/dataTestIDs'
7
8
 
8
9
  type LayoutProps = {
9
10
  keys: ResolvedKeyboard
@@ -57,7 +58,10 @@ export const MainLayout = ({
57
58
  }, [showUnderlinedKeys, animateFade])
58
59
 
59
60
  return (
60
- <View style={[styles.container, IS_MOBILE && { flex: 1 }]}>
61
+ <View
62
+ style={[styles.container, IS_MOBILE && { flex: 1 }]}
63
+ testID={TEST_IDS.KEYBOARD_MAIN_LAYOUT}
64
+ >
61
65
  <Layout {...props} onLayoutChange={setIsSecondaryLayoutSelected} />
62
66
  {isUnderlinedLayoutVisible && (
63
67
  <Animated.View style={{ opacity: fadeAnim }}>
@@ -5,6 +5,7 @@ import { SPACING } from '@magmamath/react-native-ui'
5
5
  import { KeyboardLayoutProps, KeyboardType } from '../../types/types'
6
6
  import { useText } from '../../../../shared/translation'
7
7
  import { getMainKeyboardGroup } from '../../helpers'
8
+ import { TEST_IDS } from '../../../../config/dataTestIDs'
8
9
 
9
10
  type NumpadProps = {
10
11
  style?: StyleProp<ViewStyle>
@@ -15,7 +16,7 @@ export const Numpad = ({ style, keys, ...props }: NumpadProps) => {
15
16
  const keyboardGroup = getMainKeyboardGroup(keys, KeyboardType.Numpad)
16
17
 
17
18
  return (
18
- <View style={[styles.container, style]}>
19
+ <View style={[styles.container, style]} testID={TEST_IDS.KEYBOARD_NUMPAD}>
19
20
  <KeysList keys={keyboardGroup.keys} numOfRows={3} {...props} />
20
21
  </View>
21
22
  )
@@ -1,7 +1,9 @@
1
1
  import React from 'react'
2
+ import { View } from 'react-native'
2
3
  import { KeysList } from '../KeysList/KeysList'
3
4
  import { KeyboardLayoutProps, KeyboardType, ResolvedKeyboard } from '../../types/types'
4
5
  import { getMainKeyboardGroup } from '../../helpers'
6
+ import { TEST_IDS } from '../../../../config/dataTestIDs'
5
7
 
6
8
  type UnderlinedLayoutProps = {
7
9
  keys: ResolvedKeyboard
@@ -13,6 +15,12 @@ export const UnderlinedLayout = ({ keys, ...props }: UnderlinedLayoutProps) => {
13
15
  const keysToShow = props.showSlashKey ? keysGroup.keys : keysGroup.keys.slice(0, -1)
14
16
 
15
17
  return (
16
- <KeysList keys={keysToShow} numOfRows={props.showSlashKey ? 2 : keysToShow.length} {...props} />
18
+ <View testID={TEST_IDS.KEYBOARD_UNDERLINED_LAYOUT}>
19
+ <KeysList
20
+ keys={keysToShow}
21
+ numOfRows={props.showSlashKey ? 2 : keysToShow.length}
22
+ {...props}
23
+ />
24
+ </View>
17
25
  )
18
26
  }
@@ -9,6 +9,7 @@ import { useUnitTabs } from './hooks/useUnitTabs'
9
9
  import { getMainKeyboardGroup } from '../../helpers'
10
10
  import { KeyboardUnitsGroupType, SelectedLayout } from './types'
11
11
  import { getSelectOptions } from './helpers'
12
+ import { TEST_IDS } from '../../../../config/dataTestIDs'
12
13
 
13
14
  export const UnitsLayout = ({ onLayoutChange, keys, ...props }: KeyboardLayoutProps) => {
14
15
  const { width } = useWindowDimensions()
@@ -28,7 +29,7 @@ export const UnitsLayout = ({ onLayoutChange, keys, ...props }: KeyboardLayoutPr
28
29
  })
29
30
 
30
31
  return (
31
- <View style={styles.container}>
32
+ <View style={styles.container} testID={TEST_IDS.KEYBOARD_UNITS_LAYOUT}>
32
33
  {isDesktop && (
33
34
  <SelectGroup
34
35
  numOfRows={2}
@@ -13,6 +13,7 @@ import { VoiceRecordModel } from '../model/VoiceRecord.model'
13
13
  import { useUnit } from 'effector-react'
14
14
  import { VoiceRecorderState } from '../../constants'
15
15
  import { useText } from '../../../../shared/translation'
16
+ import { TEST_IDS } from '../../../../config/dataTestIDs'
16
17
 
17
18
  type VoiceRecordButtonProps = {
18
19
  style?: ButtonStyle
@@ -45,6 +46,7 @@ export const VoiceRecordButton = ({ style, model }: VoiceRecordButtonProps) => {
45
46
  pointerEvents={!availableInputs.length || isInitializing ? 'box-only' : 'auto'}
46
47
  >
47
48
  <Button
49
+ testID={TEST_IDS.VOICE_RECORD_BUTTON}
48
50
  disabled={isButtonDisabled || !availableInputs.length}
49
51
  onPressIn={() => model.recorderButtonHandler()}
50
52
  style={combinedStyles}
@@ -1,6 +1,7 @@
1
1
  import { StyleSheet, TouchableOpacity } from 'react-native'
2
2
  import { COLORS, TrashcanIcon } from '@magmamath/react-native-ui'
3
3
  import React from 'react'
4
+ import { TEST_IDS } from '../../../../config/dataTestIDs'
4
5
 
5
6
  type VoiceRecordDeleteProps = {
6
7
  onPress?: () => void
@@ -9,7 +10,7 @@ type VoiceRecordDeleteProps = {
9
10
 
10
11
  export const VoiceRecordDeleteButton = ({ onPress, isDisabled }: VoiceRecordDeleteProps) => {
11
12
  return (
12
- <TouchableOpacity style={styles.container} onPress={onPress} disabled={isDisabled}>
13
+ <TouchableOpacity testID={TEST_IDS.VOICE_RECORD_DELETE_BUTTON} style={styles.container} onPress={onPress} disabled={isDisabled}>
13
14
  <TrashcanIcon size={20} color={isDisabled ? COLORS.NEUTRAL_5 : COLORS.NEUTRAL_9} />
14
15
  </TouchableOpacity>
15
16
  )
@@ -4,6 +4,7 @@ import React from 'react'
4
4
  import { VoiceRecordModel } from '../model/VoiceRecord.model'
5
5
  import { useUnit } from 'effector-react'
6
6
  import { formatDuration } from '../../helpers'
7
+ import { TEST_IDS } from '../../../../config/dataTestIDs'
7
8
 
8
9
  type VoiceRecordTimerProps = {
9
10
  style?: StyleProp<ViewStyle>
@@ -20,7 +21,7 @@ export const VoiceRecordTimer = ({
20
21
  const displayDurationMs = recordingFileDurationMs || savedAudioFileDurationMs
21
22
 
22
23
  return (
23
- <View style={[styles.container, style]}>
24
+ <View testID={TEST_IDS.VOICE_RECORD_TIMER} style={[styles.container, style]}>
24
25
  <Typography variant="h9" style={styles.text}>
25
26
  {displayDurationMs ? formatDuration(displayDurationMs) : '0:00'}
26
27
  </Typography>
@@ -9,6 +9,8 @@ type ModalFooterButtonsProps = {
9
9
  onConfirm: () => void
10
10
  confirmLabel: TranslationKeys
11
11
  confirmColor?: ButtonColor
12
+ cancelTestID?: string
13
+ confirmTestID?: string
12
14
  }
13
15
 
14
16
  export const ModalFooterButtons = ({
@@ -16,12 +18,15 @@ export const ModalFooterButtons = ({
16
18
  onConfirm,
17
19
  confirmLabel,
18
20
  confirmColor = ButtonColor.BLUE,
21
+ cancelTestID,
22
+ confirmTestID,
19
23
  }: ModalFooterButtonsProps) => {
20
24
  const t = useText()
21
25
 
22
26
  return (
23
27
  <View style={styles.container}>
24
28
  <Button
29
+ testID={cancelTestID}
25
30
  style={{ text: styles.buttonLabel }}
26
31
  variant={ButtonVariant.TERTIARY}
27
32
  size={ButtonSize.LARGE}
@@ -30,6 +35,7 @@ export const ModalFooterButtons = ({
30
35
  {t('voice.cancel')}
31
36
  </Button>
32
37
  <Button
38
+ testID={confirmTestID}
33
39
  colorScheme={confirmColor}
34
40
  variant={ButtonVariant.PRIMARY}
35
41
  size={ButtonSize.LARGE}
@@ -6,6 +6,7 @@ import { VoiceRecorderState } from '../../constants'
6
6
  import { useText } from '../../../../shared/translation'
7
7
  import { ModalFooterButtons } from './ModalFooterButtons'
8
8
  import { VoiceRecordModalParams } from '../../types'
9
+ import { TEST_IDS } from '../../../../config/dataTestIDs'
9
10
 
10
11
  type VoiceRecordDeleteModalComponentProps = {
11
12
  modal: {
@@ -57,6 +58,7 @@ export const VoiceRecordDeleteModal = ({
57
58
 
58
59
  return (
59
60
  <BaseModal
61
+ testID={TEST_IDS.VOICE_RECORD_DELETE_MODAL}
60
62
  style={{
61
63
  container: styles.modalContainer,
62
64
  }}
@@ -64,6 +66,8 @@ export const VoiceRecordDeleteModal = ({
64
66
  content={t('voice.youWontBeAbleToRecover')}
65
67
  footer={
66
68
  <ModalFooterButtons
69
+ cancelTestID={TEST_IDS.VOICE_RECORD_DELETE_CANCEL_BUTTON}
70
+ confirmTestID={TEST_IDS.VOICE_RECORD_DELETE_CONFIRM_BUTTON}
67
71
  onCancel={closeModal}
68
72
  onConfirm={handleDelete}
69
73
  confirmLabel="voice.delete"
@@ -4,6 +4,7 @@ import { StyleSheet } from 'react-native'
4
4
  import { useText } from '../../../../shared/translation'
5
5
  import { ModalFooterButtons } from './ModalFooterButtons'
6
6
  import { VoiceRecordModalParams } from '../../types'
7
+ import { TEST_IDS } from '../../../../config/dataTestIDs'
7
8
 
8
9
  type VoiceRecordUndoModalProps = {
9
10
  modal: {
@@ -26,6 +27,7 @@ export const VoiceRecordUndoModal = ({
26
27
 
27
28
  return (
28
29
  <BaseModal
30
+ testID={TEST_IDS.VOICE_RECORD_UNDO_MODAL}
29
31
  style={{
30
32
  container: styles.modalStyle,
31
33
  }}
@@ -33,6 +35,8 @@ export const VoiceRecordUndoModal = ({
33
35
  content={t('voice.thisWillRemoveRecording')}
34
36
  footer={
35
37
  <ModalFooterButtons
38
+ cancelTestID={TEST_IDS.VOICE_RECORD_UNDO_CANCEL_BUTTON}
39
+ confirmTestID={TEST_IDS.VOICE_RECORD_UNDO_CONFIRM_BUTTON}
36
40
  onCancel={closeModal}
37
41
  onConfirm={redoRecording}
38
42
  confirmLabel="voice.redo"
@@ -52,6 +52,7 @@ type MessageTextToSpeechProps = {
52
52
  activityIndicatorColor?: string
53
53
  colorScheme?: ColorScheme
54
54
  onPress?: () => void
55
+ testID?: string
55
56
  }
56
57
 
57
58
  export const PlayButton = ({