Add Canonical badge for canonical branch

This commit is contained in:
Sebastian Martinez
2024-03-21 13:37:20 +01:00
parent 893af0c4b7
commit d401819d2e
4 changed files with 23 additions and 6 deletions
+4 -4
View File
@@ -152,8 +152,7 @@ test("pushing changes while viewing history", async ({ page, peerManager }) => {
await expect(page).toHaveURL(`${alice.uiUrl()}/${rid}/history`);
await expect(page.getByRole("link", { name: "Commits 2" })).toBeVisible();
await expect(page.getByTitle("Change branch")).toHaveText("main");
await expect(page.getByTitle("Current HEAD")).toHaveText("516fa74");
await expect(page.getByTitle("Change branch")).toHaveText("main Canonical");
await page
.getByRole("banner")
@@ -181,6 +180,7 @@ test("pushing changes while viewing history", async ({ page, peerManager }) => {
await expect(page.getByRole("link", { name: "Commits 3" })).toHaveText(
"Commits 3",
);
await expect(page.getByTitle("Change branch")).toHaveText("main");
await expect(page.getByTitle("Current HEAD")).toHaveText("bb9089a");
await expect(
page.getByRole("button", { name: "main Canonical" }),
).toBeVisible();
});