T-580 精简设置页更新执行配置
This commit is contained in:
@@ -780,7 +780,7 @@ class EditorLoginTests(unittest.TestCase):
|
||||
sleep.assert_called_once_with(2)
|
||||
close_tab.assert_called_once_with("target-new", host="127.0.0.1:9222")
|
||||
|
||||
def test_apply_task_keeps_auto_created_product_tab_after_success_when_disabled(self):
|
||||
def test_apply_task_closes_auto_created_product_tab_after_success_even_with_legacy_disabled_flag(self):
|
||||
cdp = FakeProductCDP("ws-new")
|
||||
cdp.target_id = "target-new"
|
||||
cdp.created_by_app = True
|
||||
@@ -803,8 +803,8 @@ class EditorLoginTests(unittest.TestCase):
|
||||
|
||||
self.assertTrue(result["committed"])
|
||||
self.assertTrue(cdp.closed)
|
||||
close_tab.assert_not_called()
|
||||
sleep.assert_not_called()
|
||||
sleep.assert_called_once_with(2)
|
||||
close_tab.assert_called_once_with("target-new", host="127.0.0.1:9222")
|
||||
|
||||
def test_apply_task_closes_auto_created_product_tab_after_failed_update(self):
|
||||
cdp = FakeProductCDP("ws-new")
|
||||
|
||||
Reference in New Issue
Block a user