Skip to content

Commit 02d4fe1

Browse files
Add module tests (getdokan#2481)
* Add colors tests * Add auctions tests * Add delivery time & eu compliance tests * Add live chat tests * Add live chat tests * add live search tests * Add printful tests * Add rma tests * Add active modules to all modules test * Add vendor analytics test * Add vendor verification tests * add vendor subscription tests * Add vendor booking tests * Add vendor staff tests * Add vendor product import export tests * Add shipstation tests * Add wholesale tests * Update rma tests * Add store support tests * Add seller badge tests * Add report abuse tests * Add product subscription tests * Add product QA tests * Add payments test * Update auction tests * Update delivery time tests * Add geolocation tests * Add min max tests * Update printful tests * Add product addon tests * Update product advertising tests * Add product enquiry tests * Update product qa tests * Update product subscription tests * Update report abuse tests * Add rma tests * Update seller badge tests * Add seller vacation tests * add spmv tests * Update store support tests * Update vendor analytics test * Update vendor tools tests * Update vendor staff tests * Update vendor subscription test * Update verification tests * Update vendor bookings test * Update wholesale tests * Update wholesale test * Update shipstation tests * Update tests * Update npm packages * Update tests * Fix booking product tests * Update selectors * Removed an obsolete test * Fix failed tests * Revert removal of tests * Update store setup * Fix pr reviews * Fix a test issue * Update db data * Fix lint issues * Fix a booking test * Fix a rfq tests * Remove test.only * Fix pr reviews * Fix locator issue
1 parent 98d3958 commit 02d4fe1

File tree

83 files changed

+2862
-925
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

83 files changed

+2862
-925
lines changed

tests/pw/.env.example

Lines changed: 46 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,51 @@
11
# Plugin Configuration
2-
ADMIN=John_Doe [Admin username]
3-
ADMIN_PASSWORD=AdminPass123 [Password for the admin account]
4-
VENDOR=David_Johnson [Vendor username]
5-
VENDOR2=jhonathon_Smith [Vendor username]
6-
CUSTOMER=Michael_Williams [Customer username]
7-
USER_PASSWORD=Passw0rd123 [Password for all other users]
8-
DOKAN_PRO=true [Dokan pro active status]
9-
LICENSE_KEY=license_key [Dokan License key]
10-
GMAP=map_key [Google Maps API key]
11-
MAPBOX=mapbox_key [Mapbox Maps API key]
12-
TALKJS_APP_ID=talkjs_app_id [TalkJS App ID]
13-
TALKJS_APP_SECRET=talkjs_app_secret [TalkJS App Secret]
14-
VONAGE_API_KEY=vonage_key [Vonage SMS API key]
15-
VONAGE_API_SECRET=vonage_secret [Vonage SMS API secret]
16-
FB_APP_ID=facebook_app_id [Facebook App ID]
17-
FB_APP_SECRET=facebook_app_secret [Facebook App secret]
18-
PRINTFUL_APP_ID=printful_app_id [Printful App ID]
19-
PRINTFUL_APP_SECRET=printful_app_secret [Printful App secret]
20-
RECAPTCHA_SITE_KEY=recaptcha_site_key [reCAPTCHA site key]
21-
RECAPTCHA_SECRET_KEY=recaptcha_secret_key [reCAPTCHA secret key]
2+
ADMIN=John_Doe [Admin username]
3+
ADMIN_PASSWORD=AdminPass123 [Password for the admin account]
4+
VENDOR=David_Johnson [Vendor username]
5+
VENDOR2=Jhonathon_Smith [Vendor username]
6+
CUSTOMER=Michael_Williams [Customer username]
7+
CUSTOMER2=Robert_Thomas [Customer username]
8+
USER_PASSWORD=Passw0rd123 [Password for all other users]
9+
DOKAN_PRO=true [Dokan pro active status]
10+
LICENSE_KEY=license_key [Dokan License key]
11+
GMAP=map_key [Google Maps API key]
12+
MAPBOX=mapbox_key [Mapbox Maps API key]
13+
TALKJS_APP_ID=talkjs_app_id [TalkJS App ID]
14+
TALKJS_APP_SECRET=talkjs_app_secret [TalkJS App Secret]
15+
VONAGE_API_KEY=vonage_key [Vonage SMS API key]
16+
VONAGE_API_SECRET=vonage_secret [Vonage SMS API secret]
17+
FB_APP_ID=facebook_app_id [Facebook App ID]
18+
FB_APP_SECRET=facebook_app_secret [Facebook App secret]
19+
PRINTFUL_APP_ID=printful_app_id [Printful App ID]
20+
PRINTFUL_APP_SECRET=printful_app_secret [Printful App secret]
21+
RECAPTCHA_SITE_KEY=recaptcha_site_key [reCAPTCHA site key]
22+
RECAPTCHA_SECRET_KEY=recaptcha_secret_key [reCAPTCHA secret key]
23+
TEST_PUBLISH_KEY_STRIPE=test_publish_key_stripe [Stripe publish key]
24+
TEST_SECRET_KEY_STRIPE=test_secret_key_stripe [Stripe secret key]
25+
TEST_CLIENT_ID_STRIPE=test_client_id_stripe [Stripe client ID]
26+
SANDBOX_CLIENT_ID_MANGOPAY=sandbox_client_id_mangopay [Mangopay sandbox client ID]
27+
SANDBOX_API_KEY_MANGOPAY=sandbox_api_key_mangopay [Mangopay sandbox API key]
28+
TEST_KEY_ID_RAZORPAY=test_key_id_razorpay [Razorpay key ID]
29+
TEST_KEY_SECRET_RAZORPAY=test_key_secret_razorpay [Razorpay key secret]
30+
TEST_PUBLISH_KEY_STRIPE_EXPRESS=test_publish_key_stripe_express [Stripe Express publish key]
31+
TEST_SECRET_KEY_STRIPE_EXPRESS=test_secret_key_stripe_express [Stripe Express secret key]
32+
TEST_MERCHANT_ID_PAYPAL_MARKETPLACE=test_merchant_id [PayPal Merchant ID]
33+
TEST_CLIENT_ID_PAYPAL_MARKETPLACE=test_client_id_paypal_marketplace [PayPal Marketplace Client ID]
34+
TEST_CLIENT_SECRET_PAYPAL_MARKETPLACE=test_client_secret_paypal_marketplace [PayPal Marketplace Client Secret]
2235

2336
# Playwright Configuration
24-
BASE_URL=https://example.com [Base URL of the test site]
25-
CI=true [CI/CD environment indicator]
26-
SLOWMO=10 [Slow down test execution by provided seconds] [optional]
27-
NO_SETUP=true [Whether not to run setup tests before actual tests] [optional]
28-
LOCAL=true [Local testing indicator] [optional]
29-
NON_HEADLESS=true [browser mode indicator] [optional]
30-
SITE_PATH=/users/rk/sites/dokan [Path of the local test site][only for local testing]
37+
BASE_URL=https://example.com [Base URL of the test site]
38+
CI=true [CI/CD environment indicator]
39+
SLOWMO=10 [Slow down test execution by provided seconds] [optional]
40+
NO_SETUP=true [Whether not to run setup tests before actual tests] [optional]
41+
LOCAL=true [Local testing indicator] [optional]
42+
NON_HEADLESS=true [browser mode indicator] [optional]
43+
SITE_PATH=/users/rk/sites/dokan [Path of the local test site][only for local testing]
3144

3245
# Database Configuration
33-
DB_HOST_NAME=localhost [Database server hostname or IP address]
34-
DB_USER_NAME=dbuser [Database username]
35-
DB_USER_PASSWORD=dbpassword [Database user password]
36-
DATABASE=mywpdb [Database name]
37-
DB_PORT=3306 [Database connection port]
38-
DB_PREFIX=wp [Prefix for database tables]
46+
DB_HOST_NAME=localhost [Database server hostname or IP address]
47+
DB_USER_NAME=dbuser [Database username]
48+
DB_USER_PASSWORD=dbpassword [Database user password]
49+
DATABASE=mywpdb [Database name]
50+
DB_PORT=3306 [Database connection port]
51+
DB_PREFIX=wp [Prefix for database tables]

tests/pw/README.MD

Lines changed: 46 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -121,43 +121,56 @@ Create .env file according to .env.example file
121121

122122
```
123123
# Plugin Configuration
124-
ADMIN=John_Doe [Admin username]
125-
ADMIN_PASSWORD=AdminPass123 [Password for the admin account]
126-
VENDOR=David_Johnson [Vendor username]
127-
VENDOR2=Johnathon_Smith [Vendor username]
128-
CUSTOMER=Michael_Williams [Customer username]
129-
USER_PASSWORD=Passw0rd123 [Password for all other users]
130-
DOKAN_PRO=true [Dokan pro active status]
131-
LICENSE_KEY=license_key [Dokan License key]
132-
GMAP=map_key [Google Maps API key]
133-
MAPBOX=mapbox_key [Mapbox Maps API key]
134-
TALKJS_APP_ID=talkjs_app_id [TalkJS App ID]
135-
TALKJS_APP_SECRET=talkjs_app_secret [TalkJS App Secret]
136-
VONAGE_API_KEY=vonage_key [Vonage SMS API key]
137-
VONAGE_API_SECRET=vonage_secret [Vonage SMS API secret]
138-
FB_APP_ID=facebook_app_id [Facebook App ID]
139-
FB_APP_SECRET=facebook_app_secret [Facebook App secret]
140-
PRINTFUL_APP_ID=printful_app_id [Printful App ID]
141-
PRINTFUL_APP_SECRET=printful_app_secret [Printful App secret]
142-
RECAPTCHA_SITE_KEY=recaptcha_site_key [reCAPTCHA site key]
143-
RECAPTCHA_SECRET_KEY=recaptcha_secret_key [reCAPTCHA secret key]
124+
ADMIN=John_Doe [Admin username]
125+
ADMIN_PASSWORD=AdminPass123 [Password for the admin account]
126+
VENDOR=David_Johnson [Vendor username]
127+
VENDOR2=Jhonathon_Smith [Vendor username]
128+
CUSTOMER=Michael_Williams [Customer username]
129+
CUSTOMER2=Robert_Thomas [Customer username]
130+
USER_PASSWORD=Passw0rd123 [Password for all other users]
131+
DOKAN_PRO=true [Dokan pro active status]
132+
LICENSE_KEY=license_key [Dokan License key]
133+
GMAP=map_key [Google Maps API key]
134+
MAPBOX=mapbox_key [Mapbox Maps API key]
135+
TALKJS_APP_ID=talkjs_app_id [TalkJS App ID]
136+
TALKJS_APP_SECRET=talkjs_app_secret [TalkJS App Secret]
137+
VONAGE_API_KEY=vonage_key [Vonage SMS API key]
138+
VONAGE_API_SECRET=vonage_secret [Vonage SMS API secret]
139+
FB_APP_ID=facebook_app_id [Facebook App ID]
140+
FB_APP_SECRET=facebook_app_secret [Facebook App secret]
141+
PRINTFUL_APP_ID=printful_app_id [Printful App ID]
142+
PRINTFUL_APP_SECRET=printful_app_secret [Printful App secret]
143+
RECAPTCHA_SITE_KEY=recaptcha_site_key [reCAPTCHA site key]
144+
RECAPTCHA_SECRET_KEY=recaptcha_secret_key [reCAPTCHA secret key]
145+
TEST_PUBLISH_KEY_STRIPE=test_publish_key_stripe [Stripe publish key]
146+
TEST_SECRET_KEY_STRIPE=test_secret_key_stripe [Stripe secret key]
147+
TEST_CLIENT_ID_STRIPE=test_client_id_stripe [Stripe client ID]
148+
SANDBOX_CLIENT_ID_MANGOPAY=sandbox_client_id_mangopay [Mangopay sandbox client ID]
149+
SANDBOX_API_KEY_MANGOPAY=sandbox_api_key_mangopay [Mangopay sandbox API key]
150+
TEST_KEY_ID_RAZORPAY=test_key_id_razorpay [Razorpay key ID]
151+
TEST_KEY_SECRET_RAZORPAY=test_key_secret_razorpay [Razorpay key secret]
152+
TEST_PUBLISH_KEY_STRIPE_EXPRESS=test_publish_key_stripe_express [Stripe Express publish key]
153+
TEST_SECRET_KEY_STRIPE_EXPRESS=test_secret_key_stripe_express [Stripe Express secret key]
154+
TEST_MERCHANT_ID_PAYPAL_MARKETPLACE=test_merchant_id [PayPal Merchant ID]
155+
TEST_CLIENT_ID_PAYPAL_MARKETPLACE=test_client_id_paypal_marketplace [PayPal Marketplace Client ID]
156+
TEST_CLIENT_SECRET_PAYPAL_MARKETPLACE=test_client_secret_paypal_marketplace [PayPal Marketplace Client Secret]
144157
145158
# Playwright Configuration
146-
BASE_URL=https://example.com [Base URL of the test site]
147-
CI=true [CI/CD environment indicator]
148-
SLOWMO=10 [Slow down test execution by provided seconds] [optional]
149-
NO_SETUP=true [Whether not to run setup tests before actual tests] [optional]
150-
LOCAL=true [Local testing indicator] [optional]
151-
NON_HEADLESS=true [browser mode indicator] [optional]
152-
SITE_PATH=/users/rk/sites/dokan [Path of the local test site][only for local testing]
159+
BASE_URL=https://example.com [Base URL of the test site]
160+
CI=true [CI/CD environment indicator]
161+
SLOWMO=10 [Slow down test execution by provided seconds] [optional]
162+
NO_SETUP=true [Whether not to run setup tests before actual tests] [optional]
163+
LOCAL=true [Local testing indicator] [optional]
164+
NON_HEADLESS=true [browser mode indicator] [optional]
165+
SITE_PATH=/users/rk/sites/dokan [Path of the local test site][only for local testing]
153166
154167
# Database Configuration
155-
DB_HOST_NAME=localhost [Database server hostname or IP address]
156-
DB_USER_NAME=dbuser [Database username]
157-
DB_USER_PASSWORD=dbpassword [Database user password]
158-
DATABASE=mywpdb [Database name]
159-
DB_PORT=3306 [Database connection port]
160-
DB_PREFIX=wp [Prefix for database tables]
168+
DB_HOST_NAME=localhost [Database server hostname or IP address]
169+
DB_USER_NAME=dbuser [Database username]
170+
DB_USER_PASSWORD=dbpassword [Database user password]
171+
DATABASE=mywpdb [Database name]
172+
DB_PORT=3306 [Database connection port]
173+
DB_PREFIX=wp
161174
```
162175

163176
<br/>

0 commit comments

Comments
 (0)