mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-03-26 07:35:44 -03:00
test: add prompt filter option to recipes page tests
This commit is contained in:
@@ -110,7 +110,7 @@ describe('RecipeManager', () => {
|
|||||||
initializeAppMock.mockResolvedValue(undefined);
|
initializeAppMock.mockResolvedValue(undefined);
|
||||||
initializePageFeaturesMock.mockResolvedValue(undefined);
|
initializePageFeaturesMock.mockResolvedValue(undefined);
|
||||||
refreshVirtualScrollMock.mockReset();
|
refreshVirtualScrollMock.mockReset();
|
||||||
refreshVirtualScrollMock.mockImplementation(() => {});
|
refreshVirtualScrollMock.mockImplementation(() => { });
|
||||||
refreshRecipesMock.mockResolvedValue('refreshed');
|
refreshRecipesMock.mockResolvedValue('refreshed');
|
||||||
|
|
||||||
getSessionItemMock.mockImplementation((key) => {
|
getSessionItemMock.mockImplementation((key) => {
|
||||||
@@ -121,7 +121,7 @@ describe('RecipeManager', () => {
|
|||||||
};
|
};
|
||||||
return map[key] ?? null;
|
return map[key] ?? null;
|
||||||
});
|
});
|
||||||
removeSessionItemMock.mockImplementation(() => {});
|
removeSessionItemMock.mockImplementation(() => { });
|
||||||
|
|
||||||
renderRecipesPage();
|
renderRecipesPage();
|
||||||
|
|
||||||
@@ -158,6 +158,7 @@ describe('RecipeManager', () => {
|
|||||||
tags: true,
|
tags: true,
|
||||||
loraName: true,
|
loraName: true,
|
||||||
loraModel: true,
|
loraModel: true,
|
||||||
|
prompt: true,
|
||||||
recursive: true,
|
recursive: true,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user