Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/e2e/cypress/e2e/FAPs.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4148,7 +4148,7 @@ context('Fap meeting components tests', () => {

cy.get('[data-cy="save-and-continue-button"]').focus().click();

cy.contains('Lowest grade is 1');
cy.contains('Minimum grade is 1');

cy.get('#grade-proposal').click().clear().clear().type('1.001');

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@ export const createFapReviewBasisValidationSchema: QuestionaryComponentDefinitio
const schema = Yup.object().shape({
comment: commentSchema,
grade: Yup.string()
.test('min', `Lowest grade is ${config.minGrade}`, (val) => {
.test('min', `Minimum grade is ${config.minGrade}`, (val) => {
if (val === undefined) return false;

const number = parseFloat(val);

return isNaN(number) ? true : number >= config.minGrade;
})
.test('max', `Lowest grade is ${config.maxGrade}`, (val) => {
.test('max', `Maximum grade is ${config.maxGrade}`, (val) => {
Comment thread
zacharyjhankin marked this conversation as resolved.
if (val === undefined) return false;

const number = parseFloat(val);
Expand Down
Loading