oppia: [BUG]: Unexpected error on Exploration Editor page RTE component modal when start time is greater than end time
Describe the bug
When creating an exploration on the Creator Dashboard page, if a video is added from RTE with a start time greater than the end time, the site reloads and displays an unexpected error of nonStrictValidationFailure
Error Trace:
nonStrictValidationError: [{"cmd":"edit_state_property","new_value":{"html":"<oppia-noninteractive-video _nghost-mdr-c48=\"\" autoplay-with-value=\"true\" end-with-value=\"10\" ng-version=\"11.2.14\" start-with-value=\"12\" video_id-with-value=\"&quot;adJFT6_j9Uk&quot;\"></oppia-noninteractive-video>","content_id":"content_0"},"old_value":{"html":"","content_id":"content_0"},"property_name":"content","state_name":"Introduction"}]
Steps To Reproduce
- Setup the development server
- Go to the Creator Dashboard page http://localhost:8181/creator-dashboard
- Add an exploration with a video
- Make sure to have a start time greater than the end time and click on Done.
- Click on Save Content
- This should trigger the error
Expected Behavior
When the user inputs a start time that is longer than the end time, as is done when the user adds a start or end time that is negative, the user shouldn’t be allowed to select “Done.”
Screenshots/Videos
https://github.com/oppia/oppia/assets/76906722/96a12926-fb81-406e-b15c-67f4fb8b1919
What device are you using?
Desktop
Operating System
Windows
What browsers are you seeing the problem on?
Edge
Browser version
No response
Additional context
Similar Issue: https://github.com/oppia/oppia/issues/18204
About this issue
- Original URL
- State: open
- Created a year ago
- Comments: 33 (15 by maintainers)
Commits related to this issue
- fix #18211: Unexpected error on Exploration Editor page RTE component modal when start time is greater than end time — committed to joanapeixinho/oppia by joanapeixinho 3 months ago
- fix #18211: Unexpected error on Exploration Editor page RTE component modal when start time is greater than end time — committed to joanapeixinho/oppia by joanapeixinho 3 months ago
- fix oppia#18211: Unexpected error on Exploration Editor page RTE — committed to joanapeixinho/oppia by joanapeixinho 3 months ago
- fix oppia#18211: Unexpected error on Exploration Editor page RTE — committed to joanapeixinho/oppia by joanapeixinho 3 months ago
@seanlip I just have to resolve a problem I’m having with the frontend tests that I think is due to my virtual enviroment. It’s actually taking some more time than I anticipated since I also have uni classes but hopefully by tomorrow I can have everything solved and do the PR.
@AFZL210 yes I have a PR open for it waiting to be accepted