feat(cross_end): add cross-platform E2E test support for freight full flow
Add tests/cross_end/ directory with dual-driver architecture:
- conftest.py: Playwright admin_page + Appium app_driver fixtures
- Admin Page Objects: FreightSourcePage, WaybillManagementPage, SettlementPage
- App Page Objects: DriverOrderListPage, DriverTransportPage, DriverHomePage (re-export)
- test_freight_full_flow.py: 8-step end-to-end test (publish → accept → load → unload → accounting → review → shipper pay → platform pay)
- Shared context dict for cross-step data passing
- Graceful skip when either Playwright or Appium is unavailable
- All selectors marked with ⚠️ placeholders for discovery against real environments
Add cross_end marker to pytest.ini for selective execution.
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
"""跨端测试 — 司机端首页 Page Object。
|
||||
|
||||
直接复用 tests/app/driver_android/pages/driver_home_page.py。
|
||||
"""
|
||||
|
||||
# re-export existing page object
|
||||
from tests.app.driver_android.pages.driver_home_page import DriverHomePage # noqa: F401
|
||||
Reference in New Issue
Block a user