-
Notifications
You must be signed in to change notification settings - Fork 499
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Specialty can be added with only blank character as name #141
Comments
Hi @Holger-Mayer thank you for the report. |
Hey arey, I got no experience with Angular. I use your project as an example test object while learning Cypress. And during writing the test cases I found this defect. If you are interested I will write more defect reports if I find something during testing. Maybe we find someone who can fix them later. And I plan to release the Cypress/Cucumber test suite as an open source project later for others to use. best regards, |
I'm interested in any other bugs you find via Cypress. |
Hi Antoine, Integrating the stable test suite into the project would be great. |
Hi Antoine, I looked into the problem and found that this is a consistent problem with all entry fields. The underlying reason is, that the validation rules in the component html files are not aligned with the validation rules of the openapi.yaml from the rest server. It should be quite easy to correct this by adding the minlength , maxlength and pattern from the openapi file and enter them in the field definitions of the component files. I will try it next week and will report the result. Have a nice weekend, |
There is currently still one error in the application. The veterinarian edit form should require 1 or more characters for first name and last name according to the html template but requires 2. vet-edit.components.ts line 55 and 56. I will correct this during the implementation of some more tests. |
When creating a new Specialty I add one space character in the name field and press save.
Then a Specialty with blank name is displayed in the Specialties list.
Correct behavior should be
Display a warning message that a not blank name should be entered
and the save button should be enabled only with valid names entered.
The text was updated successfully, but these errors were encountered: