Inline previews are rendered correctly for the top 5 most-used providers
Perform these tests for each of the top 5 most-used providers below.
N.B Instagram only works on WP.com sites or self hosted sites with a Jetpack connection.
- YouTube
- WordPress
- Vimeo
Initial steps
- Open the Inserter.
- Add a specific provider from the list above.
Steps
- Add a link to be previewed.
Expected Behavior
- Verify that there are no style issues and the preview is rendered as expected.
Inline previews are rendered accordingly for each alignment option
Initial steps
- Add an Embed block.
- Add a valid embed URL.
Expected Behavior
- Observe that the preview content is centered and covers the entire block.
Steps
- Tap on the align options located in the toolbar.
- Tap on "Align left".
Expected Behavior
- Observe that the preview content is aligned left and only covers part of the block.
Steps
- Tap on the align options located in the toolbar.
- Tap on "Align center".
Expected Behavior
- Observe that the preview content is centered and covers the entire block.
- Tap on the align options located in the toolbar.
- Tap on "Align right".
Expected Behavior
- Observe that the preview content is aligned right and only covers part of the block.
Steps
- Tap on the align options located in the toolbar.
- Tap on "Wide width".
Expected Behavior
- Observe that the block's width is wider than the rest of the content and that the preview content covers the entire block.
NOTE: Some embed content like Tweets won't cover the entire block because it's not designed for that purpose.
Steps
- Tap on the align options located in the toolbar.
- Tap on "Full width".
Expected Behavior
- Observe that the block's width covers the entire editor and that the preview content covers the entire block.