Skip to content

Commit

Permalink
Add new tests to featuremap (#2453)
Browse files Browse the repository at this point in the history
* Add new tests to feature map

* Add new tests to featuremap

* Skip shipstation tests
  • Loading branch information
shashwatahalder01 authored Nov 27, 2024
1 parent 1f97569 commit 6466f42
Show file tree
Hide file tree
Showing 5 changed files with 118 additions and 17 deletions.
127 changes: 112 additions & 15 deletions tests/pw/feature-map/feature-map.yml
Original file line number Diff line number Diff line change
Expand Up @@ -651,6 +651,15 @@
admin can refresh license: true
admin can deactivate license: true

- page: 'Feature lock'
features:
admin:
admin can view license expiration notice: false
admin can view expired license notice: false
admin can view license renewal prompt after license expired: false
admin can't enable module after license expired: false
admin can't alter pro settings after license expired: false

- page: 'Modules'
features:
admin:
Expand Down Expand Up @@ -792,7 +801,6 @@
admin:
admin can enable Elementor module: false
admin can disable Elementor module: false
no test is written for elementor module (out of scope): false

- page: 'EU Compliance Fields'
features:
Expand Down Expand Up @@ -923,9 +931,18 @@
- page: 'MangoPay'
features:
admin:
admin can enable Mangopay module: false
admin can disable Mangopay module: false
admin can add Mangopay payment method: true
admin can enable MangoPay module: false
admin can disable MangoPay module: false
admin can add MangoPay payment method: true
admin can remove MangoPay payment method: false
admin can view MangoPay notes on order details: false
admin can refund order using MangoPay payment method: false
vendor:
vendor can add MangoPay payment method: false
vendor can remove MangoPay payment method: false
admin can refund order using MangoPay payment method: false
customer:
customer can buy product using MangoPay payment method: false

- page: 'Min Max Quantities'
features:
Expand All @@ -935,13 +952,25 @@
vendor:
vendor can add product min-max options: true
vendor can set min-max settings: true
customer:
customer can buy product following min-max quantities rule: false
customer can buy product following min-max amount rule: false

- page: 'PayPal Marketplace'
features:
admin:
admin can enable PayPal Marketplace module: false
admin can disable PayPal Marketplace module: false
admin can add Paypal Marketplace payment method: true
admin can disable PayPal Marketplace module: false
admin can add PayPal Marketplace payment method: true
admin can remove PayPal Marketplace payment method: false
admin can view PayPal Marketplace notes on order details: false
admin can refund order using PayPal Marketplace payment method: false
vendor:
vendor can add PayPal Marketplace payment method: false
vendor can remove PayPal Marketplace payment method: false
admin can refund order using PayPal Marketplace payment method: false
customer:
customer can buy product using PayPal Marketplace payment method: false

- page: 'Printful'
features:
Expand Down Expand Up @@ -974,6 +1003,7 @@
vendor can export global product addon field: true
vendor can remove product addon field: true
vendor can add product addon: true
vendor can update product addon: false
vendor can import product addon: true
vendor can export product addon: true
vendor can remove product addon: true
Expand Down Expand Up @@ -1081,14 +1111,24 @@
admin:
admin can enable Rank Math SEO module: false
admin can disable Rank Math SEO module: false
no test is written for rank math seo module: false
vendor:
vendor can view rank math seo options on product edit page: false

- page: 'Razorpay'
features:
admin:
admin can enable Razorpay module: false
admin can disable Razorpay module: false
admin can add Razorpay payment method: true
admin can remove Razorpay payment method: false
admin can view Razorpay notes on order details: false
admin can refund order using Razorpay payment method: false
vendor:
vendor can add Razorpay payment method: false
vendor can remove Razorpay payment method: false
admin can refund order using Razorpay payment method: false
customer:
customer can buy product using Razorpay payment method: false

- page: 'Report Abuse'
features:
Expand All @@ -1110,8 +1150,15 @@
- page: 'Request for Quotation'
features:
admin:
admin can enable RFQ module: false
admin can enable RFQ module: false
admin can disable RFQ module: false
admin can add RFQ shortcode: false
admin can enable quote for out of stock products: false
admin can enable ajax Add to quote: false
admin can set quote redirect settings: false
admin can set offered price: false
admin can enable customer can convert quote to order: false
admin can enable quote converter display: false
quote rules:
admin can view quote rules menu page: true
admin can add quote rule: true
Expand All @@ -1124,25 +1171,44 @@
admin can view quotes menu page: true
admin can add quote: true
admin can edit quote: true
admin can update quote: false
admin can trash quote: true
admin can restore quote: true
admin can permanently delete quote: true
admin can approve quote: true
admin can reject quote: false
admin can reopen quote: false
admin can convert quote to order: true
admin can perform quote bulk actions: true
admin can filter quote requests by status: false
admin can filter quote requests by date: false
admin can filter quote requests by customer: false
admin can reset quote filter: false
admin can add quote shipping cost on order: false
admin can remove quote shipping cost on order: false
vendor:
vendor can view request quotes menu page: true
vendor can view request quote details: true
vendor can search quote: false
vendor can filter quote by status: false
vendor can update quote request: true
vendor can approve quote request: true
vendor can reject quote request: false
vendor can reopen quote request: false
vendor can delete quote request: false
vendor can convert quote request to order: true
vendor can enable rfq when catalog mode is enabled: false
customer:
customer can view request for quote menu page: true
customer can view requested quote page: true
customer can view requested quote details: true
customer can clear quote cart: false
customer can update quote request: true
customer can accept quote request: false
customer can cancel quote request: false
customer can pay for order converted from quote request: true
customer can quote product: true
customer can filter quotes by status: false
guest:
guest customer can quote product: true

Expand All @@ -1161,6 +1227,7 @@
customer:
customer can view return request menu page: true
customer can request warranty: true
customer can request warranty (replace): false
customer can send rma message: true

- page: 'Seller Badge'
Expand All @@ -1186,6 +1253,15 @@
vendor can search seller badge: true
vendor can filter seller badges: true

- page: 'Seller Vacation'
features:
admin:
admin can enable seller vacation module: false
admin can disable seller vacation module: false
vendor:
vendor can add vacation (instant): false
vendor can add vacation (datewise): false

- page: 'ShipStation Integration'
features:
admin:
Expand Down Expand Up @@ -1288,16 +1364,34 @@
- page: 'Stripe Connect'
features:
admin:
admin can enable stripe connect module: false
admin can disable stripe connect module: false
admin can add stripe payment method: true
admin can enable Stripe Connect module: false
admin can disable Stripe Connect module: false
admin can add Stripe Connect payment method: true
admin can remove Stripe Connect payment method: false
admin can view Stripe Connect notes on order details: false
admin can refund order using Stripe Connect payment method: false
vendor:
vendor can add Stripe Connect payment method: false
vendor can remove Stripe Connect payment method: false
admin can refund order using Stripe Connect payment method: false
customer:
customer can buy product using Stripe Connect payment method: false

- page: 'Stripe Express'
features:
admin:
admin can enable stripe express module: false
admin can disable stripe express module: false
admin can add Strip Express payment method: true
admin can enable Stripe Express module: false
admin can disable Stripe Express module: false
admin can add Stripe Express payment method: true
admin can remove Stripe Express payment method: false
admin can view Stripe Express notes on order details: false
admin can refund order using Stripe Express payment method: false
vendor:
vendor can add Stripe Express payment method: false
vendor can remove Stripe Express payment method: false
admin can refund order using Stripe Express payment method: false
customer:
customer can buy product using Stripe Express payment method: false

- page: 'Table Rate Shipping'
features:
Expand All @@ -1309,6 +1403,9 @@
vendor:
vendor can add table rate shipping: true
vendor can add distance rate shipping: true
customer:
customer can purchase product using table rate shipping: false
customer can purchase product using distance rate shipping: false

- page: 'Vendor Analytics'
features:
Expand Down Expand Up @@ -1420,7 +1517,7 @@
admin can view wholesale customer orders: true
admin can delete wholesale customer: true
admin can perform bulk action on wholesale customers: true
All users can see wholesale price: true
all users can see wholesale price: true
vendor:
vendor can create wholesale product: true
customer:
Expand Down
2 changes: 2 additions & 0 deletions tests/pw/tests/e2e/followStore.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ test.describe('Follow stores functionality test', () => {
await customer.followUnfollowStore(data.predefined.vendorStores.vendor2, 'Follow', data.predefined.vendorStores.followFromSingleStore);
});

// todo: parameterize above tests also update feature-map

//vendor

test('vendor can view followers menu page', { tag: ['@pro', '@exploratory', '@vendor'] }, async () => {
Expand Down
2 changes: 1 addition & 1 deletion tests/pw/tests/e2e/productsDetailsBookings.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ test.describe('Booking Product details functionality test', () => {
await vendor.addProductAddon(productIdBasic, data.product.productInfo.addon);
});

test('vendor can import booking product addon', { tag: ['@pro', '@vendor'] }, async () => {
test.skip('vendor can import booking product addon', { tag: ['@pro', '@vendor'] }, async () => {
const addon = payloads.createProductAddon();
await vendor.importAddon(productIdBasic, serialize([addon]), addon.name);
});
Expand Down
2 changes: 2 additions & 0 deletions tests/pw/tests/e2e/vendorSettings.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ test.describe('Vendor settings test', () => {
});

test('vendor can view ShipStation settings menu page', { tag: ['@pro', '@exploratory', '@vendor'] }, async () => {
test.skip(true, 'pr not merged yet');
await vendor.vendorShipStationSettingsRenderProperly();
});

Expand Down Expand Up @@ -119,6 +120,7 @@ test.describe('Vendor settings test', () => {
});

test('vendor can set ShipStation settings', { tag: ['@pro', '@vendor'] }, async () => {
test.skip(true, 'pr not merged yet');
await vendor.setShipStation(data.vendor.shipStation);
});

Expand Down
2 changes: 1 addition & 1 deletion tests/pw/tests/e2e/wholesale.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ test.describe('Wholesale test (customer)', () => {
await cPage.close();
});

test('All users can see wholesale price', { tag: ['@pro', '@customer'] }, async () => {
test('all users can see wholesale price', { tag: ['@pro', '@customer'] }, async () => {
test.skip(true, '@todo fix this test');
await admin.viewWholeSalePrice(productName);
});
Expand Down

0 comments on commit 6466f42

Please sign in to comment.