Skip to content
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: Pass UI config to default UI #16

Merged
merged 4 commits into from
Oct 1, 2024
Merged

Conversation

felix-hoc
Copy link
Contributor

Problem

The UI config defined in playerConfig.ui is not forwarded to the default UI, i.e. when no customUi property is defined on the BitmovinPlayer component.

Changes

  • Pass UI config to default UI builder
  • Fix config import

@felix-hoc felix-hoc requested a review from karpov-kir October 1, 2024 07:36
@felix-hoc felix-hoc requested a review from karpov-kir October 1, 2024 09:20
expect(getBySelector('.bmpui-label-metadata-title')).toHaveTextContent('Sintel');

expect(getBySelector('.bmpui-label-metadata-description')).toBeInTheDocument();
expect(getBySelector('.bmpui-label-metadata-description')).toHaveTextContent(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All these expectations could be moved to a helper function to improve readability e.g. at the bottom of the file. But fine to keep it this way as well.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fair point, but I'd rather keep them as-is to make the test itself more readable (no navigation required) :)

@felix-hoc felix-hoc merged commit 3b05d23 into main Oct 1, 2024
4 checks passed
@felix-hoc felix-hoc deleted the feature/untracked/fix-ui-config branch October 1, 2024 09:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants