mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-16 11:50:42 +08:00
Change commit browse icon tooltip
This commit is contained in:
@@ -440,7 +440,7 @@
|
||||
path: filePath,
|
||||
revision,
|
||||
}}>
|
||||
<IconButton title="View file">
|
||||
<IconButton title="View file at this commit">
|
||||
<IconSmall name="chevron-left-right" />
|
||||
</IconButton>
|
||||
</Link>
|
||||
|
||||
@@ -61,7 +61,7 @@
|
||||
path: newPath,
|
||||
revision,
|
||||
}}>
|
||||
<IconButton title="View file">
|
||||
<IconButton title="View file at this commit">
|
||||
<IconSmall name="chevron-left-right" />
|
||||
</IconButton>
|
||||
</Link>
|
||||
|
||||
@@ -82,7 +82,7 @@
|
||||
<div style:margin-bottom="1rem">
|
||||
<CompactCommitAuthorship {commit} />
|
||||
</div>
|
||||
<IconButton title="Browse the repository at this point in the history">
|
||||
<IconButton title="Browse repo at this commit">
|
||||
<Link
|
||||
route={{
|
||||
resource: "project.source",
|
||||
|
||||
@@ -58,7 +58,7 @@
|
||||
path: "/",
|
||||
revision: commit.commit.id,
|
||||
}}>
|
||||
<Button variant="outline" title="View tree">
|
||||
<Button variant="outline" title="Browse repo at this commit">
|
||||
<IconSmall name="chevron-left-right" />
|
||||
</Button>
|
||||
</Link>
|
||||
|
||||
@@ -91,7 +91,7 @@
|
||||
</div>
|
||||
<div class="right">
|
||||
<div style:display="flex" style:gap="1rem" style:height="1.5rem">
|
||||
<IconButton title="Browse the repository at this point in the history">
|
||||
<IconButton title="Browse repo at this commit">
|
||||
<Link
|
||||
route={{
|
||||
resource: "project.source",
|
||||
|
||||
@@ -59,7 +59,7 @@ test("show source tree at specific revision", async ({ page }) => {
|
||||
await page
|
||||
.locator(".teaser", { hasText: "335dd6d" })
|
||||
.getByRole("button", {
|
||||
name: "Browse the repository at this point in the history",
|
||||
name: "Browse repo at this commit",
|
||||
})
|
||||
.click();
|
||||
|
||||
|
||||
@@ -112,7 +112,7 @@ test("navigation to source tree at specific revision", async ({ page }) => {
|
||||
);
|
||||
|
||||
// Go to source tree at this revision.
|
||||
await page.getByTitle("View file").click();
|
||||
await page.getByTitle("View file at this commit").click();
|
||||
await expect(
|
||||
page.getByText("Add a deeply nested directory tree"),
|
||||
).toBeVisible();
|
||||
|
||||
@@ -128,7 +128,7 @@ test("view file navigation from changes tab", async ({ page }) => {
|
||||
await page.getByRole("link", { name: "Add subtitle to README" }).click();
|
||||
await page.getByRole("link", { name: "Changes" }).click();
|
||||
await page.getByRole("button", { name: "Changes" }).click();
|
||||
await page.getByRole("button", { name: "View file" }).click();
|
||||
await page.getByRole("button", { name: "View file at this commit" }).click();
|
||||
await expect(page).toHaveURL(
|
||||
`${cobUrl}/tree/8c900d6cb38811e099efb3cbbdbfaba817bcf970/README.md`,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user