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

Testing: Add missing e2e tests for Plugins API #10513

Merged
merged 2 commits into from
Oct 25, 2018
Merged

Conversation

gziolo
Copy link
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
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 👍

test/e2e/specs/plugins-api.test.js Show resolved Hide resolved
@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