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

Add e2e tests to verify specific theme templates have priority over user-modified Product Catalog template #43750

Merged
merged 2 commits into from Jan 22, 2024

Conversation

Aljullu
Copy link
Contributor

@Aljullu Aljullu commented Jan 17, 2024

Changes proposed in this Pull Request:

Based on #43650.

Part of #43416.

This PR adds some tests to verify that if the theme has a specific template for Products by Category/Tag/Attribute, that one has priority over a Product Catalog template edited by the user.

(For context: if the theme doesn't have a specific template for Products by Category/Tag/Attribute and the user hasn't modified those templates, they default to the Product Catalog template, tests for this were added in #43471)

How to test the changes in this Pull Request:

Note: no need to test this for the release.

  1. Verify Playwright 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

Add e2e tests to verify specific theme templates have priority over user-modified Product Catalog template

@Aljullu Aljullu self-assigned this Jan 17, 2024
@Aljullu Aljullu added focus: template Issue related to WooCommerce templates. team: Kirigami & Origami labels Jan 17, 2024
@Aljullu Aljullu force-pushed the add/theme-block-template-customization-ii branch from 126d3f0 to d7fa39e Compare January 17, 2024 16:39
@github-actions github-actions bot added the plugin: woocommerce Issues related to the WooCommerce Core plugin. label Jan 17, 2024
Copy link
Contributor

github-actions bot commented Jan 17, 2024

Test Results Summary

Commit SHA: dd59c7b

Test 🧪Passed ✅Failed 🚨Broken 🚧Skipped ⏭️Unknown ❔Total 📊Duration ⏱️
API Tests25900202610m 38s
E2E Tests233005002835m 31s

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 Aljullu marked this pull request as ready for review January 17, 2024 17:18
@woocommercebot woocommercebot requested review from a team and nefeline and removed request for a team January 17, 2024 17:18
Copy link
Contributor

Hi @nefeline,

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

Base automatically changed from add/theme-block-template-customization to trunk January 18, 2024 10:39
@Aljullu Aljullu force-pushed the add/theme-block-template-customization-ii branch from d7fa39e to dd59c7b Compare January 18, 2024 10:44
Copy link
Member

@nefeline nefeline left a comment

Choose a reason for hiding this comment

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

🚀 LGTM!

@Aljullu Aljullu merged commit c1b131c into trunk Jan 22, 2024
41 checks passed
@Aljullu Aljullu deleted the add/theme-block-template-customization-ii branch January 22, 2024 13:44
@github-actions github-actions bot added this to the 8.6.0 milestone Jan 22, 2024
@github-actions github-actions bot added the needs: analysis Indicates if the PR requires a PR testing scrub session. label Jan 22, 2024
@nigeljamesstevenson nigeljamesstevenson 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 Jan 22, 2024
opr pushed a commit that referenced this pull request Jan 25, 2024
…ser-modified Product Catalog template (#43750)

* Add e2e tests to verify specific theme templates have priority over user-modified Product Catalog template

* Add changefile(s) from automation for the following project(s): woocommerce-blocks
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