mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-03-24 14:42:11 -03:00
test(frontend): add loras page manager suite
This commit is contained in:
25
tests/frontend/utils/pageFixtures.js
Normal file
25
tests/frontend/utils/pageFixtures.js
Normal file
@@ -0,0 +1,25 @@
|
||||
import { renderTemplate } from './domFixtures.js';
|
||||
|
||||
/**
|
||||
* Renders the LoRAs page template with expected dataset attributes.
|
||||
* @returns {Element}
|
||||
*/
|
||||
export function renderLorasPage() {
|
||||
return renderTemplate('loras.html', {
|
||||
dataset: {
|
||||
page: 'loras',
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Renders the Checkpoints page template with expected dataset attributes.
|
||||
* @returns {Element}
|
||||
*/
|
||||
export function renderCheckpointsPage() {
|
||||
return renderTemplate('checkpoints.html', {
|
||||
dataset: {
|
||||
page: 'checkpoints',
|
||||
},
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user