ui: keep policy controls close to their labels
This commit is contained in:
@@ -228,9 +228,9 @@ class AutoReloginBrowserTests(unittest.TestCase):
|
||||
panel.get_by_role("button", name="进入选中区服", exact=True).click()
|
||||
expect(toggle).to_have_text("停止")
|
||||
expect(toggle).to_have_attribute("aria-pressed", "true")
|
||||
expect(self.page.locator("#notice")).to_contain_text("已自动开启策略")
|
||||
expect(self.page.locator("#status-text")).to_contain_text("正在自动执行")
|
||||
expect(self.page.locator("#data-summary")).to_contain_text("正在自动执行")
|
||||
expect(self.page.locator("#notice")).to_contain_text("已读取角色,策略运行中")
|
||||
expect(self.page.locator("#status-text")).to_contain_text("策略运行中")
|
||||
expect(self.page.locator("#data-summary")).to_contain_text("策略运行中")
|
||||
expect(self.page.locator("#page-tabs [role=tab]")).to_have_count(15)
|
||||
self.assertEqual(self.configs[self.first], original, "Logging in must preserve every feature selection")
|
||||
toggle.click()
|
||||
@@ -429,7 +429,7 @@ class AutoReloginBrowserTests(unittest.TestCase):
|
||||
running=True, strategy_requested=True, strategy_state="running")
|
||||
expect(status).to_contain_text("已恢复监控并自动执行已勾选功能")
|
||||
expect(self.page.locator("#strategy-toggle")).to_have_text("停止")
|
||||
expect(self.page.locator("#data-summary")).to_contain_text("正在自动执行")
|
||||
expect(self.page.locator("#data-summary")).to_contain_text("策略运行中")
|
||||
self.assertEqual(self.configs[self.first], original)
|
||||
self.assertEqual(self.actions, [])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user