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 for Password Protected Post #2864

Merged
merged 12 commits into from
Jun 6, 2023
Prev Previous commit
Next Next commit
Merge branch 'develop' of github.com:10up/ElasticPress into burhan/ad…
…d-tests-for-password-protected-posts
  • Loading branch information
burhandodhy committed Aug 24, 2022
commit 9d765812bb082e2fc936b06e379efca7bfd2edd7
21 changes: 21 additions & 0 deletions tests/cypress/integration/features/search/search.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,4 +144,25 @@ describe('Post Search Feature', () => {
cy.visit('/?s=Password+Protected');
cy.contains('.site-content article h2', 'Password Protected').should('not.exist');
});

it('Can Search Product by Variation SKU', () => {
cy.login();
cy.activatePlugin('woocommerce', 'wpCli');
cy.maybeEnableFeature('woocommerce');

cy.updateWeighting({
product: {
'meta._variations_skus.value': {
weight: 1,
enabled: true,
},
},
}).then(() => {
cy.wpCli('elasticpress index --setup --yes');
cy.visit('/?s=awesome-aluminum-shoes-variation-sku');
cy.contains('.site-content article:nth-of-type(1) h2', 'Awesome Aluminum Shoes').should(
'exist',
);
});
});
});
You are viewing a condensed version of this merge commit. You can view the full changes here.