Skip to content
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

Validate competency title #1854

Merged
merged 6 commits into from
Jul 14, 2016
Merged

Validate competency title #1854

merged 6 commits into from
Jul 14, 2016

Conversation

jrjohnson
Copy link
Member

Before attempting to save a new competency or edit an existing one validate that the title exists and is less than 200 characters.

Fixes #1845

@stopfstedt stopfstedt changed the title Validate competnecy title Validate competency title Jul 8, 2016
@jrjohnson jrjohnson force-pushed the 1845-comtitle branch 2 times, most recently from 1880ab0 to f6a8ae1 Compare July 8, 2016 20:40
@stopfstedt
Copy link
Member

click tested. LGTM. tests are failing, looking into it.

this.$('input').trigger('change');
this.$('button').click();

assert.ok(false);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

needs work.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ha! Yea, Turns out my new Test Reminder Development paradigm works!

Allows us to validate the domain title to ensure it is legal.
By using the same component we get the same set of validations for each
of these.
This makes it easier to validate competency titles when editing.

Also don't immediately save the competency title, only save it when the
manager is closed.
This test fails in lots of cases where the browser chooses not to place
focus on the put.  For example if any other test has failed then focus
is on the failing test and can't be re-directed.  Or if testing in two
browsers this test will fail because one browser is is not focuses by
the OS.
@stopfstedt
Copy link
Member

click tested again, and reviewed code. looks all good to me. 👍

@stopfstedt stopfstedt merged commit 5c7045f into ilios:master Jul 14, 2016
@jrjohnson jrjohnson deleted the 1845-comtitle branch July 14, 2016 23:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants