-
Notifications
You must be signed in to change notification settings - Fork 225
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
WSTEAM1-733 Display audio on the Live Page #12031
base: latest
Are you sure you want to change the base?
Conversation
expect( | ||
container.querySelector('[data-e2e="media-loader__placeholder"]'), | ||
).toBeInTheDocument(); |
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.
Maybe we need to be more explicit in this test to check the audio SVG is in the page?
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.
This now checks for "data-e2e="media-loader" as theres no longer a placeholder for audio - theres no audio SVG to check for anymore either, is specific enough do you think ?
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.
Yeah it's better, I guess it depends what your trying to test here, are you actually testing for Audio, or are you testing that if there's an audio block it just needs to render the media loader
…bc/simorgh into WSTEAM1-733-display-audio-on-live-page
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.
Looks good 👍 Just a sense check on the other audio player page types, but LGTM.
…bc/simorgh into WSTEAM1-733-display-audio-on-live-page
Resolves JIRA WSTEAM1-733
Overall changes
Displays audio within live page posts
Code changes
audio
rendered with theMediaLoader
tocomponentsToRender
withinPost
Testing
Helpful Links
Add Links to useful resources related to this PR if applicable.
Coding Standards
Repository use guidelines