Shopify E2E Testing
This document outlines the automated end-to-end test scenarios for the Shopify-DATEV export platform, focusing on order processing, payment handling, and DATEV export validation.Note: All tests follow the standardized test ID system. For details on the naming conventions, see the E2E Testing Conventions.
Automation Approach
All tests described in this document are implemented as automated tests using Playwright. The documentation serves as a reference for:- What functionality is being tested by our automation suite
- The business scenarios that each test validates
- Expected outcomes that the automated assertions verify
tests/e2e/shopify
directory with filenames matching the test IDs.
Test Orders (Shopify E2E Store)
The following baseline test orders exist in the Shopify E2E store for validation:Order Number | VAT | Product | Payment Provider | Payment Method | Fulfillment | Country | Date |
---|---|---|---|---|---|---|---|
#1001 | 19% | Simple product | Shopify Payments | Mastercard | Fulfilled | Germany | 10.08.2025 |
#1002 | 19% | Simple product | PayPal | PayPal | Fulfilled | Germany | 10.08.2025 |
Test Customers (Shopify E2E Store)
The following customers exist in the Shopify E2E store to validate B2C vs B2B handling based on VAT ID presence:Customer | Type | VAT ID in Shopify |
---|---|---|
Shayna Runolfsson | B2C | No |
Mirja Lammert | B2B | Yes |
Core Test Scenarios
Basic Order with VAT Processing
SH-CORE-001
- Order and Shopify Payments capture in CONA system
- Journal entry creation with Fallback Accounts in CONA system
- DATEV export generation contains:
- Revenue entry with correct 19% VAT
- Payment record (marked as not yet reconciled)
- Proper tax account assignment
Payment Reconciliation Flow
SH-CORE-002
- Creation of multiple orders with Shopify Payments
- Reconciliation process in CONA
- Updated DATEV export generation
- Payment reconciliation status in DATEV export
Multi-Tax Rate Order Processing
SH-CORE-003
- Product creation with different VAT rates
- Purchase with mixed VAT products
- DATEV export tax splitting accuracy
Refund Processing
SH-CORE-004
- Order creation and completion
- Full refund processing
- Partial refund processing
- DATEV export refund entries and VAT handling
Multi-Currency Handling
SH-CORE-005
- Multi-currency shop configuration
- Purchases in different currencies
- DATEV export currency conversion
Discount Handling
SH-CORE-006
- Order creation with percentage discounts
- Order creation with fixed amount discounts
- Order creation with free shipping discounts
- DATEV export discount accounting treatment
Gift Card Processing
SH-CORE-007
- Gift card purchase and activation
- Gift card redemption in orders
- Partial gift card usage
- DATEV export gift card accounting treatment
Integration Test Scenarios
DATEV Export Format Validation
SH-INT-002
- Exports with various data combinations
- Export structure validation against DATEV specifications
Error Handling Test Scenarios
Incomplete Data Handling
SH-ERR-001
- Orders with incomplete tax information
- DATEV export generation with incomplete data
- Error handling and logging mechanisms
Synchronization Failure Recovery
SH-ERR-002
- Simulated Shopify API failures
- Recovery mechanism triggering and execution
- Data consistency after recovery
Performance Test Scenarios
Bulk Order Processing
SH-PERF-001
- Large batch order generation and processing
- System performance under load
- DATEV export generation timing
Large DATEV Export Generation
SH-PERF-002
- Large dataset preparation
- Export generation performance
- Resource utilization during generation
End-to-End User Journey Tests
Complete Accounting Cycle
SH-E2E-001
- Shop setup with products and tax rates
- Monthly transaction generation
- Payment and reconciliation processing
- Month-end export generation
- Export completeness validation