Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
67 commits
Select commit Hold shift + click to select a range
e1ebe40
fix: followstore test cases
dev-shahed Aug 21, 2025
1247b48
refactor: enhance Follow Store module tests with detailed step descri…
dev-shahed Aug 21, 2025
60bc32c
refactor: enhance abuse reports and vendor reports functionality
dev-shahed Aug 22, 2025
4af5e0c
fix: Menu activation test failed for WooCommerce Subscriptions missin…
MdAsifHossainNadim Aug 28, 2025
bd1ac86
fix: Shortcode templates fields not exists issue. (#2874)
MdAsifHossainNadim Aug 28, 2025
6b0bd01
fix: Update vendor verification methods visibility tests for setup wi…
MdAsifHossainNadim Aug 28, 2025
f0b5f2e
fix: Coupon creation execution by ensuring proper load state and vali…
MdAsifHossainNadim Aug 28, 2025
9081aad
fix: Min-max quantity interaction test with invalid data. (#2871)
MdAsifHossainNadim Aug 28, 2025
0f95bd3
follow store tests fixes
dev-shahed Sep 12, 2025
0c83400
fix: update env:setup script in package.json to include NO_SETUP flag…
shohan0120 Sep 15, 2025
aec2802
Merge pull request #2906 from getdokan/fix/reports-spec-cases
shohan0120 Sep 15, 2025
45daeab
Merge pull request #2907 from getdokan/package/json-env-setup-fix
shohan0120 Sep 15, 2025
585139a
refactor: update admin notice page and selectors for improved visibil…
shohan0120 Sep 15, 2025
11b2412
Merge pull request #2909 from getdokan/fix/e2e-admin-notice
shohan0120 Sep 15, 2025
82de543
test: skip Product AI test suite and add tag to product title test
shohan0120 Sep 15, 2025
3d52983
Merge pull request #2910 from getdokan/ai/specFile-fix
shohan0120 Sep 15, 2025
51ba1e9
Merge branch 'all/e2e-fix' into fix/follow-store-test
shohan0120 Sep 15, 2025
b35094c
Merge pull request #2905 from getdokan/fix/follow-store-test
shohan0120 Sep 15, 2025
03bd890
refactor: restructure CouponsPage class and enhance coupon management…
shohan0120 Sep 16, 2025
c3c3eae
Merge branch 'all/e2e-fix' into couponsE2E/refacotr-fix
shohan0120 Sep 16, 2025
291474a
test: enhance end-to-end coupon management tests with improved struct…
shohan0120 Sep 17, 2025
3623416
refactor: enhance CouponsPage class and streamline e2e coupon tests
shohan0120 Sep 17, 2025
20509b4
Merge pull request #2911 from getdokan/couponsE2E/refactor-fix
shohan0120 Sep 17, 2025
7b912b5
feat: enhance environment variable typing in testData.ts for better t…
shohan0120 Sep 17, 2025
57f9bc7
Merge pull request #2912 from getdokan/testDataE2e/fix
shohan0120 Sep 17, 2025
1151187
refactor: update selectors in the test page for better organization
shohan0120 Sep 17, 2025
bcf987d
chore: comment out background color check in MenuManagerPage test
shohan0120 Sep 17, 2025
ed8cb75
chore: comment out upgradePlan selector in selectors.ts for clarity
shohan0120 Sep 17, 2025
dcfdcbc
chore: skip Printful module functionality test for stability
shohan0120 Sep 17, 2025
0914e00
chore: skip Printful module functionality test due to setup requirements
shohan0120 Sep 17, 2025
545de8e
develop merged
shohan0120 Oct 13, 2025
ee00ff5
Update composer.lock before merging develop
shohan0120 Oct 13, 2025
7afb8c7
Merge develop into all/e2e-fix
shohan0120 Oct 13, 2025
841127f
Refactor CouponsPage and introduce newCouponsPage for improved coupon…
shohan0120 Oct 13, 2025
9f65256
Enhance BasePage with selector wait functionality, update addNewProdu…
shohan0120 Oct 13, 2025
a20e0a4
Add test data structure to ManualOrderPage, implement vendor-specific…
shohan0120 Oct 15, 2025
f0e6005
old Coupons removed
shohan0120 Oct 15, 2025
0192aaa
Enhance feature-map.yml with new admin and vendor capabilities, inclu…
shohan0120 Oct 15, 2025
845cf2d
Refactor AdminDashboardPage to improve dashboard navigation and visib…
shohan0120 Oct 17, 2025
3f96c1f
Refactor AdminDashboardPage to modularize visibility checks into dedi…
shohan0120 Oct 17, 2025
f3f85b3
Merge remote-tracking branch 'origin/develop' into all/e2e-fix
shohan0120 Oct 17, 2025
b68138e
Enhance navigation methods in BasePage and ProductsPage for improved …
shohan0120 Oct 21, 2025
ac7c65e
Skip the 'admin can view get help dropdown' test in the Dokan help te…
shohan0120 Oct 21, 2025
19d6664
Enhance MenuManagerPage methods to accept vendor context for improved…
shohan0120 Oct 21, 2025
474b374
Update test data to reflect changes in module statistics, increasing …
shohan0120 Oct 21, 2025
c0c6d7c
Refactor shipment addition process in OrdersPage to utilize new locat…
shohan0120 Oct 22, 2025
097b7ed
Add checks for existing shipments and create shipment button in Order…
shohan0120 Oct 22, 2025
2177615
Merge remote-tracking branch 'origin/develop' into all/e2e-fix
shohan0120 Oct 29, 2025
475d97d
fix: ensure network idle state before adding new addon in ProductAddo…
shohan0120 Oct 29, 2025
ed5ef54
refactor: enhance clickAndWaitForResponse methods to ensure element v…
shohan0120 Oct 29, 2025
901b2d9
fix: update productDetails path to reflect new shop structure
shohan0120 Oct 29, 2025
653f169
fix: update vendorDeleteQuestion method to use goIfNotThere for navig…
shohan0120 Oct 29, 2025
e791155
fix: skip Product Reviews test due to unimplemented new UI
shohan0120 Oct 29, 2025
682e5ca
fix: update Product Reviews test description to clarify rewrite requi…
shohan0120 Oct 29, 2025
ad6c18a
fix: improve product visibility checks and ensure element attachment …
shohan0120 Oct 31, 2025
3375469
fix: enhance product publishing process with improved success message…
shohan0120 Oct 31, 2025
2514688
fix: comment out vendor auction tags functionality and skip related t…
shohan0120 Nov 3, 2025
53745a9
fix: skip Booking Product test for faster execution due to optimizati…
shohan0120 Nov 3, 2025
6b4f8e1
fix: skip vendor delivery time tests for faster execution and to addr…
shohan0120 Nov 3, 2025
3f01868
fix: skip Vendor RMA test due to need for complete rewrite of return …
shohan0120 Nov 3, 2025
32519a8
fix: skip Vendor Settings test due to flakiness and need for complete…
shohan0120 Nov 3, 2025
36b81d1
fix: skip vendor shipping, staff, wholesale, and withdraw tests due t…
shohan0120 Nov 3, 2025
538d53f
fix: enhance user setup process by validating sellerId before additio…
dev-shahed Nov 3, 2025
d1e3ed5
chore: add test-results directory to .gitignore to prevent clutter in…
shohan0120 Nov 3, 2025
945e63a
docs: add E2E Testing Guide with setup instructions and configurations
shohan0120 Nov 3, 2025
454c5e9
fix: update e2e test command to skip setup for e2e tests and skip pro…
shohan0120 Nov 4, 2025
9f2130a
Merge branch 'develop' into all/e2e-fix
shohan0120 Nov 13, 2025
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ config.json
phpcs-report.txt
/phpcs.xml
.phpunit.result.cache
test-results/

#unwanted webpack files
/assets/js/
Expand Down
2 changes: 1 addition & 1 deletion tests/pw/e2e.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export default defineConfig({
// viewport: { width: 1420, height: 900 }, // default 1280x720
/* whether to slow down test execution by provided seconds */
launchOptions: {
slowMo: (SLOWMO ?? 0) * 1000,
slowMo: Number(SLOWMO ?? 0) * 1000,
// devtools: true,
},
},
Expand Down
126 changes: 126 additions & 0 deletions tests/pw/e2eReadme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,126 @@
# E2E Testing Guide

## Prerequisites

### Clone Repositories
Clone both Dokan Lite and Dokan Pro repositories.

### Environment Configuration

Create a `.env` file in the `tests/pw` directory with the following variables:

```env
# User Credentials
ADMIN=
ADMIN_PASSWORD=
VENDOR=
VENDOR2=
CUSTOMER=
CUSTOMER2=
USER_PASSWORD=

# API Keys
GMAP=
LICENSE_KEY=

# Playwright Configuration
#SITE_PATH=
BASE_URL=
HEADLESS=true
LOCAL=true
DOKAN_PRO=true
NO_SETUP=true

# Database Configuration
DB_HOST_NAME=
DB_USER_NAME=
DB_USER_PASSWORD=
DATABASE=
DB_PORT=
DB_PREFIX=
```

## How to Run E2E Tests on Local Environment

### WordPress & Plugin Setup

1. **Install and Activate WooCommerce**

2. **Install Dokan Lite and Dokan Pro**

3. **Configure WordPress Permalinks**
- Set **Permalink structure** = `Post Name`
- Set **Product permalinks** = `Custom base`

4. **Activate Dokan Pro License**
- Enter your Dokan Pro License key and activate it

5. **Enable Dokan Modules**
- Go to **Admin → Dokan → Modules**
- Enable all modules **except Paystack**

6. **Install Required Plugins**
- JSON Basic Authentication
- WooCommerce Bookings
- WooCommerce Product Add-Ons
- WooCommerce Simple Auction
- WooCommerce Subscriptions

### Test Environment Setup

1. Navigate to the test directory:
```bash
cd dokan-lite/tests/pw
```

2. Install dependencies:
```bash
npm install --include=dev
npm install --omit=dev
Comment on lines +78 to +79
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🔴 Critical

Fix the npm install sequence—do not run --omit=dev after --include=dev.

Line 79 (npm install --omit=dev) will remove dev dependencies that were just installed in line 78. For a development environment running E2E tests, dev dependencies are necessary. Remove line 79 or clarify the intent.

 2. Install dependencies:
    ```bash
    npm install --include=dev
-   npm install --omit=dev
    ```
🤖 Prompt for AI Agents
In tests/pw/e2eReadme.md around lines 78–79, the documented command sequence
installs dev dependencies then immediately removes them; remove the second line
(`npm install --omit=dev`) or replace it with an explicit note describing a
separate production install command (e.g., explain that `npm install --omit=dev`
is only for production builds) so the README does not instruct removing dev
dependencies needed for running E2E tests.

```

3. Install Playwright and browsers:
```bash
playwright install chromium
playwright install --with-deps chromium
playwright install-deps chromium
playwright install
playwright install --with-deps
playwright install-deps
```

### Running Tests

#### Authentication Setup
```bash
NO_SETUP=true npx playwright test --project=auth_setup
```

#### Environment Setup
```bash
NO_SETUP=true npx playwright test --project=e2e_setup
```

#### Run Individual Test Spec
```bash
npx playwright test newCoupons.spec.ts
```

#### Debug Mode
```bash
npx playwright test newCoupons.spec.ts --debug
```

#### UI Mode
```bash
npx playwright test newCoupons.spec.ts --ui
```

#### Headless Mode
Set the value of `HEADLESS=true` in your `.env` file

#### Run Specific Test by Name
```bash
npx playwright test --grep "Admin Can Add Marketplace Coupon"
```

Loading
Loading