Add event management features to API, including event cancellation, deletion, registration closure, and workflow balance generation. Introduce new roster management endpoints and enhance participant handling with avoided player preferences. Update database schema and service logic to support these changes.
This commit is contained in:
@@ -13,6 +13,8 @@ describe('Mixmaker frontend', () => {
|
||||
render(<App />)
|
||||
expect(await screen.findByRole('heading', { name: 'Your events' })).toBeInTheDocument()
|
||||
expect(screen.getByText('Saturday Night Scrim')).toBeInTheDocument()
|
||||
expect(screen.getByRole('link', { name: 'Open Summer Clash #4' })).toHaveClass('status-live')
|
||||
expect(screen.getByRole('link', { name: 'Open Cancelled Community Mix' })).toHaveClass('status-cancelled')
|
||||
})
|
||||
|
||||
it('renders the Discord login screen', async () => {
|
||||
@@ -20,4 +22,20 @@ describe('Mixmaker frontend', () => {
|
||||
render(<App />)
|
||||
expect(await screen.findByRole('link', { name: /continue with discord/i })).toHaveAttribute('href', '/api/auth/discord')
|
||||
})
|
||||
|
||||
it('locks RSVP and exposes live navigation after the scrim starts', async () => {
|
||||
window.history.replaceState({}, '', '/events/event-3')
|
||||
render(<App />)
|
||||
expect(await screen.findByRole('link', { name: /open live series/i })).toHaveAttribute('href', '/series/series-1')
|
||||
expect(screen.getByRole('button', { name: 'Going' })).toBeDisabled()
|
||||
expect(screen.getByText('Registration has been closed by the organizer.')).toBeInTheDocument()
|
||||
})
|
||||
|
||||
it('explains map selection and captain rules in the FAQ', async () => {
|
||||
window.history.replaceState({}, '', '/faq')
|
||||
render(<App />)
|
||||
expect(await screen.findByRole('heading', { name: 'Frequently asked questions' })).toBeInTheDocument()
|
||||
expect(screen.getByRole('heading', { name: 'Who picks later maps?' })).toBeInTheDocument()
|
||||
expect(screen.getByText(/team that lost that map immediately chooses/i)).toBeInTheDocument()
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user