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

E2E Tests: Reenable test for featured media. #1076

Open
1 task done
peterwilsoncc opened this issue Jun 14, 2023 · 0 comments
Open
1 task done

E2E Tests: Reenable test for featured media. #1076

peterwilsoncc opened this issue Jun 14, 2023 · 0 comments
Labels
help wanted type:bug Something isn't working.
Milestone

Comments

@peterwilsoncc
Copy link
Collaborator

Describe the bug

In the E2E test, the featured image portion of the "internal push, Should push sync the post data" is disabled as it was causing failures on the GitHub workflow that wasn't reproducible locally. An example can be seen in this failing test run.

Steps to Reproduce

  1. Enable the featured image tests by uncommenting the lines below
  2. Push to GitHub
  3. Create a draft PR
  4. The test runs will fail
  5. Re-comment out the lines below
  6. Push to GitHub
  7. The test runs will pass

Screenshots, screen recording, code snippet

// Set Featured Image
// This test is temporarily disabled due to failures in GitHub actions that are not reproducible locally.
// On GitHub the success message expected within the cy.distributorPushPost command is not found as the
// distribution fails with an undefined error.
// cy.uploadMedia( 'assets/img/banner-772x250.png' ).then(
// ( media ) => {
// if ( media && media.mediaId ) {
// cy.wpCli(
// `wp post meta set ${ post.id } _thumbnail_id ${ media.mediaId }`
// );
// }
// }
// );

// validate featured image.
// cy.wpCli(
// `wp post meta get ${ distributeInfo.distributedPostId } _thumbnail_id --url=${ siteUrl }`
// )
// .its( 'stdout' )
// .should( 'not.empty' );

Environment information

  • GitHub workflows
  • ubuntu-latest

WordPress information

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@peterwilsoncc peterwilsoncc added type:bug Something isn't working. help wanted labels Jun 14, 2023
@jeffpaul jeffpaul added this to the 2.2.0 milestone Jun 10, 2024
@jeffpaul jeffpaul moved this from Incoming to Backlog in Open Source Practice Jun 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted type:bug Something isn't working.
Projects
Status: Backlog
Development

No branches or pull requests

2 participants