fix(apply): foreground every product update

This commit is contained in:
chengma
2026-07-11 22:30:19 +08:00
parent 9ac44bdce2
commit 6979710088
6 changed files with 12 additions and 21 deletions
+1
View File
@@ -473,6 +473,7 @@ class EditorLoginTests(unittest.TestCase):
self.assertEqual("target-new", cdp.target_id)
self.assertTrue(cdp.created_by_app)
self.assertEqual("127.0.0.1:9223", cdp.cdp_host)
self.assertIn(("Page.bringToFront", {}), fake.sent)
create_tab_info.assert_called_once_with(
(
"https://seller.shopee.tw/portal/product/51100639511"
+2 -2
View File
@@ -5871,7 +5871,7 @@ class GuiTests(TempDirMixin, unittest.TestCase):
self.assert_removed(temp_dir)
def test_apply_worker_brings_each_account_to_front_only_once_across_batches(self):
def test_apply_worker_brings_every_product_to_front_across_batches(self):
with self.make_temp_dir() as temp_dir:
cfg = self.make_config(temp_dir)
accounts.create_account("主店", "alias-a", debug_port=9222, config=cfg)
@@ -5921,7 +5921,7 @@ class GuiTests(TempDirMixin, unittest.TestCase):
).execute()
self.assertTrue(summary["ok"])
self.assertEqual([True, False], foreground_flags)
self.assertEqual([True, True], foreground_flags)
self.assertEqual(2, summary["batch_count"])
self.assert_removed(temp_dir)