Skip to content

Testing: Add missing e2e tests for Plugins API#10513

Merged
gziolo merged 2 commits intomasterfrom
update/e2e-plugins-api
Oct 25, 2018
Merged

Testing: Add missing e2e tests for Plugins API#10513
gziolo merged 2 commits intomasterfrom
update/e2e-plugins-api

Conversation

@gziolo
Copy link
Copy Markdown
Member

@gziolo gziolo commented Oct 11, 2018

Description

This PR adds two basic tests for Publish Panel components integrated with Plugins API. I noticed that I added plugins before WordCamp Europe. Apparently, I forgot to add tests, this PR fixes it.

This PR also wraps JavaScript code of test plugins with IIFE (Immediately-invoked function expression) to avoid polluting global namespace.

How has this been tested?

npm run test-e2e plus the same check on Travis.

Checklist:

  • My code is tested.
  • My code follows the WordPress code style.
  • My code follows the accessibility standards.
  • My code has proper inline documentation.

@gziolo gziolo added the [Type] Automated Testing Testing infrastructure changes impacting the execution of end-to-end (E2E) and/or unit tests. label Oct 11, 2018
@gziolo gziolo added this to the 4.1 milestone Oct 11, 2018
@gziolo gziolo self-assigned this Oct 11, 2018
@gziolo gziolo requested a review from a team October 11, 2018 13:34
@gziolo gziolo modified the milestones: 4.1, 4.2 Oct 15, 2018
@gziolo gziolo force-pushed the update/e2e-plugins-api branch 3 times, most recently from 321f1f2 to 5bb3c86 Compare October 15, 2018 12:34
Copy link
Copy Markdown
Member

@jorgefilipecosta jorgefilipecosta left a comment

Choose a reason for hiding this comment

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

The new test cases look good to me 👍

@gziolo gziolo force-pushed the update/e2e-plugins-api branch from 5bb3c86 to f2d5e89 Compare October 25, 2018 08:41
@gziolo gziolo merged commit 8e2c466 into master Oct 25, 2018
@gziolo gziolo deleted the update/e2e-plugins-api branch October 25, 2018 09:01
antpb pushed a commit to antpb/gutenberg that referenced this pull request Oct 26, 2018
* Testing: Add missing e2e tests for Plugins API

* Make all plugin API e2e test independent
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Type] Automated Testing Testing infrastructure changes impacting the execution of end-to-end (E2E) and/or unit tests.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants