Skip to content

Commit aca09c9

Browse files
authored
Merge pull request #100 from c4dt/72
Add tests for the correct routes of the form management buttons
2 parents 0d353b8 + 36b9486 commit aca09c9

File tree

10 files changed

+415
-25
lines changed

10 files changed

+415
-25
lines changed

web/frontend/src/pages/form/components/AddVotersModal.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ export const AddVotersModal: FC<AddVotersModalProps> = ({
169169
</div>
170170
<div className="bg-gray-50 px-4 py-3 sm:px-6 sm:flex sm:flex-row-reverse">
171171
<button
172+
data-testid="addVotersConfirm"
172173
type="button"
173174
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"
174175
onClick={confirmChoice}>

web/frontend/src/pages/form/components/ChooseProxyModal.tsx

+3-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,9 @@ const ChooseProxyModal: FC<ChooseProxyModalProps> = ({
108108
<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">
109109
<CogIcon className="h-6 w-6 text-indigo-600" aria-hidden="true" />
110110
</div>
111-
<div className="mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left">
111+
<div
112+
data-testid="nodeSetup"
113+
className="mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left">
112114
<Dialog.Title as="h3" className="text-lg leading-6 font-medium text-gray-900">
113115
{t('nodeSetup')}
114116
</Dialog.Title>

0 commit comments

Comments
 (0)