更新
This commit is contained in:
@@ -278,8 +278,10 @@ def test_field_order_density_and_conditional_channel_row(
|
||||
application.processEvents()
|
||||
|
||||
|
||||
@pytest.mark.parametrize("mode", ["video", "text"])
|
||||
def test_roster_slot_states_conflict_refresh_and_submit_contract(
|
||||
application: QApplication,
|
||||
mode: str,
|
||||
) -> None:
|
||||
repository = _VisualRepository(today_conflict=True)
|
||||
host, drawer = _show_drawer(
|
||||
@@ -318,6 +320,10 @@ def test_roster_slot_states_conflict_refresh_and_submit_contract(
|
||||
assert unavailable.status_label.isVisible()
|
||||
assert unavailable.accessibleName() == "10:00-10:30 已约"
|
||||
available.click()
|
||||
if mode == "text":
|
||||
drawer.text_appointment_type_radio.click()
|
||||
assert drawer.text_appointment_type_radio.isChecked()
|
||||
assert not drawer.appointment_type_radio.isChecked()
|
||||
drawer.channel_source.setCurrentIndex(drawer.channel_source.findData("online"))
|
||||
assert drawer.ok_button.isEnabled()
|
||||
|
||||
@@ -328,7 +334,7 @@ def test_roster_slot_states_conflict_refresh_and_submit_contract(
|
||||
"appointment_date": tomorrow,
|
||||
"appointment_time": "09:30-10:00",
|
||||
"period": "all",
|
||||
"appointment_type": "video",
|
||||
"appointment_type": mode,
|
||||
"remark": "",
|
||||
"channel_source": "online",
|
||||
"channel_source_detail": "",
|
||||
|
||||
Reference in New Issue
Block a user