-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
fix: remove CaptionsSettingsMenuItem when TextTrackSetting is not inc… #5002
Conversation
Thanks for the PR @vsoren! Looks like you found some out of date tests-- if you take a look at the source code and then the tests that fail, you'll notice that |
In fact, specifically for the first test that fails , it doesn't seem like text-track-settings.test.js is right place for it. It should probably be removed and rewritten for the CaptionsSettingsMenuItem. For this PR, I would be ok with removing that first test. |
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.
Thanks for the PR!
This looks good to me. Once another core contributor approves, we'll include it in an upcoming release.
So, after looking at this, I think we want to change the way the tests are. The tests look for the caption settings menu item and then "click" it to open the modal dialog. With this fix, we don't have a default caption settings menu item unless there are captions that are emulated. I'll make a PR for the test fixes. |
fixup tests
@gkatsev The PR on my branch has been merged. :) |
@vsoren thanks! |
Description
Removes the CaptionsSettingsMenuItem when TextTrackSettings is not included.
Fixes #4996
Requirements Checklist