From da9ac03a341510cd95a72d5cd5714c386ea2a8e7 Mon Sep 17 00:00:00 2001 From: Quincy Larson Date: Mon, 11 May 2015 13:58:59 -0700 Subject: [PATCH] created a chai test for css attributes --- seed_data/coursewares.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/seed_data/coursewares.json b/seed_data/coursewares.json index e27ab751f74..a260ea7af5a 100644 --- a/seed_data/coursewares.json +++ b/seed_data/coursewares.json @@ -333,11 +333,11 @@ "Here's how you would set the h2 element's text color to blue: <h2 style=\"color: blue\">cat photo app<h2>" ], "tests": [ - "expect($('h2')).to.have.css('color', 'rgb(255, 0, 0)');" + "assert($('h2').css('color') === 'rgb(255, 0, 0)', 'Your h2 element should be red.')" ], "challengeSeed": [ - "

hello world

", - "

cat photo app

", + "

Cat Photo App

", + "", "

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

" ], "challengeType": 0