fix: 兼容款式与套餐规格分组 (#166)
This commit is contained in:
@@ -337,6 +337,15 @@ class U2PddPurchaseAdapterTest(unittest.TestCase):
|
||||
self.assertEqual(device.clicks, [(790, 2214)])
|
||||
adapter.close()
|
||||
|
||||
def test_purchase_panel_recognizes_style_and_package_headings(self):
|
||||
xml_data = contextual_confirm_panel_xml().replace(
|
||||
'text="颜色分类"', 'text="款式"'
|
||||
).replace('text="尺码"', 'text="套餐"')
|
||||
root = ET.fromstring(xml_data)
|
||||
|
||||
self.assertEqual(_page_kind(root, ""), "order_confirmation")
|
||||
self.assertEqual(len(_final_submit_targets(root)), 1)
|
||||
|
||||
def test_plain_confirm_dialog_is_not_a_submit_target(self):
|
||||
root = ET.fromstring("""<hierarchy>
|
||||
<node package="com.xunmeng.pinduoduo" bounds="[0,0][1080,2340]">
|
||||
|
||||
Reference in New Issue
Block a user