-
Notifications
You must be signed in to change notification settings - Fork 60
OC-1441 PR with a proper solution #114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OC-1441 PR with a proper solution #114
Conversation
…-1441/detach-step-dom-elements-back Conflicts: problem_builder/public/js/mentoring_with_steps.js
| */ | ||
| function showStep(step_wrapper) { | ||
| step_wrapper.$element.insertAfter(step_wrapper.$anchor); | ||
| step_wrapper.$element.show(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Show is still necessary as elements are hidden when initially loaded.
|
@itsjeyd This is the second solution to the issue, it's better (no hacks), but might introduce unwanted regressions. Posted as a separate PR, as I still have some doubts which solution is better overall (see the jira ticket). I will squash the commits before merge :) |
a38e9ae to
bebbe04
Compare
Removed video resizing function, it's not a public JS api and the resizer object is missing as of today. It looks like video should resize itself automatically as we actually add it to the dom before each step
| self.assertEqual(len(step_builder.find_elements_by_css_selector('.sb-step')), 1) | ||
| self.rating_question(None, step_builder, controls, "5 - Extremely good", CORRECT) | ||
| self.assertEqual(len(step_builder.find_elements_by_css_selector('.sb-step')), 1) | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jbzdak Two comments here:
- Could you DRY this out a little by factoring the code that checks how many steps are present into a separate method?
- I think it would be good to add one more check for the review step (at that point, no steps are present).
49d45f2 to
dece75b
Compare
dece75b to
6ac7da3
Compare
problem_builder/public/js/step.js
Outdated
| updateVideo(child); | ||
| break; | ||
| case 'sb-plot': | ||
| if (type=='sb-plot'){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jbzdak Please use === and insert spaces around it.
|
Closing this one, will follow up with a proper solution shortly. |
Testing instructions on #112.