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 password-protected Single Product block template to verify correct template is displayed after correct password is introduced #44452

Merged
merged 2 commits into from Feb 9, 2024

Conversation

Aljullu
Copy link
Contributor

@Aljullu Aljullu commented Feb 8, 2024

Changes proposed in this Pull Request:

Follow-up of #44304.

In #44304 we added a test to verify that if a product is password-protected, we display the template with the password field. This PR expands that test to verify that if the user introduces the correct password, then the default template is displayed.

How to test the changes in this Pull Request:

Note: no need to test this for the release.

  1. Verify e2e tests pass.

Changelog entry

  • Automatically create a changelog entry from the details below.

Significance

  • Patch
  • Minor
  • Major

Type

  • Fix - Fixes an existing bug
  • Add - Adds functionality
  • Update - Update existing functionality
  • Dev - Development related task
  • Tweak - A minor adjustment to the codebase
  • Performance - Address performance issues
  • Enhancement - Improvement to existing functionality

Message

Comment

Improve password-protected Single Product block template to verify correct template is displayed after correct password is introduced

@Aljullu Aljullu self-assigned this Feb 8, 2024
@Aljullu Aljullu added focus: template Issue related to WooCommerce templates. team: Kirigami & Origami labels Feb 8, 2024
@woocommercebot woocommercebot requested review from a team and albarin and removed request for a team February 8, 2024 12:21
Copy link
Contributor

github-actions bot commented Feb 8, 2024

Hi @albarin,

Apart from reviewing the code changes, please make sure to review the testing instructions as well.

You can follow this guide to find out what good testing instructions should look like:
https://github.com/woocommerce/woocommerce/wiki/Writing-high-quality-testing-instructions

Copy link
Contributor

github-actions bot commented Feb 8, 2024

Test Results Summary

Commit SHA: 377855a

Test 🧪Passed ✅Failed 🚨Broken 🚧Skipped ⏭️Unknown ❔Total 📊Duration ⏱️
API Tests25900202610m 37s
E2E Tests294002003146m 51s

To view the full API test report, click here.
To view the full E2E test report, click here.
To view all test reports, visit the WooCommerce Test Reports Dashboard.

@Aljullu
Copy link
Contributor Author

Aljullu commented Feb 8, 2024

e2e tests are currently failing, but they will be fixed in #44454.

…rrect template is displayed after correct password is introduced
@Aljullu Aljullu force-pushed the update/single-product-password-test-correct branch from 254637e to 7a7417f Compare February 9, 2024 08:31
@github-actions github-actions bot added the plugin: woocommerce Issues related to the WooCommerce Core plugin. label Feb 9, 2024
Copy link
Contributor

@albarin albarin left a comment

Choose a reason for hiding this comment

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

👌

@Aljullu Aljullu merged commit 1905534 into trunk Feb 9, 2024
40 checks passed
@Aljullu Aljullu deleted the update/single-product-password-test-correct branch February 9, 2024 09:53
@github-actions github-actions bot added this to the 8.7.0 milestone Feb 9, 2024
@github-actions github-actions bot added the needs: analysis Indicates if the PR requires a PR testing scrub session. label Feb 9, 2024
@alopezari alopezari added status: analysis complete Indicates if a PR has been analysed by Solaris and removed needs: analysis Indicates if the PR requires a PR testing scrub session. labels Feb 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
focus: template Issue related to WooCommerce templates. plugin: woocommerce Issues related to the WooCommerce Core plugin. status: analysis complete Indicates if a PR has been analysed by Solaris team: Kirigami & Origami
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants