Moved to Forgejo infrastructure
All checks were successful
Production Build and Deploy / Build (push) Successful in 1m11s
Production Build and Deploy / Deploy (push) Successful in 7s

This commit is contained in:
Liviu Burcusel 2025-12-05 16:52:09 +01:00
parent b5b082bc5d
commit 30a89d6662
Signed by: liviu
GPG key ID: 6CDB37A4AD2C610C
14 changed files with 1455 additions and 861 deletions

View file

@ -26,7 +26,7 @@ describe("Topbar.vue", () => {
it("renders the logo image and text", () => {
const logo = wrapper.find(".layout-topbar-logo");
expect(logo.exists()).toBe(true);
expect(logo.find("img").attributes("alt")).toBe("Two stick silhouettes admiring fireworks in the sky");
expect(logo.find("img").attributes("alt")).toBe("Git like tree using red, white-ish and blue colours.");
expect(logo.text()).toContain("Glowing Fiesta");
});
@ -81,12 +81,16 @@ describe("Topbar.vue", () => {
it("updates isDarkTheme ref when toggled", async () => {
const darkModeButton = wrapper.find(".layout-topbar-action-highlight");
// @ts-expect-error: it's a test accessing vm property
expect(wrapper.vm.isDarkTheme).toBe(false);
await darkModeButton.trigger("click");
// @ts-expect-error: it's a test accessing vm property
expect(wrapper.vm.isDarkTheme).toBe(true);
await darkModeButton.trigger("click");
// @ts-expect-error: it's a test accessing vm property
expect(wrapper.vm.isDarkTheme).toBe(false);
});
});
@ -123,7 +127,7 @@ describe("Topbar.vue", () => {
it("has correct image source", () => {
const img = wrapper.find(".layout-topbar-logo img");
expect(img.attributes("src")).toContain("logo.png");
expect(img.attributes("src")).toContain("data:image/svg+xml");
});
});