diff --git a/src/app/shared/shared_modules/public-key/public-key.component.html b/src/app/shared/shared_modules/public-key/public-key.component.html
index e387087e1b..ed47aa886c 100644
--- a/src/app/shared/shared_modules/public-key/public-key.component.html
+++ b/src/app/shared/shared_modules/public-key/public-key.component.html
@@ -119,9 +119,9 @@
Generate public key
class="form-check-input"
name="public_key_acknowledgement_checkbox"
type="checkbox"
- id="generate_checkbox"
+ id="public_key_acknowledgement_checkbox"
[(ngModel)]="acknowledgement_given"
- data-test-id="generate_checkbox"
+ data-test-id="public_key_acknowledgement_checkbox"
/>