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

Fix: failing Cypress test on WP Minimum #164

Merged
merged 4 commits into from
Apr 19, 2022
Merged

Conversation

dinhtungdu
Copy link
Contributor

Description of the Change

The test on WP 4.6 is failing because we run block tests in Classic Editor. This PR fixes that issue using the environment variable and @cypress/skip-test package to skip block test on older versions of WP.

Checklist:

  • I have read the CONTRIBUTING document.
  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my change.
  • All new and existing tests passed.

Changelog Entry

Credits

Props @dinhtungdu

@dinhtungdu dinhtungdu self-assigned this Apr 14, 2022
@dinhtungdu dinhtungdu added the type:bug Something isn't working. label Apr 14, 2022
Copy link
Contributor

@cadic cadic left a comment

Choose a reason for hiding this comment

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

@dinhtungdu thank you for adding this feature. I have few questions before we merge this.

.github/workflows/test-branch.yml Outdated Show resolved Hide resolved
.github/workflows/test-branch.yml Outdated Show resolved Hide resolved
tests/cypress/integration/taxonomy.test.js Outdated Show resolved Hide resolved
tests/cypress/integration/taxonomy.test.js Outdated Show resolved Hide resolved
Copy link
Contributor

@cadic cadic left a comment

Choose a reason for hiding this comment

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

@dinhtungdu thank you, LGTM!

@cadic cadic self-requested a review April 15, 2022 09:48
@jeffpaul jeffpaul merged commit f1513f3 into develop Apr 19, 2022
@jeffpaul jeffpaul deleted the fix/cypress-minimum branch April 19, 2022 01:27
@jeffpaul jeffpaul added this to the 1.3.0 milestone Apr 19, 2022
cadic added a commit that referenced this pull request Apr 21, 2022
In #164 we have combined branch and pr Cypress workflows into a single e2e workflow, which has broken the badges.
@cadic cadic mentioned this pull request Apr 21, 2022
@cadic cadic modified the milestones: 1.3.0, 1.2.3 Apr 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug Something isn't working.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants