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

Test transform from media to embed blocks #13997

Merged
merged 3 commits into from
Apr 18, 2019

Conversation

draganescu
Copy link
Contributor

Closes #11901

Added e2e tests to test the transform of audio, video and image blocks in to embeds when embeddable URLs are provided

Description

Added e2e tests to test the transform of audio, video and image blocks in to embeds when embeddable URLs are provided

Checklist:

  • My code is tested.
  • My code follows the WordPress code style.
  • My code follows the accessibility standards.
  • My code has proper inline documentation.
  • I've included developer documentation if appropriate.

@draganescu draganescu added [Type] Task Issues or PRs that have been broken down into an individual action to take [Block] Embed Affects the Embed Block labels Feb 21, 2019
@draganescu draganescu added this to the 5.2 (Gutenberg) milestone Feb 21, 2019
@draganescu draganescu self-assigned this Feb 21, 2019
@draganescu
Copy link
Contributor Author

I added the mocking of audio and image test URLs and also used the video URL which was already mocked.

@gziolo gziolo added the [Type] Automated Testing Testing infrastructure changes impacting the execution of end-to-end (E2E) and/or unit tests. label Feb 25, 2019
@draganescu draganescu force-pushed the add/tests-for-transform-embeddable-urls branch from 088083c to ad23c70 Compare February 25, 2019 09:35
@draganescu
Copy link
Contributor Author

draganescu commented Feb 25, 2019

The undo tests seem to fail for everyone on travis, for some they work on local.

Ran locally they fail because of a timeout. Interestingly, setting the timeout to be higher using both jest.setTimeout( 100000 ); and PUPPETEER_TIMEOUT=10000 has no effect.

Running in playback mode results in the same timeout, although visual inspection shows undo does work!

@aduth
Copy link
Member

aduth commented Feb 26, 2019

Yes, the Undo tests are very unstable at the moment. I'm hoping this is improved with #14108.

@youknowriad youknowriad removed this from the 5.3 (Gutenberg) milestone Mar 18, 2019
@draganescu draganescu force-pushed the add/tests-for-transform-embeddable-urls branch from ad23c70 to 2cce5c2 Compare March 29, 2019 13:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Embed Affects the Embed Block [Type] Automated Testing Testing infrastructure changes impacting the execution of end-to-end (E2E) and/or unit tests. [Type] Task Issues or PRs that have been broken down into an individual action to take
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Tests: Transform embeddable URLs in Audio/Video/Image to Embed Block
5 participants