fix(webui): align chat links with edit filename colors (#6484)
This commit is contained in:
1 parent
960bfa9a83
commit
164ddadd8e
10 files changed
+24
-10
No files matched your search
@@ -24,6 +24,7 @@ for (const width of [360, 1024]) {
|
||||
await expect(references.nth(1)).not.toContainText("…");
|
||||
// The last filename stays inside the clipping viewport, without reversing text direction.
|
||||
const filename = longPath.locator(".font-semibold");
|
||||
await expect(filename).toHaveCSS("color", "rgb(3, 105, 161)");
|
||||
const tail = await filename.evaluate((element) => {
|
||||
const clip = element.parentElement!.parentElement!.getBoundingClientRect();
|
||||
const name = element.getBoundingClientRect();
|
||||
@@ -33,6 +34,7 @@ for (const width of [360, 1024]) {
|
||||
expect(tail.right).toBeLessThanOrEqual(tail.clipRight + 1);
|
||||
await page.screenshot({ path: testInfo.outputPath("summary.png") });
|
||||
await longPath.hover();
|
||||
await expect(filename).toHaveCSS("color", "rgb(7, 89, 133)");
|
||||
const hint = page.getByRole("tooltip");
|
||||
await expect(hint).toHaveText(longEditPath);
|
||||
const surface = page.locator('[data-radix-popper-content-wrapper] > [data-state="delayed-open"], [data-radix-popper-content-wrapper] > [data-state="instant-open"]');
|
||||
|
||||
@@ -177,7 +177,7 @@ for (const narrow of [false, true]) {
|
||||
const externalLink = page.getByRole("link", { name: "外部文档", exact: true });
|
||||
await expect(externalLink).toHaveAttribute("href", "https://example.com/reference");
|
||||
await expect(externalLink).toHaveAttribute("target", "_blank");
|
||||
await expect(externalLink).toHaveCSS("color", theme === "light" ? "rgb(59, 130, 246)" : "rgb(147, 197, 253)");
|
||||
await expect(externalLink).toHaveCSS("color", theme === "light" ? "rgb(3, 105, 161)" : "rgb(186, 230, 253)");
|
||||
|
||||
const input = page.getByRole("textbox", { name: "Message input", exact: true });
|
||||
const overlay = page.locator(".thread-composer-input > div[aria-hidden]");
|
||||
|
||||
Reference in new issue
Block a user