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

Fix failing tests in create shipping zones #38949

Merged
merged 3 commits into from Jun 27, 2023
Merged

Conversation

lanej0
Copy link
Contributor

@lanej0 lanej0 commented Jun 26, 2023

Submission Review Guidelines:

Changes proposed in this Pull Request:

Two tests in merchant/create-shipping-zones.spec.js were failing because functionality changed. This fixes that, and while I was working with them, I updated the locators used in the test to modernize them.

How to test the changes in this Pull Request:

Using the WooCommerce Testing Instructions Guide, include your detailed testing instructions:

  1. Pull this branch
  2. pnpm env:start
  3. pnpm test:e2e-pw tests/e2e-pw/tests/merchant/create-shipping-zones.spec.js
  4. All tests should pass

@lanej0 lanej0 added the focus: e2e tests Issues related to e2e tests label Jun 26, 2023
@github-actions github-actions bot added the plugin: woocommerce Issues related to the WooCommerce Core plugin. label Jun 26, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Jun 26, 2023

Test Results Summary

Commit SHA: 85f6a8c

Test 🧪Passed ✅Failed 🚨Broken 🚧Skipped ⏭️Unknown ❔Total 📊Duration ⏱️
API Tests25900202610m 52s
E2E Tests1900018020816m 30s

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.

@lanej0 lanej0 marked this pull request as draft June 26, 2023 22:27
@lanej0
Copy link
Contributor Author

lanej0 commented Jun 27, 2023

Okay, so I didn’t actually change the logic — there was a problem with my local. But I did improve the locators, so I’ll let this PR stand for that.

@lanej0 lanej0 marked this pull request as ready for review June 27, 2023 02:04
Copy link
Contributor

@alopezari alopezari left a comment

Choose a reason for hiding this comment

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

Thanks for working on this @lanej0!

As you said, only locators were updated - which is a pretty straightforward change - and the tests passed both on CI and my local environment (headless & headed), so I'm approving this 👍

@alopezari alopezari merged commit a948c72 into trunk Jun 27, 2023
18 checks passed
@alopezari alopezari deleted the fix/failing-shipping-tests branch June 27, 2023 08:52
@github-actions github-actions bot added this to the 8.0.0 milestone Jun 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
focus: e2e tests Issues related to e2e tests plugin: woocommerce Issues related to the WooCommerce Core plugin.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants