summaryrefslogtreecommitdiffstats
path: root/src/components/CommentForm/CommentForm.tsx
Commit message (Collapse)AuthorAgeFilesLines
* chore: improve comment form user experienceArmand Philippot2022-02-141-52/+98
|
* chore: replace lingui functions with react-intlArmand Philippot2022-01-291-8/+37
|
* chore(comments): handle comment replyArmand Philippot2022-01-151-11/+24
|
* chore: improve comment sectionArmand Philippot2022-01-071-45/+51
| | | | I also adjust styles for all forms and primary buttons.
* refactor: rewrite types and servicesArmand Philippot2021-12-201-10/+11
| | | | | | | I was repeating myself a lot in services. So I rewrited the different functions to improve readability and I extracted some formatting functions to put them in utils. I also rewrited/reorganized some types to keep consistent names.
* chore: create mutation to add a new comment on postsArmand Philippot2021-12-171-2/+51
|
* chore: add a comment form to postsArmand Philippot2021-12-171-0/+58
color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
import { describe, expect, it } from '@jest/globals';
import { render, screen as rtlScreen } from '@testing-library/react';
import { HelpButton } from './help-button';

describe('Help', () => {
  it('renders a help button', () => {
    const label = 'hic';

    render(<HelpButton label={label} />);

    expect(rtlScreen.getByRole('button')).toHaveAccessibleName(label);
  });
});