Skip to content

Commit

Permalink
update module tests
Browse files Browse the repository at this point in the history
  • Loading branch information
shashwatahalder01 committed Feb 13, 2024
1 parent fc2301f commit 25e512b
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tests/pw/tests/e2e/modules.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ test.describe('Modules test', () => {
});

test('admin can activate module @pro @a', async () => {
await apiUtils.deactivateModules([payloads.moduleids.auction]);
await apiUtils.deactivateModules([payloads.moduleIds.auction]);
await admin.activateDeactivateModule(data.modules.modulesName.AuctionIntegration);
});

Expand Down
40 changes: 40 additions & 0 deletions tests/pw/utils/payloads.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2211,6 +2211,46 @@ export const payloads = {

// module

moduleIds: {
booking: 'booking',
colorSchemeCustomize: 'color_scheme_customizer',
deliveryTime: 'delivery_time',
elementor: 'elementor',
exportImport: 'export_import',
followStore: 'follow_store',
geolocation: 'geolocation',
germanized: 'germanized',
liveChat: 'live_chat',
liveSearch: 'live_search',
moip: 'moip',
paypalMarketplace: 'paypal_marketplace',
productAddon: 'product_addon',
productEnquiry: 'product_enquiry',
reportAbuse: 'report_abuse',
rma: 'rma',
sellerVacation: 'seller_vacation',
shipstation: 'shipstation',
auction: 'auction',
spmv: 'spmv',
storeReviews: 'store_reviews',
storeSupport: 'store_support',
stripe: 'stripe',
productAdvertising: 'product_advertising',
productSubscription: 'product_subscription',
vendorAnalytics: 'vendor_analytics',
vendorStaff: 'vendor_staff',
vsp: 'vsp',
vendorVerification: 'vendor_verification',
wholesale: 'wholesale',
rankMath: 'rank_math',
tableRateShipping: 'table_rate_shipping',
mangopay: 'mangopay',
orderMinMax: 'order_min_max',
sellerBadge: 'seller_badge',
stripeExpress: 'stripe_express',
requestForQuotation: 'request_for_quotation',
},

deactivateModule: {
module: ['booking'],
},
Expand Down

0 comments on commit 25e512b

Please sign in to comment.