fix(driver): remove system popup cancel step from load/unload flow

以后装货/卸货流程不再有系统弹窗,去掉对应的取消弹窗点击步骤
(cancel_btn 定位器 + 两处流程步骤 + docstring 描述同步)。
This commit is contained in:
xst
2026-09-02 11:00:15 +08:00
parent 73b93bdf0c
commit 6ee7ade67d
2 changed files with 2 additions and 9 deletions
+2 -2
View File
@@ -3,8 +3,8 @@
业务流程:
司机 APP (Android):
1. 接单: 点击货源 → 选择货源单 → 填写数量 → 勾选协议 → 接单
2. 装货: 装货 → 取消弹窗 → 吨位 → 选图 → 相册 → 勾图 → 完成 → 勾选 → 装货确认 → 合同 → 已知晓 → 确定
3. 卸货: 卸货 → 取消弹窗 → 吨位 → 选图 → 相册 → 勾图 → 完成 → 卸货确认 → 确定
2. 装货: 装货 → 吨位 → 选图 → 相册 → 勾图 → 完成 → 勾选 → 装货确认 → 合同 → 已知晓 → 确定
3. 卸货: 卸货 → 吨位 → 选图 → 相册 → 勾图 → 完成 → 卸货确认 → 确定
4. 获取运输单号
Web 管理端 (基础流程):
-7
View File
@@ -39,9 +39,6 @@ class DriverFreightFlowPage(AppBasePage):
# ── 接单 ──
self.accept_order_btn = (AppiumBy.ID, "com.arpa.ynchenggangdriver:id/tv_bian")
# ── 系统弹窗取消 ──
self.cancel_btn = (AppiumBy.ID, "android:id/button2")
# ── 吨位 ──
self.weight_input = (AppiumBy.ID, "com.arpa.ynchenggangdriver:id/et_dun")
@@ -137,8 +134,6 @@ class DriverFreightFlowPage(AppBasePage):
"""装货完整流程。"""
self._tap_by_text("装货") # ⑥ 点击装货
self.driver.implicitly_wait(1)
self._wait_and_click(self.cancel_btn) # ⑦ 点击取消(系统弹窗)
self.driver.implicitly_wait(1)
self._wait_and_fill(self.weight_input, weight) # ⑧ 输入吨位
self._wait_and_click(self.select_image_btn) # ⑨ 选择图片
self.driver.implicitly_wait(1)
@@ -164,8 +159,6 @@ class DriverFreightFlowPage(AppBasePage):
"""卸货完整流程。"""
self._tap_by_text("卸货") # ⑲ 点击卸货
self.driver.implicitly_wait(1)
self._wait_and_click(self.cancel_btn) # ⑳ 点击取消(系统弹窗)
self.driver.implicitly_wait(1)
self._wait_and_fill(self.weight_input, weight) # ㉑ 输入吨位
self._wait_and_click(self.select_image_btn) # ㉒ 选择图片
self.driver.implicitly_wait(1)