mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-05-09 15:05:26 +03:00
fix e2e test for chat navigation
This commit is contained in:
parent
76db9a46be
commit
93694c6215
@ -69,17 +69,18 @@ test.describe("Navigation — conditional items @critical", () => {
|
|||||||
).toBeVisible();
|
).toBeVisible();
|
||||||
});
|
});
|
||||||
|
|
||||||
test("/chat is hidden when genai.model is none (desktop)", async ({
|
test("/chat is hidden when no agent has the chat role (desktop)", async ({
|
||||||
frigateApp,
|
frigateApp,
|
||||||
}) => {
|
}) => {
|
||||||
test.skip(frigateApp.isMobile, "Desktop sidebar");
|
test.skip(frigateApp.isMobile, "Desktop sidebar");
|
||||||
await frigateApp.installDefaults({
|
await frigateApp.installDefaults({
|
||||||
config: {
|
config: {
|
||||||
genai: {
|
genai: {
|
||||||
enabled: false,
|
descriptions_only: {
|
||||||
provider: "ollama",
|
provider: "ollama",
|
||||||
model: "none",
|
model: "llava",
|
||||||
base_url: "",
|
roles: ["descriptions"],
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
@ -89,12 +90,20 @@ test.describe("Navigation — conditional items @critical", () => {
|
|||||||
).toHaveCount(0);
|
).toHaveCount(0);
|
||||||
});
|
});
|
||||||
|
|
||||||
test("/chat is visible when genai.model is set (desktop)", async ({
|
test("/chat is visible when an agent has the chat role (desktop)", async ({
|
||||||
frigateApp,
|
frigateApp,
|
||||||
}) => {
|
}) => {
|
||||||
test.skip(frigateApp.isMobile, "Desktop sidebar");
|
test.skip(frigateApp.isMobile, "Desktop sidebar");
|
||||||
await frigateApp.installDefaults({
|
await frigateApp.installDefaults({
|
||||||
config: { genai: { enabled: true, model: "llava" } },
|
config: {
|
||||||
|
genai: {
|
||||||
|
chat_agent: {
|
||||||
|
provider: "ollama",
|
||||||
|
model: "llava",
|
||||||
|
roles: ["chat"],
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
});
|
});
|
||||||
await frigateApp.goto("/");
|
await frigateApp.goto("/");
|
||||||
await expect(
|
await expect(
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user