diff --git a/contentcuration/contentcuration/frontend/shared/views/policies/PoliciesModal.vue b/contentcuration/contentcuration/frontend/shared/views/policies/PoliciesModal.vue
index 3d19d882f4..4f8de84787 100644
--- a/contentcuration/contentcuration/frontend/shared/views/policies/PoliciesModal.vue
+++ b/contentcuration/contentcuration/frontend/shared/views/policies/PoliciesModal.vue
@@ -20,15 +20,13 @@
data-test="accept-checkbox"
@change="togglePolicyAccepted"
/>
-
- {{ $tr('checkboxValidationErrorMessage') }}
-
@@ -87,7 +85,6 @@
data() {
return {
policyAccepted: false,
- showError: false,
};
},
computed: {
@@ -104,7 +101,6 @@
this.$emit('close');
},
validate() {
- this.showError = !this.policyAccepted;
return this.policyAccepted;
},
onPolicyAccept() {
@@ -117,7 +113,6 @@
lastUpdated: 'Last updated {date}',
closeButton: 'Close',
continueButton: 'Continue',
- checkboxValidationErrorMessage: 'Field is required',
checkboxText: 'I have agreed to the above terms',
},
};
diff --git a/contentcuration/contentcuration/frontend/shared/views/policies/__tests__/policiesModal.spec.js b/contentcuration/contentcuration/frontend/shared/views/policies/__tests__/policiesModal.spec.js
index 7dadb02723..41f29a1890 100644
--- a/contentcuration/contentcuration/frontend/shared/views/policies/__tests__/policiesModal.spec.js
+++ b/contentcuration/contentcuration/frontend/shared/views/policies/__tests__/policiesModal.spec.js
@@ -89,16 +89,10 @@ describe('PoliciesModal', () => {
});
describe('when accept policy checkbox is not checked', () => {
- it('clicking continue button should display validation error', () => {
- wrapper.find('[data-test="continue-button"]').trigger('click');
-
- expect(wrapper.text()).toContain('Field is required');
- });
-
- it("clicking continue button shouldn't emit accept event", () => {
- wrapper.find('[data-test="continue-button"]').trigger('click');
-
- expect(wrapper.emitted().accept).toBeFalsy();
+ it('disable continue button', () => {
+ expect(wrapper.find('[data-test="continue-button"]').attributes().disabled).toEqual(
+ 'disabled'
+ );
});
});