mirror of
https://github.com/BradGroux/veritas-kanban.git
synced 2026-10-06 03:37:50 +00:00
test: respect responsive chat placement in component assertion
This commit is contained in:
parent
536addfcb0
commit
829fa865e7
1 changed files with 3 additions and 1 deletions
|
|
@ -272,7 +272,9 @@ describe('activity and chat Mantine migration', () => {
|
|||
expect(await screen.findByText('Board Chat')).toBeDefined();
|
||||
expect(screen.getByText('Ready to help with the board.')).toBeDefined();
|
||||
const chatTrigger = screen.getByLabelText('Open chat');
|
||||
expect(chatTrigger.style.position).toBe('fixed');
|
||||
// Responsive CSS owns placement; inline fixed positioning would override mobile navigation.
|
||||
expect(chatTrigger.style.position).toBe('');
|
||||
expect(chatTrigger.textContent).toContain('Chat');
|
||||
expect(chatTrigger.className).toContain('floating-chat-trigger');
|
||||
expect(baseElement.querySelector('[data-overlay-variant="chat"]')).not.toBeNull();
|
||||
expect(baseElement.querySelector('.mantine-TextInput-root')).toBeDefined();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue