Skip to content

Commit

Permalink
MDL-59725 assignsubmission_file: Improve accepted types string
Browse files Browse the repository at this point in the history
  • Loading branch information
xow committed Aug 7, 2017
1 parent 8146b1f commit 29b3186
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lang/en/form.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
$string['err_rangelength'] = 'You must enter between {$a->format[0]} and {$a->format[1]} characters here.';
$string['err_required'] = 'You must supply a value here.';
$string['err_wrongfileextension'] = 'Some files ({$a->wrongfiles}) cannot be uploaded. Only file types {$a->whitelist} are allowed.';
$string['filesofthesetypes'] = 'Accepted files types:';
$string['filesofthesetypes'] = 'Accepted file types:';
$string['filetypesany'] = 'All file types';
$string['filetypesnotall'] = 'It is not allowed to select \'All file types\' here';
$string['filetypesnotwhitelisted'] = 'These file types are not allowed here: {$a}';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ Feature: In an assignment, limit submittable file types
And I am on "Course 1" course homepage
And I follow "Test assignment name"
When I press "Add submission"
And I should see "Files of these types may be added to the submission"
And I should see "Accepted file types"
And I should see "Image (PNG)"
And I should see "Spreadsheet files"
And I should see "Text file"
Expand All @@ -73,7 +73,7 @@ Feature: In an assignment, limit submittable file types
And I am on "Course 1" course homepage
And I follow "Test assignment name"
When I press "Add submission"
And I should not see "Files of these types may be added to the submission"
And I should not see "Accepted file types"
And I upload "lib/tests/fixtures/gd-logo.png" file to "File submissions" filemanager
And I upload "lib/tests/fixtures/tabfile.csv" file to "File submissions" filemanager
And I press "Save changes"
Expand Down

0 comments on commit 29b3186

Please sign in to comment.