Changeset 722ae18 in OpenWorkouts-current for ow/tests


Ignore:
Timestamp:
Dec 17, 2018, 5:13:45 PM (5 years ago)
Author:
borja <borja@…>
Branches:
current, feature/docs, master
Children:
c90d245
Parents:
affc3f7
Message:

(#32) Improvements on the edit profile form:

  • Added field for nickname, set as not required
  • Applied classes to add some styling based on the new code in forms.css
  • Ensure the error messages are displayed clearly by the field that caused the errors.
  • Loaded pickadate js date picker for the birth date field
File:
1 edited

Legend:

Unmodified
Added
Removed
  • ow/tests/views/test_user.py

    raffc3f7 r722ae18  
    258258        # the form carries along the proper data keys, taken from the
    259259        # loaded user profile
    260         data = ['firstname', 'lastname', 'email', 'bio', 'birth_date',
    261                 'height', 'weight', 'gender']
     260        data = ['firstname', 'lastname', 'email', 'nickname', 'bio',
     261                'birth_date', 'height', 'weight', 'gender']
    262262        assert list(response['form'].data.keys()) == data
    263263        # and check the email to see data is properly loaded
Note: See TracChangeset for help on using the changeset viewer.