Skip to content

Commit

Permalink
fix: fixed product test cases and improved config file
Browse files Browse the repository at this point in the history
  • Loading branch information
devansh-webkul committed Feb 13, 2025
1 parent 68a7a3d commit f5d075f
Show file tree
Hide file tree
Showing 12 changed files with 305 additions and 565 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/admin_playwright_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ jobs:
operating-systems: [ubuntu-latest]
php-versions: ['8.3']
node-version: ['22.13.1']
shard-index: [1]
shard-total: [1]
shard-index: [1,2,3,4,5,6]
shard-total: [6]

name: Admin | Playwright Tests | Shard ${{ matrix.shard-index }} Of ${{ matrix.shard-total }}

Expand Down
11 changes: 10 additions & 1 deletion packages/Webkul/Admin/tests/e2e-pw/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ dotenv.config({ path: path.resolve(__dirname, "../../../../../.env") });
export default defineConfig({
testDir: "./tests",

timeout: 30 * 1000,

outputDir: "./test-results",

fullyParallel: false,
Expand All @@ -23,7 +25,14 @@ export default defineConfig({

reportSlowTests: null,

reporter: "html",
reporter: [
[
'html',
{
outputFolder: './playwright-report',
}
]
],

use: {
screenshot: { mode: 'only-on-failure', fullPage: true },
Expand Down
Loading

0 comments on commit f5d075f

Please sign in to comment.