From 5b515cdc4e35b598ef8573ea25b3f9f80ccd261f Mon Sep 17 00:00:00 2001 From: Raju Chaudhary Date: Fri, 27 Oct 2017 16:36:48 +0545 Subject: [PATCH 1/2] disable email --- app/MyApp/app/views/CourseMembers.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/MyApp/app/views/CourseMembers.js b/app/MyApp/app/views/CourseMembers.js index 45e6c6dfe..90d79846b 100644 --- a/app/MyApp/app/views/CourseMembers.js +++ b/app/MyApp/app/views/CourseMembers.js @@ -82,11 +82,11 @@ $(function () { attchmentURL = attchmentURL + _.keys(mems.get('_attachments'))[0] src = attchmentURL } - if(config.models[0].attributes.rows[0].doc.type == 'nation' && mems.get("community") == 'nationbell' || config.models[0].attributes.rows[0].doc.type == 'community'){ - viewtext += '' + mems.get('firstName') + ' ' + mems.get('lastName') + ''+roleOfMem+''+App.languageDict.attributes.Send_Email+'' - } else { - viewtext += '' + mems.get('firstName') + ' ' + mems.get('lastName') + ''+roleOfMem+'' - } + viewtext += '' + mems.get('firstName') + ' ' + mems.get('lastName') + ''+roleOfMem+''+ mems.get('community') +''; + if(mems.get("community")==config.models[0].attributes.rows[0].doc.code) + viewtext += ''+App.languageDict.attributes.Send_Email+''; + else + viewtext += ''; var loggedIn = new App.Models.Member({ "_id": $.cookie('Member._id') }) @@ -183,7 +183,7 @@ $(function () { attchmentURL = attchmentURL + _.keys(mems.get('_attachments'))[0] src = attchmentURL } - if(config.models[0].attributes.rows[0].doc.type == 'nation' && mems.get("community") == 'nationbell'){ + if(config.models[0].attributes.rows[0].doc.code == mems.get("community")){ viewtext += '' + mems.get('firstName') + ' ' + mems.get('lastName') + ''+roleOfMem+''+App.languageDict.attributes.Send_Email+'' } else{ viewtext += '' + mems.get('firstName') + ' ' + mems.get('lastName') + ''+roleOfMem+'' From ed6579f81f33657079b4d01e0af867455d734f4c Mon Sep 17 00:00:00 2001 From: Laxman Maharjan Date: Fri, 3 Nov 2017 15:38:12 +0545 Subject: [PATCH 2/2] add wait time --- tests/report_test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/report_test.js b/tests/report_test.js index 9bc091d9c..b56a1f80a 100644 --- a/tests/report_test.js +++ b/tests/report_test.js @@ -75,7 +75,7 @@ Scenario('Test for Add Report', (I) => { I.waitForVisible(ActReport); I.waitForEnabled(ActReport); I.click(ActReport); - I.wait(5) + I.wait(10) I.seeInCurrentUrl('http://127.0.0.1:5981/apps/_design/bell/MyApp/index.html#logreports'); I.wait(2); I.waitForVisible(dateVis);