def test_teacher_add_an_event_by_dragging_add_event_to_a_cale_111249(self):
"""Add an event by dragging Add Event to a calendar date.
Steps:
Click on the 'Add Assignment' menu
Click and Drag 'Add Event' to a chosen due date
Expected Result:
User is taken to 'Add Event' page with the date filled in.
"""
self.ps.test_updates['name'] = 't1.21.032' \
+ inspect.currentframe().f_code.co_name[4:]
self.ps.test_updates['tags'] = ['t1', 't1.21', 't1.21.032', '111249']
self.ps.test_updates['passed'] = False
# Test steps and verification assertions
raise NotImplementedError(inspect.currentframe().f_code.co_name)
# Assignment().open_assignment_menu(self.teacher.driver)
# self.teacher.sleep(1)
# calendar_date = self.teacher.wait.until(
# expect.element_to_be_clickable(
# (By.XPATH, '//div[contains(@class,"Day--upcoming")]')
# )
# )
# add_event = self.teacher.find(
# By.XPATH,
# '//ul[@class="new-assignments"]//a[contains(text(),"Add Event")]'
# )
# actions = ActionChains(self.teacher.driver)
# actions.drag_and_drop(add_event, calendar_date)
# actions.perform
# self.teacher.sleep(4)
# assert('event/new' in self.teacher.current_url()),\
# 'not at Add Event Assignment page'
self.ps.test_updates['passed'] = True
test_t1_21_CreateAnEvent.py 文件源码
python
阅读 23
收藏 0
点赞 0
评论 0
评论列表
文章目录