diff --git a/.gitea/workflows/e2e.yml b/.gitea/workflows/e2e.yml new file mode 100644 index 0000000..42d6acd --- /dev/null +++ b/.gitea/workflows/e2e.yml @@ -0,0 +1,45 @@ +name: E2E Playwright Tests + +on: + push: + branches: + - main + - develop + pull_request: + branches: + - main + - develop + +jobs: + test-e2e: + name: Run Full E2E & Security Suites + runs-on: ubuntu-latest + steps: + - name: Checkout Code + uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: 20 + cache: 'npm' + + - name: Install Monorepo Dependencies + run: npm ci + + - name: Install Playwright Browsers + run: npx playwright install --with-deps chromium + + - name: Run E2E Test Suite + run: npx playwright test --project=chromium-desktop --project=admin-chromium + env: + CI: true + NODE_ENV: test + + - name: Upload Test Report + if: always() + uses: actions/upload-artifact@v4 + with: + name: playwright-report + path: playwright-report/ + retention-days: 14 diff --git a/frontend/admin-panel/src/pages/B2BManager.tsx b/frontend/admin-panel/src/pages/B2BManager.tsx index 3764bfd..abb2f2e 100644 --- a/frontend/admin-panel/src/pages/B2BManager.tsx +++ b/frontend/admin-panel/src/pages/B2BManager.tsx @@ -169,6 +169,7 @@ export default function B2BManager() { {/* Tab Toggle */}
-
@@ -794,6 +794,7 @@ export default function Blogs() {
- {toPersian(item.quantity)} + {toPersian(item.quantity)}
) : (product.packageSize || 0) <= 0 ? ( ) : (