Commit 7fc3f294 authored by gaotao's avatar gaotao

基本案情优化

parent a18825d4
...@@ -255,11 +255,14 @@ def test_notnulladdr(engine): ...@@ -255,11 +255,14 @@ def test_notnulladdr(engine):
@pytest.mark.basicmatter @pytest.mark.basicmatter
@get_engine(__file__, url=URL1.format(**params1)) @get_engine(__file__, url=URL1.format(**params1))
def test_notnullSpecifPerson(engine): def test_notnullSpecifPerson(engine): # 特定人员不为空
# engine.get_page(engine.DQZ) # engine.get_page(engine.DQZ)
engine.driver.xpath("//div[@id='起诉意见书_犯罪嫌疑人_0_特定人员']")[0].click() # engine.driver.xpath("//div[@id='起诉意见书_犯罪嫌疑人_0_特定人员']")[0].click()
engine.driver.xpath("//li[@data='聋哑人']")[0].click() # engine.driver.xpath("//li[@data='盲人']")[0].click()
if len(engine.driver.xpath("//div[@id='起诉意见书_犯罪嫌疑人_0_特定人员']//ul/li")) == 1:
engine.driver.xpath("//div[@id='起诉意见书_犯罪嫌疑人_0_特定人员']")[0].click()
engine.driver.xpath("//li[@data='盲人']")[0].click()
time.sleep(0.5) time.sleep(0.5)
save_button = engine.driver.xpath("//span[text()='保存']/..")[0] save_button = engine.driver.xpath("//span[text()='保存']/..")[0]
save_button.click() save_button.click()
...@@ -326,7 +329,7 @@ def test_IncorrectFormatFilingTime(engine): # 立案时间格式于标准不一 ...@@ -326,7 +329,7 @@ def test_IncorrectFormatFilingTime(engine): # 立案时间格式于标准不一
save_button.click() save_button.click()
time.sleep(0.5) time.sleep(0.5)
message = engine.driver.xpath("//div[@class='ant-message']//span[text()='日期格式不正确!']") message = engine.driver.xpath("//div[@class='ant-message']//span[text()='日期格式不正确!']")
assert len(message) == 1 and '不提示格式不正确!!' assert len(message) == 1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment