Closed shashwatahalder01 closed 4 months ago
The recent updates encompass various enhancements and refactorings across multiple files. Key changes include the addition of new environment variables, updates to the handling of EU compliance features, improvements to test setups, and refinements in existing methods and selectors. These changes aim to streamline workflows, enhance test reliability, and ensure compliance with EU regulations.
Files/Groups | Change Summary |
---|---|
.github/workflows/e2e_api_tests.yml |
Added a new environment variable CUSTOMER2: customer2 . |
tests/pw/.prettierrc |
Increased printWidth from 220 to 240. |
tests/pw/.wp-env.override |
Added a new URL for the plugin woocommerce-germanized.latest-stable.zip . |
tests/pw/feature-map/feature-map.yml |
Updated permissions and capabilities for managing color palettes, EU compliance fields, and actions. |
tests/pw/pages/... |
Refactored and added new methods, updated selectors, and improved test reliability across various pages. |
tests/pw/tests/api/calculation.spec.ts |
Modified tax rate setup and added comments for future improvements. |
tests/pw/tests/e2e/_auth.setup.ts |
Added setup steps to authenticate and add a new customer. |
tests/pw/tests/e2e/_env.setup.ts |
Added setup to disable storefront sticky add to cart and skipped certain Germanized settings. |
tests/pw/tests/e2e/colors.spec.ts |
Updated test cases for adding and updating custom color palettes. |
tests/pw/tests/e2e/coupons.spec.ts |
Added a parameter { page } and created a customer object in the test case. |
tests/pw/tests/e2e/customer.spec.ts |
Renamed variables, added a new customer context, and adjusted method calls. |
tests/pw/tests/e2e/euCompliance.spec.ts |
Introduced end-to-end tests for EU compliance features. |
tests/pw/tests/e2e/settings.spec.ts |
Removed a commented-out todo message. |
tests/pw/tests/e2e/stores.spec.ts |
Added a comment to implement editing specific chunks of vendor data. |
tests/pw/tests/e2e/vendor.spec.ts |
Renamed vendorPage to vendor in test cases. |
tests/pw/tests/e2e/vendorSettings.spec.ts |
Changed test description to setting EU compliance info settings. |
tests/pw/types/environment.d.ts |
Reordered and added new global variables related to user passwords and customer IDs. |
tests/pw/utils/apiUtils.ts |
Modified createUser method to return a tuple [responseBody, string] . |
tests/pw/utils/dbData.ts |
Added fields related to company and Germanized settings. |
tests/pw/utils/interfaces.ts |
Added new properties to product and vendor interfaces, and introduced eUComplianceData . |
tests/pw/utils/payloads.ts |
Significant changes to payloads for products, users, vendors, and settings. |
sequenceDiagram
participant User
participant AuthAPI
participant EUCompliancePage
participant VendorPage
participant ProductsPage
User->>AuthAPI: Authenticate Customer2
AuthAPI-->>User: Authentication Token
User->>EUCompliancePage: Update EU Compliance Settings
EUCompliancePage-->>User: Confirmation
User->>VendorPage: Register Vendor
VendorPage-->>User: Vendor Registered
User->>ProductsPage: Add EU Compliant Product
ProductsPage-->>User: Product Added
In the code, new paths we weave,
With colors bright and compliance to achieve.
Vendors register, products align,
EU rules followed, everything's fine.
Tests refined, setup anew,
For a smoother flow, and bugs so few.
🎨🌐✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
All Submissions:
Changes proposed in this Pull Request:
Related Pull Request(s)
Closes
How to test the changes in this Pull Request:
Changelog entry
Title
Detailed Description of the pull request. What was previous behaviour and what will be changed in this PR.
Before Changes
Describe the issue before changes with screenshots(s).
After Changes
Describe the issue after changes with screenshot(s).
Feature Video (optional)
Link of detailed video if this PR is for a feature.
PR Self Review Checklist:
FOR PR REVIEWER ONLY:
Summary by CodeRabbit
New Features
Bug Fixes
Refactor
Tests
Chores
printWidth
setting for better code readability.