code4romania / code4romania/vic

[Templates] User should not be able to save templates with empty body

Open
#403 0 comments 0 reactions 0 assignees View on GitHub
bug :bug: P3 - low web-app
Dominant language
TypeScript
Stars
3
Forks
2
PR merge metrics
No merged PRs in 30d

Description

**Preconditions:**
The user must be logged in on the "Template-uri" tab from "Contracte" sub-page.

**Steps to Reproduce:**
1. Click on the "Creaza template" button
2. Enter valid data into the "Numele template-ului" input
3. Press on "Adauga text" button from the "Termenii contractului" section
4. Enter any data
5. Delete said data
6. Press on the "Salveaza modificari" button
7. Press on the "Salveaza" button

**Expected Results:**
6. Error regarding mandatory input is displayed and no action is taken on button press
7. No action is taken due to presence of error at step 6

**Actual Results:**
6.7 The template body is saved as empty and the template is created.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.