From 407bc99061a93ac9248a711655bb40ef5b42e779 Mon Sep 17 00:00:00 2001 From: Ashley Drake Date: Mon, 6 Apr 2015 09:54:49 -0400 Subject: [PATCH] Fixed chai-jquery tests for coursewares that were not catching correct entries for color attrs. --- seed_data/coursewares.json | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/seed_data/coursewares.json b/seed_data/coursewares.json index baf5986e280..72bf8f1b5d3 100644 --- a/seed_data/coursewares.json +++ b/seed_data/coursewares.json @@ -162,7 +162,7 @@ "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', '#ff0000');" + "expect($('h2')).to.have.css('color', 'rgb(255, 0, 0)');" ], "challengeSeed": [ "

hello world

", @@ -186,7 +186,7 @@ "Note that it's important to have an opening and closing curly braces ({ and }) around each element's style. You also need to make sure your element's style is between the opening and closing style tags. Finally, be sure to add the semicolon to the end of each of the element's styles." ], "tests": [ - "expect($('h2')).to.have.css('color', '#0000ff');" + "expect($('h2')).to.have.css('color', 'rgb(0, 0, 255)');" ], "challengeSeed": [ "

hello world

", @@ -207,7 +207,7 @@ "You can follow that pattern to make a red-text class, which you can attach to HTML elements by using the class=\"class\" within the relevant element's opening tag." ], "tests": [ - "expect($('h2')).to.have.css('color', '#ff0000');", + "expect($('h2')).to.have.css('color', 'rgb(255, 0, 0)');", "expect($('h2')).to.have.class('red-text');" ], "challengeSeed": [ @@ -235,9 +235,9 @@ "expect($('h1')).to.have.class('red-text');", "expect($('h2')).to.have.class('red-text');", "expect($('p')).to.have.class('red-text');", - "expect($('h1')).to.have.css('color', '#ff0000');", - "expect($('h2')).to.have.css('color', '#ff0000');", - "expect($('p')).to.have.css('color', '#ff0000');" + "expect($('h1')).to.have.css('color', 'rgb(255, 0, 0)');", + "expect($('h2')).to.have.css('color', 'rgb(255, 0, 0)');", + "expect($('p')).to.have.css('color', 'rgb(255, 0, 0)');" ], "challengeSeed": [ "