Thank you for choosing The Marketplace to power your online store! This quick setup wizard will help you configure the basic settings. It’s completely optional and shouldn’t take longer than two minutes. Test wizard message.
', + setup_wizard_message_without_html: + 'Thank you for choosing The Marketplace to power your online store! This quick setup wizard will help you configure the basic settings. It’s completely optional and shouldn’t take longer than two minutes. Test wizard message.', + disable_welcome_wizard: 'off', + global_digital_mode: 'sell_both', + enable_shipstation_logging: 'off', + data_clear_on_uninstall: 'off', + + // vendor store settings + vendor_store_options: '', + seller_enable_terms_and_conditions: 'on', + store_products_per_page: '12', + enabled_address_on_reg: 'off', + enable_tc_on_reg: 'on', + enable_single_seller_mode: 'off', + store_category_type: 'multiple', // none, multiple + + // product page settings + product_page_options: '', + show_vendor_info: 'on', + enabled_more_products_tab: 'on', + }, + }, + }, }; diff --git a/tests/pw/utils/dbUtils.ts b/tests/pw/utils/dbUtils.ts index 7f851fd852..59948578e9 100644 --- a/tests/pw/utils/dbUtils.ts +++ b/tests/pw/utils/dbUtils.ts @@ -100,7 +100,7 @@ export const dbUtils = { }, // create refund - async createRefund(responseBody: any): Promise<[any, string]> { + async createRefundRequest(responseBody: any): Promise<[any, string]> { const refundId = (await this.getMaxId('id', 'dokan_refund')) + 1; const refund = { @@ -118,9 +118,28 @@ export const dbUtils = { method: 0, }; // console.log('refund data:', refund); - const queryInsert = `INSERT INTO ${dbPrefix}_dokan_refund VALUES ( '${refund.id}', '${refund.orderId}', '${refund.sellerId}', ${refund.refundAmount}, '${refund.refundReason}', '${refund.itemQtys}', '${refund.itemTotals}', '${refund.itemTaxTotals}', '${refund.restockItems}', '${refund.date}', '${refund.status}', '${refund.method}' );`; + const queryInsert = `INSERT INTO ${dbPrefix}_dokan_refund VALUES ( '${refund.id}', '${refund.orderId}', '${refund.sellerId}', ${refund.refundAmount}, + '${refund.refundReason}', '${refund.itemQtys}', '${refund.itemTotals}', '${refund.itemTaxTotals}', '${refund.restockItems}', '${refund.date}', + '${refund.status}', '${refund.method}' );`; const res = await dbUtils.dbQuery(queryInsert); // console.log(res); return [res, refundId]; }, + + // update cell + async updateCell(id: any, value: any): Promise