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

Improve code quality of table e2e tests #16872

Merged
merged 1 commit into from
Aug 2, 2019
Merged

Conversation

talldan
Copy link
Contributor

@talldan talldan commented Aug 2, 2019

Description

Small PR that implements some code quality updates for table block e2e tests. Addresses feedback on #16653 and #16111.

Changes:

  • Use the clickButton utility instead of elementHandle.click.
  • Avoid typing loads of text when line breaks can be used.
  • Prefer array destructuring when possible.
  • Fix an incorrect comment.

How has this been tested?

  • Ensure E2E tests pass.

Types of changes

Code quality.

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.

@talldan talldan added [Type] Code Quality Issues or PRs that relate to code quality [Block] Table Affects the Table Block labels Aug 2, 2019
@talldan talldan self-assigned this Aug 2, 2019
Copy link
Member

@gziolo gziolo left a comment

Choose a reason for hiding this comment

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

Tests still pass, code changes look good, nice cleanup 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Table Affects the Table Block [Type] Automated Testing Testing infrastructure changes impacting the execution of end-to-end (E2E) and/or unit tests. [Type] Code Quality Issues or PRs that relate to code quality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants