@@ -235,31 +235,36 @@ module.exports = {
235235 'Recommendations view with content' : ( browser ) => {
236236 browser
237237 . url ( `http://localhost:${ browser . globals . webpackDevServerPort } /recommendations.html` )
238- . assert . containsText ( '#recSmoker .detail_box__title' , 'Quit smoking' )
239- . assert . containsText ( '#recSmoker .detail_box__description' , 'Your risk of heart attack or stroke decreases ' +
240- 'soon after you quit smoking. Blood flow to the heart and brain is vital, and increases ' +
241- 'almost immediately after your last cigarette. Additionally, the rate of plaque build-up ' +
242- 'in your blood vessels decreases. Ask your doctor about smoking cessation aids proven ' +
243- 'to be effective.' )
238+ . assert . containsText ( '#recSmoker .detail_box__title' , 'Quit Smoking' )
239+ . assert . containsText ( '#recSmoker .detail_box__description' , 'Besides causing cancer and lung disease, smoking ' +
240+ 'is a leading cause of stroke and heart attack. Nicotine replacement (patches, gum, lozenges), ' +
241+ 'coaching programs, and medications (Chantix, Buproprion) can increase your chances of success. ' +
242+ 'See www.smokefree.gov for more information.' )
244243 . assert . containsText ( '#recStatin .detail_box__title' , 'Consider a statin' )
245- . assert . containsText ( '#recStatin .detail_box__description' , 'Statins lower LDL (bad) cholesterol ' +
246- 'and raise HDL (good) cholesterol in your blood. Improved cholesterol levels decrease your ' +
247- 'risk for a heart attack or a stroke. Discuss the benefits and risks of statins with ' +
248- 'your doctor.' )
249- . assert . containsText ( '#recAspirin .detail_box__title' , 'Take an aspirin every day' )
250- . assert . containsText ( '#recAspirin .detail_box__description' , 'Taking an aspirin daily can ' +
251- 'reduce your risk of heart attacks and strokes, or reduce the severity of such an event. ' +
252- 'Your doctor can provide guidance on the recommended daily dose that’s right for you.' )
253- . assert . containsText ( '#recBP .detail_box__title' , 'Control your blood pressure' )
254- . assert . containsText ( '#recBP .detail_box__description' , 'High blood pressure stresses your ' +
255- 'body’s blood vessels, weakening them and greatly increasing your risk for heart attack or stroke.' +
256- ' Blood pressure medications, weight control, exercise, and managing your sodium intake can ' +
257- 'all have positive impact on your blood pressure.' )
258- . assert . containsText ( '#recExercise .detail_box__title' , 'Exercise' )
259- . assert . containsText ( '#recExercise .detail_box__description' , 'Regular physical activity helps ' +
260- 'you control your weight, blood pressure, and cholesterol. Be sure to consult your doctor ' +
261- 'before starting an exercise program.' )
262- . click ( '#recSmoker .detail_box__header' )
244+ . assert . containsText ( '#recStatin .detail_box__description' , 'Statins can reduce your risk of heart attack or ' +
245+ 'stroke by 25%, even if your cholesterol level is in the “normal” range. The American Heart ' +
246+ 'Association and American College of Cardiology recommend statins for people with diabetes, prior ' +
247+ 'heart disease or stroke, and people at high risk of developing heart disease.' )
248+ . assert . containsText ( '#recAspirin .detail_box__title' , 'Aspirin' )
249+ . assert . containsText ( '#recAspirin .detail_box__description' , 'Aspirin can help lower your risk of heart attack ' +
250+ 'or stroke by about 10%. Aspirin may increase your risk of bleeding. Talk to your doctor about ' +
251+ 'whether you may benefit from taking aspirin daily and what dose may be the best.' )
252+ . assert . containsText ( '#recBP .detail_box__title' , 'Control your blood pressure' )
253+ . assert . containsText ( '#recBP .detail_box__description' , 'Every 10 point lowering of your systolic blood pressure ' +
254+ 'or 5 point lowering of your diastolic blood pressure can lower your risk of heart disease by 21%. High blood ' +
255+ 'pressure can be treated with diet, weight loss, and medications. Lowering your sodium intake to 2,400 mg per ' +
256+ 'day or even as low as 1,000 mg per day can help lower your blood pressure. Different people benefit from ' +
257+ 'different goal blood pressures. Ask your doctor what your goal should be.' )
258+ . assert . containsText ( '#recExercise .detail_box__title' , 'Exercise More' )
259+ . assert . containsText ( '#recExercise .detail_box__description' , 'The American Heart Association and American College ' +
260+ 'of Cardiology recommend 3-4 sessions per week of at least 40 minutes per session of moderate to vigorous ' +
261+ 'physical activity. But even small increases in your amount of physical activity can improve your heart health.' )
262+ . assert . containsText ( '#recEating .detail_box__title' , 'Eat more Heart-Healthy Food' )
263+ . assert . containsText ( '#recEating .detail_box__description' , 'Try to limit your intake of sugar, including sweets ' +
264+ 'and sugar sweetened drinks. Eating more vegetables, fruits, whole grains, low-fat dairy, poultry (chicken), ' +
265+ 'fish, beans, olive oil and nuts can help lower your risk of heart disease. Try to avoid or reduce trans fat and ' +
266+ 'saturated fat, which are high in lard, butter, red meat, and fried foods.' )
267+ . click ( '#recSmoker .detail_box__header' )
263268 . assert . hidden ( '#recSmoker .detail_box__description' )
264269 . assert . visible ( '#recSmoker .detail_box__title' ) ;
265270 }
0 commit comments