def step_estimateCreditManager(context):
    b = Page(context.driver)
    time.sleep(1)
    b.close_alert()
    global my_order
    my_order = ServiceManageOrderPage(context.driver)
    my_order.estimateCreditManager(data.getCaseInitClient('我的订单')['cmp_name'])
    my_order.setWaitTime(2)
    functions.insert_img(context.driver, "myOrder_moveSubsOrderToOrgApproval_"+current_time+".png")
def step_estimateCreditManager(context):
    b = Page(context.driver)
    time.sleep(1)
    b.close_alert()
    global my_order
    my_order = ServiceManageOrderPage(context.driver)
    my_order.estimateCreditManager(data.getCaseInitClient('我的订单')['cmp_name'])
    my_order.setWaitTime(2)
    functions.insert_img(
        context.driver,
        "myOrder_moveSubsOrderToOrgApproval_" + current_time + ".png")
 def aa_test_0007_estimateCreditManager(self):
     self.user_login_verify()
     time.sleep(1)
     b = Page(self.driver)
     time.sleep(1)
     b.close_alert()
     my_order = ServiceManageOrderPage(self.driver)
     my_order.estimateCreditManager(Data.cmp_name)
     my_order.setWaitTime(2)
     # self.assertEqual(my_order.search_by_fuzzy(), '需求书修改有限公司')
     functions.insert_img(self.driver, current_time + "__myOrder_moveSubsOrderToOrgApproval.png")
     my_order.close()