Skip to content

Commit

Permalink
moar text allowed
Browse files Browse the repository at this point in the history
  • Loading branch information
mluukkai committed Nov 6, 2024
1 parent c49d0c5 commit 9c9248e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 4 additions & 4 deletions backend/controllers/peerReview.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ const validatePeerReviewAnswer = (question) => {
if (answer.length < 7) {
return 'Text answers must be over 7 characters long.'
}
if (answer.length > 2000) {
return 'Text answer must be less than 2000 characters.'
if (answer.length > 200000) {
return 'Text answer must be less than 200000 characters.'
}
}

Expand All @@ -79,8 +79,8 @@ const validateTextAnswer = (question) => {
if (question.answer.length < 30) {
return 'Text answers must be over 30 characters long.'
}
if (question.answer.length > 5000) {
return 'Text answer must be less than 5000 characters.'
if (question.answer.length > 50000) {
return 'Text answer must be less than 50000 characters.'
}
return null
}
Expand Down
1 change: 1 addition & 0 deletions frontend/e2e/cypress/integration/menuItems.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ describe('Menu items for different user roles', () => {
})
})


it('Admin should see student menu items', () => {
cy.get('#hamburger-menu-button')
.click()
Expand Down

0 comments on commit 9c9248e

Please sign in to comment.