Skip to content

Commit

Permalink
Merge pull request #100 from c4dt/72
Browse files Browse the repository at this point in the history
Add tests for the correct routes of the form management buttons
  • Loading branch information
PascalinDe authored Feb 14, 2024
2 parents 0d353b8 + 36b9486 commit aca09c9
Show file tree
Hide file tree
Showing 10 changed files with 415 additions and 25 deletions.
1 change: 1 addition & 0 deletions web/frontend/src/pages/form/components/AddVotersModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ export const AddVotersModal: FC<AddVotersModalProps> = ({
</div>
<div className="bg-gray-50 px-4 py-3 sm:px-6 sm:flex sm:flex-row-reverse">
<button
data-testid="addVotersConfirm"
type="button"
className="w-full inline-flex justify-center rounded-md border border-transparent shadow-sm px-4 py-2 bg-indigo-600 text-base font-medium text-white hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:ml-3 sm:w-auto sm:text-sm"
onClick={confirmChoice}>
Expand Down
4 changes: 3 additions & 1 deletion web/frontend/src/pages/form/components/ChooseProxyModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,9 @@ const ChooseProxyModal: FC<ChooseProxyModalProps> = ({
<div className="mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-indigo-100 sm:mx-0 sm:h-10 sm:w-10">
<CogIcon className="h-6 w-6 text-indigo-600" aria-hidden="true" />
</div>
<div className="mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left">
<div
data-testid="nodeSetup"
className="mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left">
<Dialog.Title as="h3" className="text-lg leading-6 font-medium text-gray-900">
{t('nodeSetup')}
</Dialog.Title>
Expand Down
Loading

0 comments on commit aca09c9

Please sign in to comment.