fix(web): remove duplicate inline runtime status notes (2.0.9)
This commit is contained in:
@@ -131,11 +131,12 @@ class PageLoadingBrowserTests(unittest.TestCase):
|
||||
expect(panel.locator("tbody tr")).to_have_count(32)
|
||||
self.page.screenshot(path=str(artifacts / "settled-dense.png"))
|
||||
|
||||
def test_passive_refresh_preserves_editing_table_and_business_reasons(self):
|
||||
def test_passive_refresh_preserves_editing_table_without_inline_notes(self):
|
||||
self.open()
|
||||
panel = self.bag()
|
||||
expect(panel.locator("tbody tr")).to_have_count(32)
|
||||
expect(panel.locator('[data-view-status="planner_notes"]')).to_have_text("金币不足,等待补货")
|
||||
expect(panel.locator('[data-view-status="planner_notes"]')).to_have_count(0)
|
||||
expect(panel).not_to_contain_text("金币不足,等待补货")
|
||||
self.assertNotIn("STATIC_HELP_SENTINEL", panel.inner_text())
|
||||
self.assertNotIn("STATIC_NOTE_SENTINEL", panel.inner_text())
|
||||
self.assertEqual(panel.locator(".info-note, .field-help").count(), 0)
|
||||
@@ -156,6 +157,7 @@ class PageLoadingBrowserTests(unittest.TestCase):
|
||||
expect(field).to_be_focused()
|
||||
expect(field).to_have_value("")
|
||||
self.assertTrue(field.evaluate("node => node === window.loadingField && window.loadingTable.isConnected && node.closest('.page-panel').querySelector('table') === window.loadingTable"))
|
||||
expect(panel).not_to_contain_text("金币不足,等待补货")
|
||||
expect(self.page.locator("#log-panel")).to_be_hidden()
|
||||
self.assertEqual(self.page.locator("#log-panel").count(), 1)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user