def test_admin_set_the_number_of_sections_100136(self):
"""Set the number of sections.
Steps:
Expected Result:
"""
self.ps.test_updates['name'] = 't1.59.022' \
+ inspect.currentframe().f_code.co_name[4:]
self.ps.test_updates['tags'] = ['t1', 't1.59', 't1.59.022', '100136']
self.ps.test_updates['passed'] = False
# Test steps and verification assertions
self.admin.wait.until(
expect.visibility_of_element_located(
(By.PARTIAL_LINK_TEXT, 'Course Organization')
)
).click()
self.admin.wait.until(
expect.visibility_of_element_located(
(By.PARTIAL_LINK_TEXT, 'Courses')
)
).click()
# Create the course
self.admin.find(By.XPATH, "//a[text()='Add Course']").click()
self.admin.find(
By.ID, "course_num_sections"
).send_keys((Keys.DELETE) + str(1))
self.ps.test_updates['passed'] = True
# Case C100137 - 023 - Admin | Set the course start date and time
test_t1_59_ManageDistrictsSchoolsAndCourses.py 文件源码
python
阅读 16
收藏 0
点赞 0
评论 0
评论列表
文章目录