Closed shashwatahalder01 closed 1 month ago
The pull request includes updates to the package.json
for the dokan_e2e_api_automation_playwright
project, focusing on version upgrades for various development dependencies and dependencies. Additionally, modifications were made across several test files, including changes to method implementations, the addition of new test cases, and updates to existing tests to improve functionality and maintainability. Notably, there are enhancements in the handling of shipping methods and product management tests, ensuring better coverage and functionality in the testing framework.
File Path | Change Summary |
---|---|
tests/pw/package.json |
Updated versions of multiple development dependencies and dependencies, including @types/node , @typescript-eslint/eslint-plugin , eslint-plugin-playwright , and others. |
tests/pw/pages/productsPage.ts |
Modified cantAddGreaterMin method to change input from Escape to Tab for validation; updated method signature. |
tests/pw/pages/selectors.ts |
Renamed parameters in selector.auction methods from name to productName for consistency. |
tests/pw/pages/vendorAuctionsPage.ts |
Enhanced goToAuctionProductEdit and updateAuctionProductFields methods to improve UI test reliability and allow editing of date fields. |
tests/pw/tests/api/_env.setup.ts |
Added methodId variable for capturing shipping zone method identifier; removed commented-out sections related to payment gateway updates. |
tests/pw/tests/e2e/_env.setup.ts |
Updated shipping zone method handling to capture methodId during setup; removed commented-out payment gateway lines. |
tests/pw/tests/e2e/coupons.spec.ts |
Added test.skip for vendor's coupon viewing test and test.slow() for customer coupon buying test. |
tests/pw/tests/e2e/productAddons.spec.ts |
Added test.slow() to the product addon test case. |
tests/pw/tests/e2e/products.spec.ts |
Added test.slow() to the downloadable product test case. |
tests/pw/tests/e2e/productsDetails.spec.ts |
Introduced multiple test cases for product management functionalities, covering various vendor actions and validations. |
tests/pw/tests/e2e/wholesale.spec.ts |
Added test.skip to multiple wholesale-related tests, indicating they are disabled for future fixes. |
tests/pw/utils/apiUtils.ts |
Removed shippingMethodExistOrNot method; added methods for managing shipping zone methods, including getSingleShippingZoneMethod , updateShippingZoneMethod , and deleteShippingZoneMethod . |
tests/pw/utils/payloads.ts |
Removed PRODUCT_ID and CATEGORY_ID from process.env ; added addShippingMethodFlatRateCost property to payloads object. |
tests/pw/utils/schemas.ts |
Updated admin_url field in abuseReportSchema from non-nullable to nullable string. |
:+1: Dev Review Done
🐰 In the garden of code, changes bloom bright,
With dependencies updated, everything feels right.
Tests for products now dance in a row,
Ensuring our features continue to grow.
So hop along, let’s celebrate this feat,
For a smoother journey, our code is now neat! 🌼
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
Release Notes
New Features
Bug Fixes
Tests
test.skip
andtest.slow
annotations to manage test execution based on current functionality and performance.Chores