test(ui): scope quota pill e2e selector · openclaw/openclaw@5dfbb9d
vincentkoc
·
2026-06-23
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -88,13 +88,13 @@ describeE2e("Control UI #93041 desktop chat quota pill (mocked Gateway E2E)", ()
|
88 | 88 | const fixture = await openChat(authStatusWithUsage); |
89 | 89 | const { page } = fixture; |
90 | 90 | try { |
91 | | -const pill = page.locator('[data-chat-provider-usage="true"]'); |
| 91 | +const composerControls = page.locator(".agent-chat__composer-controls").first(); |
| 92 | +const pill = composerControls.locator('[data-chat-provider-usage="true"]'); |
92 | 93 | await pill.waitFor({ state: "visible" }); |
93 | 94 | await page.screenshot({ path: path.join(artifactDir, "01-chat-with-pill.png") }); |
94 | | -await page |
95 | | -.locator(".agent-chat__composer-controls") |
96 | | -.first() |
97 | | -.screenshot({ path: path.join(artifactDir, "02-composer-controls.png") }); |
| 95 | +await composerControls.screenshot({ |
| 96 | +path: path.join(artifactDir, "02-composer-controls.png"), |
| 97 | +}); |
98 | 98 | |
99 | 99 | const text = (await pill.textContent())?.replace(/\s+/g, " ").trim(); |
100 | 100 | expect(text).toContain("Usage"); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。