test_push_page.py 1023 B

1234567891011121314151617181920212223242526272829303132
  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. import time
  11. import pytest
  12. from playwright.sync_api import Page
  13. @pytest.fixture(scope="module", autouse=True)
  14. def open_bill(page: Page, login_page, home_page, list_page):
  15. page.goto("http://10.200.0.222/k3cloud/html5/")
  16. login_page.login('正式数据库', '杜立朋', 'lt_k31233')
  17. home_page.search_bill("销售订单列表")
  18. def test_push_bill(page: Page, list_page, push_page, home_page):
  19. list_page.check_line_by_rows(1)
  20. list_page.click_button("下推")
  21. push_page.push_draw_bill("生产订单", "犀牛销售订单2生产订单", "直接入库-普通生产", "制衣事业部")
  22. home_page.close_bill_by_name("生产订单")
  23. home_page.get_warning_message("否")
  24. def test_push_bill_no_param(page, list_page, push_page, home_page):
  25. list_page.click_button("下推")
  26. push_page.push_draw_bill("生产订单")