Closed (fixed)
Project:
Scheduler
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
23 Apr 2019 at 03:56 UTC
Updated:
2 Jan 2020 at 13:09 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
bajah1701 commentedComment #3
bajah1701 commentedComment #4
akashkumar07 commentedI hope, this patch will solve the issue.
Comment #6
jonathan1055 commentedHi AkashkumarOSL,
Thanks for re-rolling the patch. Looking at the tests which failed:
Html::escapearound the text to check for. This may be causing the problem, as it might not be required in the new assert method. At least, that is a good place to start investigating.Jonathan
Comment #7
shubham.prakash commentedFixed the issues suggested in #6
Comment #8
jonathan1055 commentedHi shubham.prakash,
Thanks for the new patch. SchedulerLightweightCronTest now passes because you have removed the double
$$. Also SchedulerPermissionsTest and SchedulerPastDatesTest now pass because you have removed the unnecessaryHtml::escape. So those are both good. There are now two unused use statements which should be removed (see the coding standards output on the test results page)However, in re-rolling the patch you have introduced new test failures in SchedulerRulesActionsTest because you have removed
->pageTextContains()in four places.When making an updated patch, have you considered creating an interdiff file? This will show you the changes between two patches and will give you confidence that you have only changed what you intended to change. It is also very helpful for others who are reviewing the patch. The alternative is to do a file-compare on the two patches, which I have just done, to see how they differ.
Comment #9
shubham.prakash commentedMade changes as suggested in #8, also I'll try to upload interdiff whenever possible. Thanks.
Comment #10
jonathan1055 commentedThank you, you fixed the coding standard, and the tests pass.
I noticed one assertText that got missed, see interdiff, but I can fix this on commit.
Comment #12
jonathan1055 commentedThe new
pageTextContains()only accepts one parameter, the text to search for. Any other parameters are ignored, but it make sense to remove the extra values anyway.Comment #14
jonathan1055 commentedThank you all. Committed and fixed.
Comment #15
jonathan1055 commented