Enhance hero selection functionality in LiveSeriesPage by adding search and role filter options. Update App.test.tsx to include tests for new search and tab interaction features. Improve translations for hero search-related strings and adjust CSS for new UI elements. This update aims to improve user experience during hero bans in live matches.
Some checks failed
CI / backend (push) Has been cancelled
CI / frontend (push) Has been cancelled
CI / compose (push) Has been cancelled

This commit is contained in:
2026-07-19 03:26:13 +03:00
parent 5d3e66d2f1
commit b7a78b4384
4 changed files with 19 additions and 4 deletions

View File

@@ -1,4 +1,4 @@
import { cleanup, render, screen } from '@testing-library/react'
import { cleanup, fireEvent, render, screen } from '@testing-library/react'
import { afterEach, describe, expect, it } from 'vitest'
import App from './App'
import { demoSeries } from './api/demo'
@@ -48,6 +48,10 @@ describe('Mixmaker frontend', () => {
render(<App />)
expect(await screen.findByRole('heading', { name: 'Series control' })).toBeInTheDocument()
expect(screen.getByRole('link', { name: /spectator view/i })).toHaveAttribute('href', '/watch/series-1')
fireEvent.click(screen.getByRole('tab', { name: /DPS/i }))
fireEvent.change(screen.getByRole('searchbox', { name: /search hero/i }), { target: { value: 'tRaC' } })
expect(screen.getByRole('radio', { name: /Tracer/i })).toBeInTheDocument()
expect(screen.queryByRole('radio', { name: /Ana/i })).not.toBeInTheDocument()
})
it('does not reuse completed-map hero bans during map pick', () => {