test_push_page.py 899 B

1234567891011121314151617181920212223242526
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. '''
  4. @File : test_push_page.py
  5. @Time : 2024/11/28 16:47:19
  6. @Author : dulip3ng
  7. @Version : 1.0
  8. @Desc : None
  9. '''
  10. from common.condition_row import ConditionRow
  11. def test_push_bill(list_page, push_page, home_page, filter_page):
  12. home_page.search_bill("销售订单列表")
  13. list_page.click_button("过滤")
  14. cond1 = ConditionRow(1, "单据编号", "XSDD2411020024")
  15. filter_page.filter(cond1)
  16. list_page.check_line_by_rows(1)
  17. list_page.click_button("下推")
  18. push_page.push_draw_bill("生产订单", "犀牛销售订单2生产订单", "直接入库-普通生产", "制衣事业部")
  19. home_page.close_bill_by_name("生产订单")
  20. home_page.get_hint_message("否")
  21. def test_push_bill_no_param(list_page, push_page, home_page):
  22. list_page.click_button("下推")
  23. push_page.push_draw_bill("生产订单")