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

Blocks E2E: Stabilize Product Collection "on sale" tests #44796

Merged
merged 4 commits into from Feb 21, 2024

Conversation

WunderBart
Copy link
Contributor

@WunderBart WunderBart commented Feb 20, 2024

Changes proposed in this Pull Request:

  • Fix flaky Products can be filtered based on "on sale" status test.

    This test was flaky because we compared the current count of elements to an unknown count of elements calculated by locator.count(). That method is inherently unstable because it includes only the currently available elements, whereas the rest might still be loading.

  • Clean up the suite & apply some good practices.

How to test the changes in this Pull Request:

There no need to test manually. This suite should pass in CI. For safe measure, it should be restarted a couple of times to ensure the aforementioned test was indeed stabilized.

This test was flaky because we were comparing the current count of elements to an unknown count of elements calculated by `locator.count()`. That method is inherently unstable, because it only counts the currently available elements, where the rest can still be loading.

Furthermore, effective tests should verify the system against known, expected outcomes to ensure it behaves as intended under certain conditions. Without comparing to a fixed value, you cannot guarantee that the system is meeting its specified requirements.
@woocommercebot woocommercebot requested review from a team and imanish003 and removed request for a team February 20, 2024 10:59
Copy link
Contributor

github-actions bot commented Feb 20, 2024

Hi @tjcafferkey, @imanish003, @kmanijak,

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 20, 2024

Test Results Summary

Commit SHA: 3722918

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

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.

@github-actions github-actions bot added the plugin: woocommerce Issues related to the WooCommerce Core plugin. label Feb 20, 2024
Copy link
Contributor

@kmanijak kmanijak left a comment

Choose a reason for hiding this comment

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

Nice improvements! Reviewing this PR is a quick Playwright tutorial session 😄

@WunderBart WunderBart merged commit 045df6f into trunk Feb 21, 2024
57 of 58 checks passed
@WunderBart WunderBart deleted the tweak/stabilize-product-collection-e2e branch February 21, 2024 12:44
@github-actions github-actions bot added this to the 8.7.0 milestone Feb 21, 2024
@github-actions github-actions bot added the needs: analysis Indicates if the PR requires a PR testing scrub session. label Feb 21, 2024
@alvarothomas alvarothomas 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 21, 2024
@WunderBart WunderBart changed the title [E2E] Stabilize Product Collection "on sale" tests Blocks E2E: Stabilize Product Collection "on sale" tests May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
plugin: woocommerce Issues related to the WooCommerce Core plugin. status: analysis complete Indicates if a PR has been analysed by Solaris
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants