You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Added msg on for user for not allowed task status change
* Added test cases for task flow changes
* Added spacing in test file
* Removed switch case block
* Minor text fix
* Added correct res msg in test
* again added feature flag for new dev
* Removed no longer required test case
---------
Co-authored-by: Shubham Sharma <[email protected]>
Co-authored-by: Amit Prakash <[email protected]>
@@ -1171,6 +1172,77 @@ describe("Tasks", function () {
1171
1172
expect(res).to.have.status(400);
1172
1173
expect(res.body.message).to.be.equal("Task percentCompleted can't updated as status is COMPLETED");
1173
1174
});
1175
+
1176
+
it("Should give 400 if current status of task is In Progress and new status is not Blocked and both current and new percentCompleted are not 100 ",asyncfunction(){
"The status of task can not be changed from In progress until progress of task is not 100%."
1188
+
);
1189
+
});
1190
+
1191
+
it("Should give 400 if new status of task is In Progress and current status of task is not Blocked and both current and new percentCompleted are not 0 ",asyncfunction(){
"The status of task can not be changed to In progress until progress of task is not 0%."
1203
+
);
1204
+
});
1205
+
1206
+
it("Should give 400 if current status of task is Blocked and new status is not In Progress and both current and new percentCompleted are not 100 ",asyncfunction(){
0 commit comments