Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions core/http/react-ui/e2e/models-gallery.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,9 @@ test.describe('Models Gallery - Fits In GPU Filter', () => {
test('enabling fits filter hides models that exceed available VRAM', async ({ page }) => {
await expect(page.locator('tr', { hasText: 'stablediffusion-model' })).toBeVisible()

await page.getByLabel('Fits in GPU').check()
// The shared <Toggle> visually hides its native input (opacity:0;w:0;h:0),
// so .check() can't interact with it directly — click the visible track.
await page.locator('label.filter-bar-group__toggle', { hasText: 'Fits in GPU' }).locator('.toggle__track').click()

await expect(page.locator('tr', { hasText: 'stablediffusion-model' })).toHaveCount(0)
await expect(page.locator('tr', { hasText: 'llama-model' })).toBeVisible()
Expand All @@ -298,7 +300,7 @@ test.describe('Models Gallery - Fits In GPU Filter', () => {
})

test('fits filter state persists after reload', async ({ page }) => {
await page.getByLabel('Fits in GPU').check()
await page.locator('label.filter-bar-group__toggle', { hasText: 'Fits in GPU' }).locator('.toggle__track').click()
await page.reload()
await expect(page.getByLabel('Fits in GPU')).toBeChecked()
})
Expand Down
Loading