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

Testlite #16

Closed
wants to merge 229 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
229 commits
Select commit Hold shift + click to select a range
d95afd3
add zod api json validation
shashwatahalder01 Oct 11, 2023
666becb
update test workflow
shashwatahalder01 Oct 11, 2023
ba97bda
fix deprecated function
shashwatahalder01 Oct 12, 2023
a10ef8b
add pro plugin status
shashwatahalder01 Oct 12, 2023
b8236bb
Merge branch 'develop' into lite
shashwatahalder01 Oct 12, 2023
b5b215a
removed test.only
shashwatahalder01 Oct 12, 2023
2b3ddeb
update testdata
shashwatahalder01 Oct 13, 2023
3f322e8
update testdata
shashwatahalder01 Oct 13, 2023
e561f2c
add json validation for admin spec
shashwatahalder01 Oct 13, 2023
4acc0b6
add coupon calculation test
shashwatahalder01 Oct 13, 2023
8c5a0cb
update env var
shashwatahalder01 Oct 13, 2023
c278860
ADD NEW SCHEMA
shashwatahalder01 Oct 13, 2023
9ea956d
update schema
shashwatahalder01 Oct 15, 2023
a40b756
update schema, config, env
shashwatahalder01 Oct 16, 2023
33a2cef
Merge branch 'develop' into testlite
shashwatahalder01 Oct 16, 2023
3ca8fd3
add coupon tests, fix flaky tests
shashwatahalder01 Oct 17, 2023
37109f6
update utility function
shashwatahalder01 Oct 17, 2023
7772648
add reset site tests
shashwatahalder01 Oct 17, 2023
5516aa8
Merge branch 'develop' into testlite
shashwatahalder01 Oct 17, 2023
f171b59
update command
shashwatahalder01 Oct 17, 2023
1c3996b
refactor setup project
shashwatahalder01 Oct 18, 2023
649a489
add visual tests
shashwatahalder01 Oct 27, 2023
43eb4f8
resolved several todos
shashwatahalder01 Nov 1, 2023
0b2b710
fix failed tests
shashwatahalder01 Nov 1, 2023
c9129bb
removed console log
shashwatahalder01 Nov 1, 2023
a89f2a0
Merge branch 'develop' into testlite
shashwatahalder01 Nov 2, 2023
b7be57e
add new announcement api test
shashwatahalder01 Nov 2, 2023
118c164
update env
shashwatahalder01 Nov 3, 2023
bd5aa12
update responsebody
shashwatahalder01 Nov 3, 2023
e5986df
update api tests
shashwatahalder01 Nov 3, 2023
8c720ad
update yml
shashwatahalder01 Nov 3, 2023
4ce1b72
update order spec
shashwatahalder01 Nov 3, 2023
b63036a
fix customer id issue
shashwatahalder01 Nov 3, 2023
925e7d1
update env
shashwatahalder01 Nov 4, 2023
5758bd5
fix api issue
shashwatahalder01 Nov 10, 2023
c15a542
Merge branch 'develop' into testlite
shashwatahalder01 Nov 10, 2023
3897843
update yml
shashwatahalder01 Nov 10, 2023
9140f27
fix api errors
shashwatahalder01 Nov 10, 2023
3e0f66a
Merge branch 'getdokan:develop' into testlite
shashwatahalder01 Nov 10, 2023
3726508
Merge branch 'testlite' of https://github.com/shashwatahalder01/dokan…
shashwatahalder01 Nov 10, 2023
7f116ef
test_customer_ID
shashwatahalder01 Nov 13, 2023
a99049b
remove .only
shashwatahalder01 Nov 13, 2023
50e001c
test
shashwatahalder01 Nov 13, 2023
2cafa2b
update suite
shashwatahalder01 Nov 13, 2023
523e78d
Merge branch 'getdokan:develop' into testlite
shashwatahalder01 Nov 13, 2023
bceb4ac
update
shashwatahalder01 Nov 13, 2023
d44af7b
update
shashwatahalder01 Nov 13, 2023
0b4eef0
update
shashwatahalder01 Nov 13, 2023
f34fc3e
update
shashwatahalder01 Nov 13, 2023
6ceaf92
update suite
shashwatahalder01 Nov 13, 2023
96b7287
update suite
shashwatahalder01 Nov 13, 2023
bc775ec
update lite
shashwatahalder01 Nov 13, 2023
694469a
update suite
shashwatahalder01 Nov 13, 2023
ebef1ac
update suite
shashwatahalder01 Nov 13, 2023
72c3837
update suite
shashwatahalder01 Nov 13, 2023
5e07009
up suite
shashwatahalder01 Nov 13, 2023
ad9bdf7
update yml
shashwatahalder01 Nov 13, 2023
252bd46
update yml
shashwatahalder01 Nov 13, 2023
56216df
update testdata
shashwatahalder01 Nov 13, 2023
0744ea6
test
shashwatahalder01 Nov 13, 2023
4525371
update config
shashwatahalder01 Nov 14, 2023
295973d
update suite
shashwatahalder01 Nov 14, 2023
07a4888
update package.json
shashwatahalder01 Nov 14, 2023
2d68db7
add global setup as project dependencies
shashwatahalder01 Nov 14, 2023
f5ed522
removed global teardown
shashwatahalder01 Nov 14, 2023
e33d10f
delete global setup files
shashwatahalder01 Nov 14, 2023
7273f7c
add admin auth
shashwatahalder01 Nov 14, 2023
37317e6
test a test
shashwatahalder01 Nov 15, 2023
050df53
update suite
shashwatahalder01 Nov 15, 2023
fb3003e
test tests
shashwatahalder01 Nov 15, 2023
94272b1
test 2
shashwatahalder01 Nov 15, 2023
8fcb4a3
test 3
shashwatahalder01 Nov 15, 2023
e961bb2
test 4
shashwatahalder01 Nov 15, 2023
b243c42
test 4
shashwatahalder01 Nov 15, 2023
91884c2
test5
shashwatahalder01 Nov 15, 2023
3c8fe9e
test 6
shashwatahalder01 Nov 15, 2023
d435bc1
test 7
shashwatahalder01 Nov 15, 2023
8a09e78
test 8
shashwatahalder01 Nov 15, 2023
216a37f
test 8
shashwatahalder01 Nov 15, 2023
88a3784
test 10
shashwatahalder01 Nov 15, 2023
ebc395c
test 11
shashwatahalder01 Nov 15, 2023
793c840
test 12
shashwatahalder01 Nov 15, 2023
51177f0
test13
shashwatahalder01 Nov 15, 2023
49f624d
test 14
shashwatahalder01 Nov 15, 2023
751ec5a
test 15
shashwatahalder01 Nov 16, 2023
f697396
test 20
shashwatahalder01 Nov 16, 2023
6593caf
test 22
shashwatahalder01 Nov 16, 2023
3189519
test 24
shashwatahalder01 Nov 16, 2023
06180f4
test 25
shashwatahalder01 Nov 16, 2023
6b58b3a
abc
shashwatahalder01 Nov 16, 2023
6c3ae4c
update yml
shashwatahalder01 Nov 16, 2023
6d69c93
yml
shashwatahalder01 Nov 16, 2023
446acab
fsdf
shashwatahalder01 Nov 16, 2023
f86a39c
fix minor issues
shashwatahalder01 Nov 16, 2023
c6a7c10
fix linting
shashwatahalder01 Nov 16, 2023
062c3c4
fix bugs
shashwatahalder01 Nov 16, 2023
2d13fcf
update: add announcement notice test
shashwatahalder01 Nov 20, 2023
05e1e3c
Merge branch 'develop' into testlite
shashwatahalder01 Nov 20, 2023
23a6e44
update: add withdraw charge tests
shashwatahalder01 Nov 21, 2023
6cb0b72
fix: fix promotion test
shashwatahalder01 Nov 21, 2023
cc6ebe3
test 1
shashwatahalder01 Nov 21, 2023
bbdcc99
fix: update tests for wocommerce 8.3
shashwatahalder01 Nov 21, 2023
9efed04
test 2
shashwatahalder01 Nov 21, 2023
2bb6911
update: update locators
shashwatahalder01 Nov 22, 2023
9b01a7f
update locator
shashwatahalder01 Nov 22, 2023
76e5fc5
add: add new tests
shashwatahalder01 Nov 28, 2023
d52e5d8
Merge branch 'develop' into testlite
shashwatahalder01 Nov 28, 2023
cb96c94
update: update coupon tests for wc 8.3
shashwatahalder01 Nov 30, 2023
43c6155
update: global setup, fix: some tests
shashwatahalder01 Dec 1, 2023
640dca5
update: add inputs for workflow dispatch
shashwatahalder01 Dec 2, 2023
ee2c640
update: add inputs for workflow dispatch
shashwatahalder01 Dec 2, 2023
be6ec04
commented maxfailures
shashwatahalder01 Dec 2, 2023
cd35fd2
add schama validation for follow store api
shashwatahalder01 Dec 2, 2023
64206d3
update yml
shashwatahalder01 Dec 2, 2023
bf17672
update yml
shashwatahalder01 Dec 2, 2023
a7bf0bd
update: add json schema validation
shashwatahalder01 Dec 2, 2023
6f27301
add: add schema validation for some tests
shashwatahalder01 Dec 3, 2023
84d0dd0
update: yml
shashwatahalder01 Dec 3, 2023
308b55b
fix locator issue
shashwatahalder01 Dec 3, 2023
201d315
update versions
shashwatahalder01 Dec 3, 2023
a297f4a
reverted pw version
shashwatahalder01 Dec 3, 2023
9f98059
fix locator
shashwatahalder01 Dec 3, 2023
2a0e090
fix: fix all failed tests
shashwatahalder01 Dec 4, 2023
e3c5f54
update schema
shashwatahalder01 Dec 4, 2023
587b324
fix syntax error
shashwatahalder01 Dec 4, 2023
3492622
add: add withdraw charge tests
shashwatahalder01 Dec 11, 2023
e0fe440
fix: abuse report test
shashwatahalder01 Dec 11, 2023
acd1e71
fix: adaptive issue
shashwatahalder01 Dec 12, 2023
e0b4ee7
fix: fix some tests
shashwatahalder01 Dec 12, 2023
917398d
update config , might need te revert back
shashwatahalder01 Dec 12, 2023
4d8504c
Merge branch 'getdokan:develop' into testlite
shashwatahalder01 Dec 12, 2023
f89f997
add: add new tests
shashwatahalder01 Dec 24, 2023
517abad
add: add new tests
shashwatahalder01 Jan 9, 2024
a7688ca
removed test.only
shashwatahalder01 Jan 9, 2024
fff18b3
add : added new tests
shashwatahalder01 Jan 10, 2024
7ed3419
fix withdraw test
shashwatahalder01 Jan 10, 2024
a135b6c
add log
shashwatahalder01 Jan 10, 2024
eee5020
Merge branch 'develop' into testlite
shashwatahalder01 Jan 10, 2024
5ed1163
fix failed tests
shashwatahalder01 Jan 10, 2024
a85a1e8
fix some tests
shashwatahalder01 Jan 10, 2024
1a8561e
update selector
shashwatahalder01 Jan 10, 2024
00916ff
fix lint
shashwatahalder01 Jan 10, 2024
b3eadd7
update locator
shashwatahalder01 Jan 10, 2024
778741e
update packages
shashwatahalder01 Jan 10, 2024
a3e8de1
add: added product edit tests
shashwatahalder01 Jan 12, 2024
540d7e7
add: add product tests
shashwatahalder01 Jan 15, 2024
3d88a75
Merge branch 'develop' into testlite
shashwatahalder01 Jan 15, 2024
b340b29
add: added new tests
shashwatahalder01 Jan 15, 2024
d24c88e
fix: fix some payload data
shashwatahalder01 Jan 16, 2024
649c050
skipped some tests
shashwatahalder01 Jan 16, 2024
762e76c
fixed a flaky tests
shashwatahalder01 Jan 16, 2024
fef5369
added licese tests
shashwatahalder01 Jan 16, 2024
02e1d86
update yaml
shashwatahalder01 Jan 17, 2024
626c171
Merge branch 'develop' into testlite
shashwatahalder01 Jan 17, 2024
6d96cd5
fixed some tests
shashwatahalder01 Jan 18, 2024
55fd7e6
add debuglog mapping
shashwatahalder01 Jan 18, 2024
02b2894
fix write permission issue
shashwatahalder01 Jan 18, 2024
b297a03
Merge branch 'develop' into testlite
shashwatahalder01 Jan 18, 2024
38f534c
add debug.log
shashwatahalder01 Jan 18, 2024
4f3d2d6
update log
shashwatahalder01 Jan 18, 2024
6cdadca
test log
shashwatahalder01 Jan 18, 2024
1997f82
update: updated test suite for playwright v1.39
shashwatahalder01 Jan 19, 2024
1ce13bf
add: debug log file added
shashwatahalder01 Jan 19, 2024
7b42454
fix: env2 setup
shashwatahalder01 Jan 20, 2024
a9d7929
fix: added missing context dispose methods
shashwatahalder01 Jan 20, 2024
6e50e0e
update: update guest auth
shashwatahalder01 Jan 20, 2024
25f82ec
update plugin path
shashwatahalder01 Jan 24, 2024
20d9510
added productqa api tests
shashwatahalder01 Jan 24, 2024
f12cb4c
added productqa tests
shashwatahalder01 Jan 24, 2024
1f6e54e
added product qa e2e tests
shashwatahalder01 Jan 24, 2024
6b74599
Merge branch 'develop' into testlite
shashwatahalder01 Jan 25, 2024
9dad88a
refactor some tests
shashwatahalder01 Jan 27, 2024
7541bff
update settings test
shashwatahalder01 Jan 27, 2024
5e5b4f4
add: added new tests
shashwatahalder01 Jan 27, 2024
79c06aa
update: update php_value & disabled opchache
shashwatahalder01 Jan 30, 2024
d5e8405
update: added permalink setup & theme activation on global setup for …
shashwatahalder01 Jan 30, 2024
8868836
update: update some helper methos and testdata
shashwatahalder01 Jan 30, 2024
8f15f1c
update: update calculation tests
shashwatahalder01 Jan 30, 2024
b5c866a
Merge branch 'develop' into testlite
shashwatahalder01 Jan 30, 2024
5d675f0
update: update some tests
shashwatahalder01 Jan 31, 2024
53247b2
update wp-env plugin paths
shashwatahalder01 Feb 6, 2024
4206f80
Merge branch 'develop' into testlite
shashwatahalder01 Feb 6, 2024
d3fae4e
update plugin paths in wp-env override
shashwatahalder01 Feb 7, 2024
f99161a
update git action versions and test run command
shashwatahalder01 Feb 7, 2024
0dd317a
Merge branch 'develop' into testlite
shashwatahalder01 Feb 7, 2024
64e8375
update package versions
shashwatahalder01 Feb 7, 2024
3a72b4b
update tests
shashwatahalder01 Feb 7, 2024
9e3219f
update faker methods
shashwatahalder01 Feb 7, 2024
0eba927
Merge branch 'develop' into testlite
shashwatahalder01 Feb 8, 2024
756d0fd
Merge branch 'develop' into testlite
shashwatahalder01 Feb 8, 2024
0c512cb
test only withdraw
shashwatahalder01 Feb 8, 2024
44872c5
removed .only
shashwatahalder01 Feb 8, 2024
c816c93
update some tests
shashwatahalder01 Feb 8, 2024
faaa632
removed .only
shashwatahalder01 Feb 8, 2024
c69a384
removed console log
shashwatahalder01 Feb 8, 2024
b9f86ca
update faker methods
shashwatahalder01 Feb 8, 2024
3fe7eac
update faker depecated methods
shashwatahalder01 Feb 9, 2024
40e6849
skipped a test
shashwatahalder01 Feb 9, 2024
68e54c7
Merge branch 'develop' into testlite
shashwatahalder01 Feb 13, 2024
0420dd8
update: update product addon tests
shashwatahalder01 Feb 13, 2024
fc2301f
added test tags and refactor suit for parallism
shashwatahalder01 Feb 13, 2024
25e512b
update module tests
shashwatahalder01 Feb 13, 2024
49cde25
refactored suite for parallism
shashwatahalder01 Feb 14, 2024
9273dca
refactored suite for parallelism
shashwatahalder01 Feb 15, 2024
e53e074
refactored suite for parallelism
shashwatahalder01 Feb 15, 2024
5279260
fix some failed tests nd linting
shashwatahalder01 Feb 15, 2024
4508808
refactored suite
shashwatahalder01 Feb 16, 2024
8a26f58
skipped some tests
shashwatahalder01 Feb 16, 2024
f56cdaa
refactor some tests
shashwatahalder01 Feb 16, 2024
46899ee
updated woo success locator
shashwatahalder01 Feb 16, 2024
6c81eb2
update locators
shashwatahalder01 Feb 16, 2024
144b723
update suite for parallellism
shashwatahalder01 Feb 16, 2024
688e5fe
add database backup
shashwatahalder01 Feb 16, 2024
1dab1c3
skipped some test
shashwatahalder01 Feb 16, 2024
0138a9d
added db path
shashwatahalder01 Feb 16, 2024
0662f9c
update db command
shashwatahalder01 Feb 16, 2024
3227845
update db artifacts
shashwatahalder01 Feb 16, 2024
afdf99d
fixed some flaky tests
shashwatahalder01 Feb 16, 2024
1610f13
refactored some playwrite config
shashwatahalder01 Feb 17, 2024
45b3ed0
update base page methods
shashwatahalder01 Feb 17, 2024
6372f6e
update some tests
shashwatahalder01 Feb 17, 2024
6f6a130
update e2e config
shashwatahalder01 Feb 18, 2024
1bed4e9
update locators
shashwatahalder01 Feb 18, 2024
4bbfd07
fix some tests
shashwatahalder01 Feb 18, 2024
4e33150
fix test and prettier
shashwatahalder01 Feb 18, 2024
9d0992e
update some tests
shashwatahalder01 Feb 18, 2024
a399f25
fix some skipped tests
shashwatahalder01 Feb 18, 2024
f20128f
revert skipped tests
shashwatahalder01 Feb 18, 2024
d15569e
update teardown
shashwatahalder01 Feb 18, 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
90 changes: 53 additions & 37 deletions .github/workflows/e2e_api_tests.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: E2E_API Tests

on:
# workflow will run daily at 8:00 AM BDT (2:00 AM UTC)
schedule:
# workflow will run daily at 8:00 AM BDT (2:00 AM UTC)
- cron: '0 2 * * *'
# workflow will trigger on pull request
pull_request:
Expand All @@ -13,15 +13,15 @@ on:

# workflow can be manually triggered
workflow_dispatch:
inputs:
testsuite:
description: Choose which test suite to run
default: All
type: choice
options:
- E2E
- API
- All
inputs:
testsuite:
description: Choose which test suite to run
default: All
type: choice
options:
- E2E
- API
- All

# Cancels all previous workflow runs for pull requests that have not completed.
concurrency:
Expand Down Expand Up @@ -58,6 +58,7 @@ env:
SYSTEM_INFO: ./tests/pw/playwright/systemInfo.json
API_TEST_RESULT: ./tests/pw/playwright-report/api/summary-report/results.json
E2E_TEST_RESULT: ./tests/pw/playwright-report/e2e/summary-report/results.json
API_COVERAGE: ./tests/pw/playwright-report/api/coverage-report/coverage.json

jobs:
tests:
Expand All @@ -66,19 +67,19 @@ jobs:

steps:
- name: Checkout testing repo
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Use desired version of NodeJS
if: success()
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: '16'
cache: 'npm'

- name: Composer install and build (Dokan-lite)
if: success()
run: |
composer install --no-dev -o
composer install --no-dev -o

- name: Npm install and build (Dokan-lite)
if: success()
Expand All @@ -87,12 +88,19 @@ jobs:
npm run build

# Install test dependencies
- name: Install dependencies
- name: Install test dependencies
if: success()
run: |
cd tests/pw
npm ci

# Create wp debuglog file
- name: Create wp debuglog file
if: success()
run: |
cd tests/pw
mkdir -p wp-data && touch wp-data/debug.log

# Start wordpress environment
- name: Start WordPress Env
id: wp-env
Expand Down Expand Up @@ -142,7 +150,7 @@ jobs:
- name: Cache playwright binaries
id: playwright-cache
if: success()
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
~/.cache/ms-playwright
Expand Down Expand Up @@ -186,42 +194,50 @@ jobs:
# Prepare test summary
- name: Prepare test summary
id: prepare-test-summary
uses: actions/github-script@v6
uses: actions/github-script@v7
if: always()
with:
result-encoding: string
script: |
const script = require("./tests/pw/utils/gitTestSummary.ts")
return await script({github, context, core})

# # Find PR comment
# - name: Find PR comment by github-actions[bot]
# uses: peter-evans/find-comment@v2
# id: find-comment
# if: github.event_name == 'pull_request'
# with:
# issue-number: ${{ github.event.pull_request.number }}
# comment-author: 'github-actions[bot]'
# body-includes: Tests Summary

# # Post test summary as PR comment
# - name: Create or update PR comment
# uses: peter-evans/create-or-update-comment@v2
# if: github.event_name == 'pull_request'
# with:
# comment-id: ${{ steps.find-comment.outputs.comment-id }}
# issue-number: ${{ github.event.pull_request.number }}
# body: ${{ steps.prepare-test-summary.outputs.result }}
# reactions: hooray
# edit-mode: replace
# Find PR comment
- name: Find PR comment by github-actions[bot]
uses: peter-evans/find-comment@v3
id: find-comment
if: github.event_name == 'pull_request'
with:
issue-number: ${{ github.event.pull_request.number }}
comment-author: 'github-actions[bot]'
body-includes: Tests Summary

# Post test summary as PR comment
- name: Create or update PR comment
uses: peter-evans/create-or-update-comment@v4
if: github.event_name == 'pull_request'
with:
comment-id: ${{ steps.find-comment.outputs.comment-id }}
issue-number: ${{ github.event.pull_request.number }}
body: ${{ steps.prepare-test-summary.outputs.result }}
reactions: hooray
edit-mode: replace

# Backup Database
- name: Backup Database
if: success()
run: |
cd tests/pw
npm run wp-env run tests-cli wp db export wp-data/db.sql

# Upload artifacts
- name: Archive test artifacts (screenshots, HTML snapshots, Reports)
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: always()
with:
name: test-artifact
path: |
tests/pw/wp-data
tests/pw/playwright
tests/pw/playwright-report
if-no-files-found: ignore
Expand Down
1 change: 1 addition & 0 deletions tests/pw/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ 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]
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]
Expand Down
2 changes: 0 additions & 2 deletions tests/pw/.eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,10 @@ types/
# System Files
.DS_Store
Thumbs.db
{"mode":"full","isActive":false}

# Docs files
*_spec3.json


# Custom files
TODO.ts
TODO.md
6 changes: 1 addition & 5 deletions tests/pw/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ dist
.tern-port

# Stores VSCode versions used for testing VSCode extensions
.vscode/settings.json
.vscode-test

# yarn v2
Expand Down Expand Up @@ -175,11 +176,6 @@ test-results/
playwright-report/
playwright/.cache/
visual.spec.ts-snapshots/
storageState.json
adminStorageState.json
customerStorageState.json
vendorStorageState.json
systemInfo.json

# vscode
.vscode/
Expand Down
9 changes: 9 additions & 0 deletions tests/pw/.htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,13 @@ RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
php_value max_execution_time 300
php_value max_input_time 300
php_value max_input_vars 10000
php_value memory_limit 1G
php_value post_max_size 1G
php_value upload_max_filesize 1G
<IfModule mod_php7.c>
php_flag opcache.enable Off
</IfModule>
# END WordPress
3 changes: 2 additions & 1 deletion tests/pw/.prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ Thumbs.db
*_spec3.json

# Custom files
TODO.ts
.wp-env.json
.wp-env.override
TODO.md


Expand Down
16 changes: 6 additions & 10 deletions tests/pw/.wp-env.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,20 @@
"env": {
"tests": {
"port": 9999,
"core": "https://wordpress.org/latest.zip",
"core": null,
"phpVersion": "7.4",
"plugins": [
"https://downloads.wordpress.org/plugin/woocommerce.latest-stable.zip",
"../../",
"https://github.com/shashwatahalder01/TestUtils/raw/main/ba.zip"
],
"themes": [
"https://downloads.wordpress.org/theme/storefront.latest-stable.zip"
],
"plugins": ["WP-API/Basic-Auth", "https://downloads.wordpress.org/plugin/woocommerce.latest-stable.zip", "../../"],
"themes": ["https://downloads.wordpress.org/theme/storefront.latest-stable.zip"],
"config": {
"WP_DEBUG": "true",
"SCRIPT_DEBUG": "true",
"WP_DEBUG_LOG": "true",
"WP_DEBUG_DISPLAY": "true"
},
"mappings": {
".htaccess": ".htaccess"
".htaccess": ".htaccess",
"wp-data": "./wp-data",
"wp-content/debug.log": "./wp-data/debug.log"
}
}
}
Expand Down
28 changes: 14 additions & 14 deletions tests/pw/.wp-env.override
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
{
"env": {
"tests": {
"plugins": [
"https://downloads.wordpress.org/plugin/woocommerce.latest-stable.zip",
"../../",
"../../../../",
"https://github.com/shashwatahalder01/TestUtils/raw/main/ba.zip",
"https://github.com/shashwatahalder01/TestUtils/raw/main/wa.zip",
"https://github.com/shashwatahalder01/TestUtils/raw/main/wb.zip",
"https://github.com/shashwatahalder01/TestUtils/raw/main/wps.zip",
"https://github.com/shashwatahalder01/TestUtils/raw/main/ws.zip"
]
"env": {
"tests": {
"plugins": [
"WP-API/Basic-Auth",
"https://downloads.wordpress.org/plugin/woocommerce.latest-stable.zip",
"../../",
"../../../../",
"../../../woocommerce-bookings",
"../../../woocommerce-product-addons",
"../../../woocommerce-simple-auctions",
"../../../woocommerce-subscriptions"
]
}
}
}
}
}
1 change: 1 addition & 0 deletions tests/pw/README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ 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]
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]
Expand Down
Loading
Loading