sessions-section.test.tsx 477 B

12345678910111213141516
  1. import { expect } from 'chai'
  2. import { screen, render } from '@testing-library/react'
  3. import SessionsSection from '../../../../../frontend/js/features/settings/components/sessions-section'
  4. describe('<SessionsSection />', function () {
  5. it('shows link to sessions', async function () {
  6. render(<SessionsSection />)
  7. const link = screen.getByRole('link', {
  8. name: 'Manage sessions',
  9. })
  10. expect(link.getAttribute('href')).to.equal('/user/sessions')
  11. })
  12. })