-
Notifications
You must be signed in to change notification settings - Fork 215
All/e2e fix #2960
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
Open
shohan0120
wants to merge
67
commits into
develop
Choose a base branch
from
all/e2e-fix
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
All/e2e fix #2960
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 1247b48
refactor: enhance Follow Store module tests with detailed step descri…
dev-shahed 60bc32c
refactor: enhance abuse reports and vendor reports functionality
dev-shahed 4af5e0c
fix: Menu activation test failed for WooCommerce Subscriptions missin…
MdAsifHossainNadim bd1ac86
fix: Shortcode templates fields not exists issue. (#2874)
MdAsifHossainNadim 6b0bd01
fix: Update vendor verification methods visibility tests for setup wi…
MdAsifHossainNadim f0b5f2e
fix: Coupon creation execution by ensuring proper load state and vali…
MdAsifHossainNadim 9081aad
fix: Min-max quantity interaction test with invalid data. (#2871)
MdAsifHossainNadim 0f95bd3
follow store tests fixes
dev-shahed 0c83400
fix: update env:setup script in package.json to include NO_SETUP flag…
shohan0120 aec2802
Merge pull request #2906 from getdokan/fix/reports-spec-cases
shohan0120 45daeab
Merge pull request #2907 from getdokan/package/json-env-setup-fix
shohan0120 585139a
refactor: update admin notice page and selectors for improved visibil…
shohan0120 11b2412
Merge pull request #2909 from getdokan/fix/e2e-admin-notice
shohan0120 82de543
test: skip Product AI test suite and add tag to product title test
shohan0120 3d52983
Merge pull request #2910 from getdokan/ai/specFile-fix
shohan0120 51ba1e9
Merge branch 'all/e2e-fix' into fix/follow-store-test
shohan0120 b35094c
Merge pull request #2905 from getdokan/fix/follow-store-test
shohan0120 03bd890
refactor: restructure CouponsPage class and enhance coupon management…
shohan0120 c3c3eae
Merge branch 'all/e2e-fix' into couponsE2E/refacotr-fix
shohan0120 291474a
test: enhance end-to-end coupon management tests with improved struct…
shohan0120 3623416
refactor: enhance CouponsPage class and streamline e2e coupon tests
shohan0120 20509b4
Merge pull request #2911 from getdokan/couponsE2E/refactor-fix
shohan0120 7b912b5
feat: enhance environment variable typing in testData.ts for better t…
shohan0120 57f9bc7
Merge pull request #2912 from getdokan/testDataE2e/fix
shohan0120 1151187
refactor: update selectors in the test page for better organization
shohan0120 bcf987d
chore: comment out background color check in MenuManagerPage test
shohan0120 ed8cb75
chore: comment out upgradePlan selector in selectors.ts for clarity
shohan0120 dcfdcbc
chore: skip Printful module functionality test for stability
shohan0120 0914e00
chore: skip Printful module functionality test due to setup requirements
shohan0120 545de8e
develop merged
shohan0120 ee00ff5
Update composer.lock before merging develop
shohan0120 7afb8c7
Merge develop into all/e2e-fix
shohan0120 841127f
Refactor CouponsPage and introduce newCouponsPage for improved coupon…
shohan0120 9f65256
Enhance BasePage with selector wait functionality, update addNewProdu…
shohan0120 a20e0a4
Add test data structure to ManualOrderPage, implement vendor-specific…
shohan0120 f0e6005
old Coupons removed
shohan0120 0192aaa
Enhance feature-map.yml with new admin and vendor capabilities, inclu…
shohan0120 845cf2d
Refactor AdminDashboardPage to improve dashboard navigation and visib…
shohan0120 3f96c1f
Refactor AdminDashboardPage to modularize visibility checks into dedi…
shohan0120 f3f85b3
Merge remote-tracking branch 'origin/develop' into all/e2e-fix
shohan0120 b68138e
Enhance navigation methods in BasePage and ProductsPage for improved …
shohan0120 ac7c65e
Skip the 'admin can view get help dropdown' test in the Dokan help te…
shohan0120 19d6664
Enhance MenuManagerPage methods to accept vendor context for improved…
shohan0120 474b374
Update test data to reflect changes in module statistics, increasing …
shohan0120 c0c6d7c
Refactor shipment addition process in OrdersPage to utilize new locat…
shohan0120 097b7ed
Add checks for existing shipments and create shipment button in Order…
shohan0120 2177615
Merge remote-tracking branch 'origin/develop' into all/e2e-fix
shohan0120 475d97d
fix: ensure network idle state before adding new addon in ProductAddo…
shohan0120 ed5ef54
refactor: enhance clickAndWaitForResponse methods to ensure element v…
shohan0120 901b2d9
fix: update productDetails path to reflect new shop structure
shohan0120 653f169
fix: update vendorDeleteQuestion method to use goIfNotThere for navig…
shohan0120 e791155
fix: skip Product Reviews test due to unimplemented new UI
shohan0120 682e5ca
fix: update Product Reviews test description to clarify rewrite requi…
shohan0120 ad6c18a
fix: improve product visibility checks and ensure element attachment …
shohan0120 3375469
fix: enhance product publishing process with improved success message…
shohan0120 2514688
fix: comment out vendor auction tags functionality and skip related t…
shohan0120 53745a9
fix: skip Booking Product test for faster execution due to optimizati…
shohan0120 6b4f8e1
fix: skip vendor delivery time tests for faster execution and to addr…
shohan0120 3f01868
fix: skip Vendor RMA test due to need for complete rewrite of return …
shohan0120 32519a8
fix: skip Vendor Settings test due to flakiness and need for complete…
shohan0120 36b81d1
fix: skip vendor shipping, staff, wholesale, and withdraw tests due t…
shohan0120 538d53f
fix: enhance user setup process by validating sellerId before additio…
dev-shahed d1e3ed5
chore: add test-results directory to .gitignore to prevent clutter in…
shohan0120 945e63a
docs: add E2E Testing Guide with setup instructions and configurations
shohan0120 454c5e9
fix: update e2e test command to skip setup for e2e tests and skip pro…
shohan0120 9f2130a
Merge branch 'develop' into all/e2e-fix
shohan0120 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 | ||
| ``` | ||
|
|
||
| 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" | ||
| ``` | ||
|
|
||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix the npm install sequence—do not run
--omit=devafter--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