Commit 6301840d by zhangying

新增case取消禁言

parent 435d5bb4
......@@ -14,7 +14,7 @@ class LiveDiscussPage(MainPage):
# 学员未禁言
discuss_forbid = (By.XPATH, "//div/label[@class='ant-checkbox-wrapper']")
# 学员已禁言
discuss_forbided = (By.XPATH, "//div/label[@class='ant-checkbox-wrapper ant-checkbox-wrapper-checked']/span")
discuss_forbided = (By.XPATH, "//div/label[@class='ant-checkbox-wrapper ant-checkbox-wrapper-checked']")
# 讨论文字显示区
message_box = (By.XPATH, """//div[@class='messageBox mine']//div[text()="discuss"]""")
......
......@@ -71,7 +71,7 @@ class TestLivePage(object):
assert self.Live_Discuss_Page.ifElementExist(self.Live_Discuss_Page.discuss_box)
@pytest.mark.run(order=4)
@allure.title("全员禁言")
@allure.title("全员禁言/取消禁言")
def testDiscussField1(self):
# 点击“讨论”按钮
self.Live_Discuss_Page.click_discuss_tab()
......@@ -81,6 +81,13 @@ class TestLivePage(object):
assert self.Live_Discuss_Page.ifElementExist(self.Live_Discuss_Page.discuss_forbided)
self.Live_Discuss_Page.click_discuss_forbided()
self.Live_Discuss_Page.sleep(2)
assert self.Live_Discuss_Page.ifElementExist(self.Live_Discuss_Page.discuss_forbid)
if __name__ == '__main__':
pytest.main(["-v"])
\ No newline at end of file
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