This repository has been archived by the owner on Jun 9, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added frontend Input Field Validations on the EventForm.tsx and Enabl…
…ed validations in app.ts (#707) * Added frontend Input Field Validations on the EventForm 1. Added type to input component in the Event form page 2. removed the DefaultValue prop from input component since it is already getting set via UseForm react hook 3. changed the type of UrL and Video URL to url * Updated cypress tests of Event form for changes in type 1. Updated cypress tests to match the role of type=number of Capacity 2. Changed the query for start_at and ends_at * Added class Validation decorators for Url and Vidio URL fields 1. Added decorators for URL and Video URL fields 2. Enabled Validations in app.ts * Updated cypress tests 1.Added Get instaed of find to query starts_at and ends_at 2.Added 5 sec wait time for event to save * Updated app.ts and event.js based on code review comments 1. removed validate:tru from app.ts as it is default value 2. changed the location function from get to findbyLabelText in cypress test Co-authored-by: Ravi <Ravichandra.cheekati@oracle.com>
- Loading branch information