Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add module tests #2481

Merged
merged 70 commits into from
Dec 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
70 commits
Select commit Hold shift + click to select a range
c747a69
Add colors tests
shashwatahalder01 Nov 30, 2024
b78bb34
Add auctions tests
shashwatahalder01 Dec 1, 2024
18e2c22
Add delivery time & eu compliance tests
shashwatahalder01 Dec 1, 2024
ccdd038
Add live chat tests
shashwatahalder01 Dec 1, 2024
b5b78d4
Add live chat tests
shashwatahalder01 Dec 1, 2024
e8772d6
add live search tests
shashwatahalder01 Dec 1, 2024
0a2202d
Add printful tests
shashwatahalder01 Dec 1, 2024
14f87e5
Add rma tests
shashwatahalder01 Dec 1, 2024
0896837
Add active modules to all modules test
shashwatahalder01 Dec 1, 2024
caa1c08
Add vendor analytics test
shashwatahalder01 Dec 1, 2024
c24e0f0
Add vendor verification tests
shashwatahalder01 Dec 1, 2024
04a4f07
add vendor subscription tests
shashwatahalder01 Dec 1, 2024
45fadd0
Add vendor booking tests
shashwatahalder01 Dec 1, 2024
7b45250
Add vendor staff tests
shashwatahalder01 Dec 1, 2024
c9bdf48
Add vendor product import export tests
shashwatahalder01 Dec 1, 2024
ba6ab05
Add shipstation tests
shashwatahalder01 Dec 2, 2024
f44b22e
Add wholesale tests
shashwatahalder01 Dec 2, 2024
fb7ec0a
Update rma tests
shashwatahalder01 Dec 2, 2024
a2c4fc5
Add store support tests
shashwatahalder01 Dec 2, 2024
92d302c
Add seller badge tests
shashwatahalder01 Dec 2, 2024
ba7190b
Add report abuse tests
shashwatahalder01 Dec 2, 2024
218b1c7
Add product subscription tests
shashwatahalder01 Dec 2, 2024
efe9545
Add product QA tests
shashwatahalder01 Dec 2, 2024
9f12bf9
Merge branch 'develop' into modulestest
shashwatahalder01 Dec 7, 2024
fe9cb0c
Add payments test
shashwatahalder01 Dec 8, 2024
5b20b60
Update auction tests
shashwatahalder01 Dec 8, 2024
e00f697
Update delivery time tests
shashwatahalder01 Dec 8, 2024
b7e5113
Add geolocation tests
shashwatahalder01 Dec 8, 2024
f806d42
Add min max tests
shashwatahalder01 Dec 8, 2024
5300f10
Update printful tests
shashwatahalder01 Dec 8, 2024
0e2bba4
Add product addon tests
shashwatahalder01 Dec 8, 2024
908190b
Update product advertising tests
shashwatahalder01 Dec 8, 2024
192dcb5
Add product enquiry tests
shashwatahalder01 Dec 8, 2024
334728c
Update product qa tests
shashwatahalder01 Dec 8, 2024
7bded75
Update product subscription tests
shashwatahalder01 Dec 8, 2024
abf6b69
Update report abuse tests
shashwatahalder01 Dec 8, 2024
3e0cffc
Add rma tests
shashwatahalder01 Dec 8, 2024
1dee04f
Update seller badge tests
shashwatahalder01 Dec 8, 2024
5076890
Add seller vacation tests
shashwatahalder01 Dec 8, 2024
97ea70c
add spmv tests
shashwatahalder01 Dec 8, 2024
72be4fb
Update store support tests
shashwatahalder01 Dec 8, 2024
657720c
Update vendor analytics test
shashwatahalder01 Dec 8, 2024
23dadc1
Update vendor tools tests
shashwatahalder01 Dec 8, 2024
b128cfa
Update vendor staff tests
shashwatahalder01 Dec 8, 2024
7e9e7c3
Update vendor subscription test
shashwatahalder01 Dec 8, 2024
20df673
Update verification tests
shashwatahalder01 Dec 8, 2024
0128b6b
Update vendor bookings test
shashwatahalder01 Dec 8, 2024
7d025fd
Update wholesale tests
shashwatahalder01 Dec 8, 2024
cffd4eb
Update wholesale test
shashwatahalder01 Dec 8, 2024
f30b053
Update shipstation tests
shashwatahalder01 Dec 8, 2024
363226e
Update tests
shashwatahalder01 Dec 8, 2024
7a14bab
Update npm packages
shashwatahalder01 Dec 9, 2024
cb32600
Update tests
shashwatahalder01 Dec 11, 2024
963008c
Fix booking product tests
shashwatahalder01 Dec 11, 2024
39a938c
Update selectors
shashwatahalder01 Dec 11, 2024
8f3289e
Removed an obsolete test
shashwatahalder01 Dec 11, 2024
418bfcd
Merge branch 'develop' into modulestest
shashwatahalder01 Dec 11, 2024
66c5d03
Fix failed tests
shashwatahalder01 Dec 11, 2024
0b612bf
Revert removal of tests
shashwatahalder01 Dec 11, 2024
0778aa6
Merge branch 'develop' into modulestest
shashwatahalder01 Dec 12, 2024
fa63b40
Update store setup
shashwatahalder01 Dec 12, 2024
24a9537
Fix pr reviews
shashwatahalder01 Dec 13, 2024
08824f8
Fix a test issue
shashwatahalder01 Dec 13, 2024
d6983b3
Update db data
shashwatahalder01 Dec 13, 2024
b49a074
Fix lint issues
shashwatahalder01 Dec 13, 2024
be8171d
Fix a booking test
shashwatahalder01 Dec 13, 2024
bc69b6a
Fix a rfq tests
shashwatahalder01 Dec 13, 2024
8091d4a
Remove test.only
shashwatahalder01 Dec 13, 2024
9c2a79f
Fix pr reviews
shashwatahalder01 Dec 13, 2024
cee6c5b
Fix locator issue
shashwatahalder01 Dec 13, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
79 changes: 46 additions & 33 deletions tests/pw/.env.example
Original file line number Diff line number Diff line change
@@ -1,38 +1,51 @@
# Plugin Configuration
ADMIN=John_Doe [Admin username]
ADMIN_PASSWORD=AdminPass123 [Password for the admin account]
VENDOR=David_Johnson [Vendor username]
VENDOR2=jhonathon_Smith [Vendor username]
CUSTOMER=Michael_Williams [Customer username]
USER_PASSWORD=Passw0rd123 [Password for all other users]
DOKAN_PRO=true [Dokan pro active status]
LICENSE_KEY=license_key [Dokan License key]
GMAP=map_key [Google Maps API key]
MAPBOX=mapbox_key [Mapbox Maps API key]
TALKJS_APP_ID=talkjs_app_id [TalkJS App ID]
TALKJS_APP_SECRET=talkjs_app_secret [TalkJS App Secret]
VONAGE_API_KEY=vonage_key [Vonage SMS API key]
VONAGE_API_SECRET=vonage_secret [Vonage SMS API secret]
FB_APP_ID=facebook_app_id [Facebook App ID]
FB_APP_SECRET=facebook_app_secret [Facebook App secret]
PRINTFUL_APP_ID=printful_app_id [Printful App ID]
PRINTFUL_APP_SECRET=printful_app_secret [Printful App secret]
RECAPTCHA_SITE_KEY=recaptcha_site_key [reCAPTCHA site key]
RECAPTCHA_SECRET_KEY=recaptcha_secret_key [reCAPTCHA secret key]
ADMIN=John_Doe [Admin username]
ADMIN_PASSWORD=AdminPass123 [Password for the admin account]
VENDOR=David_Johnson [Vendor username]
VENDOR2=Jhonathon_Smith [Vendor username]
CUSTOMER=Michael_Williams [Customer username]
CUSTOMER2=Robert_Thomas [Customer username]
USER_PASSWORD=Passw0rd123 [Password for all other users]
DOKAN_PRO=true [Dokan pro active status]
LICENSE_KEY=license_key [Dokan License key]
GMAP=map_key [Google Maps API key]
MAPBOX=mapbox_key [Mapbox Maps API key]
TALKJS_APP_ID=talkjs_app_id [TalkJS App ID]
TALKJS_APP_SECRET=talkjs_app_secret [TalkJS App Secret]
VONAGE_API_KEY=vonage_key [Vonage SMS API key]
VONAGE_API_SECRET=vonage_secret [Vonage SMS API secret]
FB_APP_ID=facebook_app_id [Facebook App ID]
FB_APP_SECRET=facebook_app_secret [Facebook App secret]
PRINTFUL_APP_ID=printful_app_id [Printful App ID]
PRINTFUL_APP_SECRET=printful_app_secret [Printful App secret]
RECAPTCHA_SITE_KEY=recaptcha_site_key [reCAPTCHA site key]
RECAPTCHA_SECRET_KEY=recaptcha_secret_key [reCAPTCHA secret key]
TEST_PUBLISH_KEY_STRIPE=test_publish_key_stripe [Stripe publish key]
TEST_SECRET_KEY_STRIPE=test_secret_key_stripe [Stripe secret key]
TEST_CLIENT_ID_STRIPE=test_client_id_stripe [Stripe client ID]
SANDBOX_CLIENT_ID_MANGOPAY=sandbox_client_id_mangopay [Mangopay sandbox client ID]
SANDBOX_API_KEY_MANGOPAY=sandbox_api_key_mangopay [Mangopay sandbox API key]
TEST_KEY_ID_RAZORPAY=test_key_id_razorpay [Razorpay key ID]
TEST_KEY_SECRET_RAZORPAY=test_key_secret_razorpay [Razorpay key secret]
TEST_PUBLISH_KEY_STRIPE_EXPRESS=test_publish_key_stripe_express [Stripe Express publish key]
TEST_SECRET_KEY_STRIPE_EXPRESS=test_secret_key_stripe_express [Stripe Express secret key]
TEST_MERCHANT_ID_PAYPAL_MARKETPLACE=test_merchant_id [PayPal Merchant ID]
TEST_CLIENT_ID_PAYPAL_MARKETPLACE=test_client_id_paypal_marketplace [PayPal Marketplace Client ID]
TEST_CLIENT_SECRET_PAYPAL_MARKETPLACE=test_client_secret_paypal_marketplace [PayPal Marketplace Client Secret]

# Playwright Configuration
BASE_URL=https://example.com [Base URL of the test site]
CI=true [CI/CD environment indicator]
SLOWMO=10 [Slow down test execution by provided seconds] [optional]
NO_SETUP=true [Whether not to run setup tests before actual tests] [optional]
LOCAL=true [Local testing indicator] [optional]
NON_HEADLESS=true [browser mode indicator] [optional]
SITE_PATH=/users/rk/sites/dokan [Path of the local test site][only for local testing]
BASE_URL=https://example.com [Base URL of the test site]
CI=true [CI/CD environment indicator]
SLOWMO=10 [Slow down test execution by provided seconds] [optional]
NO_SETUP=true [Whether not to run setup tests before actual tests] [optional]
LOCAL=true [Local testing indicator] [optional]
NON_HEADLESS=true [browser mode indicator] [optional]
SITE_PATH=/users/rk/sites/dokan [Path of the local test site][only for local testing]

# Database Configuration
DB_HOST_NAME=localhost [Database server hostname or IP address]
DB_USER_NAME=dbuser [Database username]
DB_USER_PASSWORD=dbpassword [Database user password]
DATABASE=mywpdb [Database name]
DB_PORT=3306 [Database connection port]
DB_PREFIX=wp [Prefix for database tables]
DB_HOST_NAME=localhost [Database server hostname or IP address]
DB_USER_NAME=dbuser [Database username]
DB_USER_PASSWORD=dbpassword [Database user password]
DATABASE=mywpdb [Database name]
DB_PORT=3306 [Database connection port]
DB_PREFIX=wp [Prefix for database tables]
79 changes: 46 additions & 33 deletions tests/pw/README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -121,43 +121,56 @@ Create .env file according to .env.example file

```
# Plugin Configuration
ADMIN=John_Doe [Admin username]
ADMIN_PASSWORD=AdminPass123 [Password for the admin account]
VENDOR=David_Johnson [Vendor username]
VENDOR2=Johnathon_Smith [Vendor username]
CUSTOMER=Michael_Williams [Customer username]
USER_PASSWORD=Passw0rd123 [Password for all other users]
DOKAN_PRO=true [Dokan pro active status]
LICENSE_KEY=license_key [Dokan License key]
GMAP=map_key [Google Maps API key]
MAPBOX=mapbox_key [Mapbox Maps API key]
TALKJS_APP_ID=talkjs_app_id [TalkJS App ID]
TALKJS_APP_SECRET=talkjs_app_secret [TalkJS App Secret]
VONAGE_API_KEY=vonage_key [Vonage SMS API key]
VONAGE_API_SECRET=vonage_secret [Vonage SMS API secret]
FB_APP_ID=facebook_app_id [Facebook App ID]
FB_APP_SECRET=facebook_app_secret [Facebook App secret]
PRINTFUL_APP_ID=printful_app_id [Printful App ID]
PRINTFUL_APP_SECRET=printful_app_secret [Printful App secret]
RECAPTCHA_SITE_KEY=recaptcha_site_key [reCAPTCHA site key]
RECAPTCHA_SECRET_KEY=recaptcha_secret_key [reCAPTCHA secret key]
ADMIN=John_Doe [Admin username]
ADMIN_PASSWORD=AdminPass123 [Password for the admin account]
VENDOR=David_Johnson [Vendor username]
VENDOR2=Jhonathon_Smith [Vendor username]
CUSTOMER=Michael_Williams [Customer username]
CUSTOMER2=Robert_Thomas [Customer username]
USER_PASSWORD=Passw0rd123 [Password for all other users]
DOKAN_PRO=true [Dokan pro active status]
LICENSE_KEY=license_key [Dokan License key]
GMAP=map_key [Google Maps API key]
MAPBOX=mapbox_key [Mapbox Maps API key]
TALKJS_APP_ID=talkjs_app_id [TalkJS App ID]
TALKJS_APP_SECRET=talkjs_app_secret [TalkJS App Secret]
VONAGE_API_KEY=vonage_key [Vonage SMS API key]
VONAGE_API_SECRET=vonage_secret [Vonage SMS API secret]
FB_APP_ID=facebook_app_id [Facebook App ID]
FB_APP_SECRET=facebook_app_secret [Facebook App secret]
PRINTFUL_APP_ID=printful_app_id [Printful App ID]
PRINTFUL_APP_SECRET=printful_app_secret [Printful App secret]
RECAPTCHA_SITE_KEY=recaptcha_site_key [reCAPTCHA site key]
RECAPTCHA_SECRET_KEY=recaptcha_secret_key [reCAPTCHA secret key]
TEST_PUBLISH_KEY_STRIPE=test_publish_key_stripe [Stripe publish key]
TEST_SECRET_KEY_STRIPE=test_secret_key_stripe [Stripe secret key]
TEST_CLIENT_ID_STRIPE=test_client_id_stripe [Stripe client ID]
SANDBOX_CLIENT_ID_MANGOPAY=sandbox_client_id_mangopay [Mangopay sandbox client ID]
SANDBOX_API_KEY_MANGOPAY=sandbox_api_key_mangopay [Mangopay sandbox API key]
TEST_KEY_ID_RAZORPAY=test_key_id_razorpay [Razorpay key ID]
TEST_KEY_SECRET_RAZORPAY=test_key_secret_razorpay [Razorpay key secret]
TEST_PUBLISH_KEY_STRIPE_EXPRESS=test_publish_key_stripe_express [Stripe Express publish key]
TEST_SECRET_KEY_STRIPE_EXPRESS=test_secret_key_stripe_express [Stripe Express secret key]
TEST_MERCHANT_ID_PAYPAL_MARKETPLACE=test_merchant_id [PayPal Merchant ID]
TEST_CLIENT_ID_PAYPAL_MARKETPLACE=test_client_id_paypal_marketplace [PayPal Marketplace Client ID]
TEST_CLIENT_SECRET_PAYPAL_MARKETPLACE=test_client_secret_paypal_marketplace [PayPal Marketplace Client Secret]

# Playwright Configuration
BASE_URL=https://example.com [Base URL of the test site]
CI=true [CI/CD environment indicator]
SLOWMO=10 [Slow down test execution by provided seconds] [optional]
NO_SETUP=true [Whether not to run setup tests before actual tests] [optional]
LOCAL=true [Local testing indicator] [optional]
NON_HEADLESS=true [browser mode indicator] [optional]
SITE_PATH=/users/rk/sites/dokan [Path of the local test site][only for local testing]
BASE_URL=https://example.com [Base URL of the test site]
CI=true [CI/CD environment indicator]
SLOWMO=10 [Slow down test execution by provided seconds] [optional]
NO_SETUP=true [Whether not to run setup tests before actual tests] [optional]
LOCAL=true [Local testing indicator] [optional]
NON_HEADLESS=true [browser mode indicator] [optional]
SITE_PATH=/users/rk/sites/dokan [Path of the local test site][only for local testing]

# Database Configuration
DB_HOST_NAME=localhost [Database server hostname or IP address]
DB_USER_NAME=dbuser [Database username]
DB_USER_PASSWORD=dbpassword [Database user password]
DATABASE=mywpdb [Database name]
DB_PORT=3306 [Database connection port]
DB_PREFIX=wp [Prefix for database tables]
DB_HOST_NAME=localhost [Database server hostname or IP address]
DB_USER_NAME=dbuser [Database username]
DB_USER_PASSWORD=dbpassword [Database user password]
DATABASE=mywpdb [Database name]
DB_PORT=3306 [Database connection port]
DB_PREFIX=wp
```

<br/>
Expand Down
Loading
Loading