Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
72 commits
Select commit Hold shift + click to select a range
ab2bf6c
Initial commit: Playwright tests with TestDino integration
Aug 28, 2025
b96de44
Initial commit
Aug 29, 2025
199dffd
Initial commit
Aug 29, 2025
97516ee
Initial commit
Aug 29, 2025
776fe52
added more test cases
Aug 29, 2025
8fb08a0
modified the test cases names
Tanmay001Gupta Sep 2, 2025
4bd85df
implement test sharding across multiple jobs for faster execution
Tanmay001Gupta Sep 3, 2025
ce29b09
Implement test sharding across multiple jobs for faster execution
Tanmay001Gupta Sep 3, 2025
7382bcc
changes applied in the playwright.config file
testing123467 Sep 12, 2025
7e5bc7d
changes applied in the playwright.config file
testing123467 Sep 12, 2025
9a36890
Merge branch 'main' into prod
Tanmay001Gupta Sep 12, 2025
92cc7d0
updated the yml by adding multiple browser
testing123467 Sep 12, 2025
4dd014f
updated the yml by adding multiple browser
testing123467 Sep 12, 2025
3112535
updated the yml by adding multiple browser
testing123467 Sep 12, 2025
a1357e7
updated the yml by adding multiple browser
testing123467 Sep 12, 2025
4e30306
changes applied in the playwright.config file
testing123467 Sep 12, 2025
cead7c9
Merge branch 'main' into prod
Tanmay001Gupta Sep 18, 2025
f0340f8
Merge branch 'main' into prod
Tanmay001Gupta Sep 20, 2025
deb600e
Updated some of the test cases
kriti2710 Sep 22, 2025
a9a1c80
Updated some of the test cases
kriti2710 Sep 22, 2025
34a2c6b
Updated some of the test cases
kriti2710 Sep 22, 2025
9d0753d
Updated playwright config
testing123467 Sep 22, 2025
ccf41c2
Updated some of the test cases
testing123467 Sep 24, 2025
da8e79f
Updated some of the test cases and Readme file
testing123467 Sep 24, 2025
df10acd
added some of the test cases and fixed issues
testing123467 Sep 24, 2025
7f10e32
Updated some of the test cases
testing123467 Sep 24, 2025
c1e67bb
Refactor user flow tests by removing unnecessary steps
Jan 13, 2026
29c9747
Refactor user flow tests by removing unnecessary steps
Jan 13, 2026
9101084
Refactor user flow tests by removing unnecessary steps
Jan 13, 2026
88673fb
Refactor user flow tests by removing unnecessary steps
Jan 13, 2026
e1da38c
Refactor user flow tests by removing unnecessary steps
Jan 13, 2026
a787dfa
Refactor user flow tests by removing unnecessary steps
Jan 13, 2026
8056ec9
Refactor user flow tests by removing unnecessary steps
Jan 13, 2026
20a08b6
Refactor user flow tests by removing unnecessary steps
Jan 13, 2026
5502427
Refactor user flow tests by removing unnecessary steps
Jan 13, 2026
4533682
Refactor user flow tests by removing unnecessary steps
Jan 13, 2026
4d37d5b
Refactor user flow tests by removing unnecessary steps
Jan 13, 2026
b2a6838
Updated the workflow file with new updates
Feb 10, 2026
91b5a05
Updated the workflow file with new updates
Feb 10, 2026
22232aa
Updated the workflow file with new updates
Feb 10, 2026
ed4872a
Updated the workflow file with new updates
Feb 10, 2026
d1fd9a7
Updated the workflow file with new updates
Feb 10, 2026
ffbe84c
Updated playwright.config file as well as workflow file
Feb 10, 2026
2253a48
Updated the playwright config file
Feb 10, 2026
8a306ce
Fixed the changes related to pricing currency
Feb 10, 2026
98a63e7
fix(trace): updated the yml related to trace
Feb 12, 2026
bb0d844
Managing flaky test cases in hotfix env
Feb 13, 2026
d00700c
Managing flaky test cases
Feb 13, 2026
6af987a
Updated and fixed failed test cases
Feb 18, 2026
06805b3
Refactor cart checkout tests and add helper functions
kriti2710 Feb 18, 2026
f33b1b8
Merge branch 'staging' into prod
kriti2710 Feb 18, 2026
0ce8e50
Merge branch 'prod' of github.com:testdino-hq/playwright-sample-tests…
Feb 20, 2026
a648fc1
Updated test cases by adding tags/annotations
Feb 28, 2026
6b84cee
Updated test cases by adding tags/annotations
Feb 28, 2026
2fa0b71
Updated test cases by adding tags/annotations feature
kriti2710 Mar 5, 2026
6b38fd2
Updated test cases by adding tags/annotations feature
kriti2710 Mar 5, 2026
53a3c42
Refactor GitHub Actions workflow for Playwright tests
kriti2710 Mar 7, 2026
89692a3
Refactor Playwright config for improved reporting
kriti2710 Mar 7, 2026
5274561
Reorder reporter configuration in playwright config
kriti2710 Mar 7, 2026
88d9510
Updates workflow file by adding merge report
kriti2710 Mar 7, 2026
4e574ac
Refactor Playwright test workflow configuration
kriti2710 Mar 7, 2026
f763542
Refactor Playwright configuration settings
kriti2710 Mar 7, 2026
d8c9add
Expand Playwright test grep filters to include API and mobile
kriti2710 Mar 7, 2026
cca4334
Increase shard count to 5 in test workflow
kriti2710 Mar 7, 2026
28f1040
Update Playwright config for retries and debugging
kriti2710 Mar 7, 2026
16086cb
Update Playwright test shard count to 5
kriti2710 Mar 7, 2026
33a1042
Enhance TestDino upload command with additional options
kriti2710 Mar 7, 2026
0ce3ee0
Merge branch 'prod' into hotfix
kriti2710 Mar 14, 2026
5b58b84
Modify Playwright config for test settings
kriti2710 Mar 14, 2026
308aa28
Modify Playwright config for test settings
kriti2710 Mar 14, 2026
facda91
Simplify retries configuration in Playwright config
kriti2710 Mar 14, 2026
9da0b68
Merge branch 'staging' into hotfix
kriti2710 Apr 1, 2026
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
82 changes: 40 additions & 42 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,44 +1,42 @@
# .github/workflows/playwright-daily.yml
# Runs Playwright test shards every day at **11 : 42 AM IST** (06 : 12 UTC)
# plus anytime you trigger it manually from the Actions tab.

name: Run Playwright tests

on:
push:
pull_request:
schedule:
- cron: '30 3 * * 1-5'
- cron: '30 3 * * *' # 9:00 AM IST everyday # 11:00 AM IST
workflow_dispatch:

jobs:
run-tests:
name: Run Playwright shards
name: Run Playwright tests ${{ matrix.shardIndex }}/5
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
shardIndex: [1,2,3]
shardTotal: [2]
shardIndex: [1, 2, 3, 4, 5]
shardTotal: [5]

steps:
- uses: actions/checkout@v4

- name: Setup Node.js 18.x
- name: Setup Node.js 20.x
uses: actions/setup-node@v3
with:
node-version: '18'
node-version: "20"

- name: Create .env file
run: |
echo "USERNAME=${{ secrets.USERNAME }}" >> .env
echo "USERNAME1=${{ secrets.USERNAME1 }}" >> .env
echo "PASSWORD=${{ secrets.PASSWORD }}" >> .env
echo "NEW_PASSWORD=${{ secrets.NEW_PASSWORD }}" >> .env
echo "FIRST_NAME=${{ secrets.FIRST_NAME }}" >> .env
echo "STREET_NAME=${{ secrets.STREET_NAME }}" >> .env
echo "CITY=${{ secrets.CITY }}" >> .env
echo "STATE=${{ secrets.STATE }}" >> .env
echo "COUNTRY=${{ secrets.COUNTRY }}" >> .env
echo "ZIP_CODE=${{ secrets.ZIP_CODE }}" >> .env
echo "USERNAME=${{ secrets.USERNAME }}" >> .env
echo "PASSWORD=${{ secrets.PASSWORD }}" >> .env
echo "NEW_PASSWORD=${{ secrets.NEW_PASSWORD }}" >> .env
echo "FIRST_NAME=${{ secrets.FIRST_NAME }}" >> .env
echo "STREET_NAME=${{ secrets.STREET_NAME }}" >> .env
echo "CITY=${{ secrets.CITY }}" >> .env
echo "STATE=${{ secrets.STATE }}" >> .env
echo "COUNTRY=${{ secrets.COUNTRY }}" >> .env
echo "ZIP_CODE=${{ secrets.ZIP_CODE }}" >> .env

- name: Cache npm dependencies
uses: actions/cache@v3
Expand All @@ -48,13 +46,16 @@ jobs:
restore-keys: |
${{ runner.os }}-node-

- name: Install deps + browsers
- name: Install dependencies
run: |
npm ci
npx playwright install --with-deps

- name: Run shard ${{ matrix.shardIndex }}
run: npx playwright test --project=chromium --reporter=blob --shard=${{ matrix.shardIndex }}/${{ matrix.shardTotal }}
- name: Run Playwright Tests
run: |
npx playwright test \
--grep="@chromium|@firefox|@webkit|@api|@andriod|@ios" \
--shard=${{ matrix.shardIndex }}/${{ matrix.shardTotal }}

- name: Upload blob report
if: ${{ !cancelled() }}
Expand All @@ -67,26 +68,18 @@ jobs:
merge-reports:
name: Merge Reports
needs: run-tests
if: always() # run even if some shards fail
if: always()
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Setup Node.js 18.x
- name: Setup Node.js 20.x
uses: actions/setup-node@v3
with:
node-version: '18'

- name: Cache npm dependencies
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
node-version: "20"

- name: Install deps + browsers
- name: Install dependencies
run: |
npm ci
npx playwright install --with-deps
Expand All @@ -99,18 +92,23 @@ jobs:
merge-multiple: true

- name: Merge HTML & JSON reports
run: npx playwright merge-reports --config=playwright.config.js ./all-blob-reports
run: |
npx playwright merge-reports \
--config=playwright.config.js \
./all-blob-reports

- name: Upload combined report
- name: Upload combined Playwright report
uses: actions/upload-artifact@v4
with:
name: Playwright Test Report
path: ./playwright-report
retention-days: 14

- name: Send TestDino report
- name: Upload report to TestDino
env:
TESTDINO_TOKEN: ${{ secrets.TESTDINO_TOKEN }}
run: |
npx --yes tdpw ./playwright-report \
--token="${{ secrets.TESTDINO_TOKEN }}" \
--upload-html \
--verbose
npx tdpw upload ./playwright-report \
--upload-traces \
--upload-html \
--token="$TESTDINO_TOKEN"
15 changes: 4 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# playwright-sample-tests-javascript
# Ecommerce-demo-test-playwright

Automated end-to-end tests for [e-commerce demo site](https://demo.alphabin.co/) using [Playwright](https://playwright.dev/).
Automated end-to-end tests for Ecommerce Demo store using [Playwright](https://playwright.dev/).

---

Expand Down Expand Up @@ -63,9 +63,7 @@ reporter: [

After your tests complete and the report is generated in `playwright-report`, upload it to Testdino:

```sh
npx --yes tdpw ./playwright-report --token="YOUR_TESTDINO_API_KEY" --upload-html
```


Replace the token above with your own Testdino API key.

Expand All @@ -82,11 +80,7 @@ npx tdpw --help

Add the following step to your workflow after tests and report generation:

```yaml
- name: Send Testdino report
run: |
npx --yes tdpw ./playwright-report --token="YOUR_TESTDINO_API_KEY" --upload-html
```


Ensure your API key is correctly placed in the command.

Expand All @@ -106,4 +100,3 @@ Pull requests and issues are welcome!

## License

MIT
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading