Skip to content

Commit ca7f6fa

Browse files
feat(tests): Enhance Playwright test suite (#231)
* feat(tests): Enhance Playwright test suite with comprehensive traffic simulations - Added TypeScript support and updated dependencies in package.json. - Introduced detailed test configurations for store admin and storefront. - Created a structured test suite for traffic simulations, including: - Casual Browser tests simulating various shopper behaviors. - Malicious Buyer tests to validate security against common vulnerabilities. - Single Item Buyer tests for focused purchasing scenarios. - Implemented retry logic for navigation and interactions to improve test reliability. - Documented test categories and usage instructions in README files. - Ensured graceful handling of non-existent products and malicious inputs. * Update tests/traffic/single-item-buyer.spec.ts Co-authored-by: Copilot <[email protected]> --------- Co-authored-by: Copilot <[email protected]>
1 parent 0d8d93b commit ca7f6fa

21 files changed

+2569
-115
lines changed

.github/workflows/test-playwright.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ jobs:
3434
working-directory: tests
3535
env:
3636
PLAYWRIGHT_SERVICE_URL: ${{ secrets.PLAYWRIGHT_SERVICE_URL }}
37-
STORE_ADMIN_URL: ${{ inputs.storeAdminUrl }}
38-
STORE_FRONT_URL: ${{ inputs.storeFrontUrl }}
37+
SERVICE_STORE_ADMIN_ENDPOINT_URL: ${{ inputs.storeAdminUrl }}
38+
SERVICE_STORE_FRONT_ENDPOINT_URL: ${{ inputs.storeFrontUrl }}
39+
COMPANY_NAME: 'Contoso'
3940
CI: true

0 commit comments

Comments
 (0)