Commit 87f68ff
Mark Ericksen
improve error handling for ePortfolio section editing
fixes CNVS-5727
testing steps:
- on an ePortfolio page, click "Organize Sections"
to add a new section.
- blank out the name and hit enter (nothing happens)
you should now be able to set some valid text and
save it. (previously it would not save valid text
until refreshing the page)
- set a name that is too long (> 255 chars) and
verify a popup/alert message reports that the name
is too long and the invalid entry is removed from
the page
- editing an existing section
- clearing the name and trying to save (nothing
happens) then setting to something should now save
- set a name that is too long (> 255 chars) and
verify that an error message is displayed on the
section name input with a meaningful error message
Change-Id: I04dfab3cd741c4b04c5f8b2990aee8216aa34d7f
Reviewed-on: https://gerrit.instructure.com/24164
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Jon Jensen <jon@instructure.com>
Product-Review: Marc LeGendre <marc@instructure.com>
QA-Review: Marc LeGendre <marc@instructure.com>1 parent 22ca033 commit 87f68ff
3 files changed
Lines changed: 25 additions & 3 deletions
File tree
- app
- controllers
- models
- public/javascripts
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
52 | 53 | | |
53 | 54 | | |
54 | 55 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
| 28 | + | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
542 | 542 | | |
543 | 543 | | |
544 | 544 | | |
545 | | - | |
546 | 545 | | |
547 | 546 | | |
548 | 547 | | |
| |||
567 | 566 | | |
568 | 567 | | |
569 | 568 | | |
| 569 | + | |
570 | 570 | | |
571 | 571 | | |
572 | 572 | | |
| |||
585 | 585 | | |
586 | 586 | | |
587 | 587 | | |
588 | | - | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
589 | 609 | | |
590 | 610 | | |
591 | 611 | | |
| |||
0 commit comments