- Issue created by @charles belov
- First commit to issue fork.
- Merge request !7015Update FileUploadForm.php - set #multiple based on number of slots to ensure... → (Open) created by sukr_s
- Status changed to Needs review
about 1 year ago 9:00am 13 March 2024 - 🇮🇳India sukr_s
patch enclosed. #multiple is set based on the number of files upload allowed. this sets the ui text properly
- 🇮🇳India dineshkumarbollu
@sukr_s
MR fails pipeline due to phpcs, can you fix that i can review the MR, Thanks
- Status changed to Needs work
about 1 year ago 10:08am 13 March 2024 The Needs Review Queue Bot → tested this issue. It fails the Drupal core commit checks. Therefore, this issue status is now "Needs work".
This does not mean that the patch necessarily needs to be re-rolled or the MR rebased. Read the Issue Summary, the issue tags and the latest discussion here to determine what needs to be done.
Consult the Drupal Contributor Guide → to find step-by-step guides for working with issues.
- Status changed to Needs review
12 months ago 4:45am 14 March 2024 - Status changed to Needs work
12 months ago 2:02pm 14 March 2024 - 🇺🇸United States smustgrave
As a bug will need a failing test to show the issue.
- Status changed to Needs review
12 months ago 4:01am 15 March 2024 - 🇮🇳India sukr_s
@smustgrave The fix resolves correctness of English in UI (plural vs. singular). Not sure how to add tests for this. If you can point to some documentation, that would be helpful.
- Status changed to Needs work
12 months ago 2:35pm 15 March 2024 - 🇺🇸United States smustgrave
MR has a test failure
UI changes should also have before/after screenshots in the issue summary.
Tests can be a simple assertion added to an existing test.
- Status changed to Needs review
12 months ago 12:54pm 20 March 2024 - 🇮🇳India sukr_s
MR updated with fix and test cases have been updated as well.
- Status changed to Needs work
12 months ago 1:58pm 20 March 2024 - Status changed to Needs review
12 months ago 4:40am 21 March 2024 - 🇮🇳India sukr_s
following line is the positive test cases.
$choose_files->hasButton('Choose file');
- Assigned to sukr_s
- Status changed to Needs work
12 months ago 5:11am 21 March 2024 - Issue was unassigned.
- Status changed to Needs review
12 months ago 7:00am 21 March 2024 - 🇮🇳India sukr_s
The button label has to change to "Choose file". I believe there is no way to assert this (or?). Attach screenshot from the automated run that shows that the label has been successfully changed
- Status changed to RTBC
12 months ago 1:52pm 22 March 2024 - 🇺🇸United States smustgrave
Yea in that case I think the negative assertions should be fine.
- Status changed to Needs work
12 months ago 9:54am 25 March 2024 - Status changed to RTBC
12 months ago 4:51am 26 March 2024 - 🇮🇳India sukr_s
The original code was always for "multiple files" and the test cases as well. The UI showed upload "files" even when a single file was being uploaded. So the fix was for ensuring that the right text is shown in the UI in case of single file upload. No other functionality or test cases are affected. e.g. line 300
// Assert we can add multiple files. $this->assertTrue($assert_session->fieldExists('Add files')->hasAttribute('multiple'));
tests for multiple files
- Status changed to Fixed
12 months ago 10:09am 26 March 2024 - 🇬🇧United Kingdom catch
Ahh yeah, bad ctrl-f on my part it looks like, I can see coverage for both 'Add file' and 'Add files' now.
Committed/pushed to 11.x and cherry-picked to 10.3.x, thanks!
Automatically closed - issue fixed for 2 weeks with no activity.