diff --git a/seed/challenges/01-responsive-web-design/applied-visual-design.json b/seed/challenges/01-responsive-web-design/applied-visual-design.json index c01f499a62..245c94bfd6 100644 --- a/seed/challenges/01-responsive-web-design/applied-visual-design.json +++ b/seed/challenges/01-responsive-web-design/applied-visual-design.json @@ -1387,9 +1387,9 @@ "
" ], "tests": [ - "assert(code.match(/.orange\\s*\\{\\s*background-color:\\s*(#FF7D00|#ff7d00);?\\s*\\}/g), 'message: The div element with class orange should have a background-color of orange.');", - "assert(code.match(/.cyan\\s*\\{\\s*background-color:\\s*(#00FFFF|#00ffff);?\\s*\\}/g), 'message: The div element with class cyan should have a background-color of cyan.');", - "assert(code.match(/.raspberry\\s*\\{\\s*background-color:\\s*(#FF007D|#ff007d);?\\s*\\}/g), 'message: The div element with class raspberry should have a background-color of raspberry.');" + "assert($('.orange').css('background-color') == 'rgb(255, 125, 0)', 'message: The div element with class orange should have a background-color of orange.');", + "assert($('.cyan').css('background-color') == 'rgb(0, 255, 255)', 'message: The div element with class cyan should have a background-color of cyan.');", + "assert($('.raspberry').css('background-color') == 'rgb(255, 0, 125)', 'message: The div element with class raspberry should have a background-color of raspberry.');" ], "solutions": [], "hints": [], diff --git a/seed/challenges/01-responsive-web-design/basic-css.json b/seed/challenges/01-responsive-web-design/basic-css.json index c0f09e5062..859c66073e 100644 --- a/seed/challenges/01-responsive-web-design/basic-css.json +++ b/seed/challenges/01-responsive-web-design/basic-css.json @@ -88,7 +88,7 @@ "" ], "tests": [ - "assert(code.match(/\\s*CatPhotoApp\\s*<\\/h2>/), 'message: Your h2 element should be red.');", + "assert($(\"h2\").css(\"color\") === \"rgb(255, 0, 0)\", 'message: Your h2 element should be red.');", "assert(code.match(/\\s*CatPhotoApp\\s*<\\/h2>/),' message: Your style declaration should end with a ; .');" ], "type": "waypoint", diff --git a/seed/challenges/01-responsive-web-design/responsive-web-design.json b/seed/challenges/01-responsive-web-design/responsive-web-design.json index 2f338794af..02b04920e9 100644 --- a/seed/challenges/01-responsive-web-design/responsive-web-design.json +++ b/seed/challenges/01-responsive-web-design/responsive-web-design.json @@ -97,7 +97,7 @@ "

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus quis tempus massa. Aenean erat nisl, gravida vel vestibulum cursus, interdum sit amet lectus. Sed sit amet quam nibh. Suspendisse quis tincidunt nulla. In hac habitasse platea dictumst. Ut sit amet pretium nisl. Vivamus vel mi sem. Aenean sit amet consectetur sem. Suspendisse pretium, purus et gravida consequat, nunc ligula ultricies diam, at aliquet velit libero a dui.

" ], "tests": [ - "assert(code.match(/p\\s*\\{\\s*font-size:\\s*10px;\\s*\\}/g), 'message: Your p element should have the font-size of 10px when the device height is less than or equal to 800px.');", + "assert($('p').css('font-size') == '10px', 'message: Your p element should have the font-size of 10px when the device height is less than or equal to 800px.');", "assert(code.match(/@media \\(max-height:\\s*?800px\\)/g), 'message: Declare a @media query for devices with a height less than or equal to 800px.');" ], "type": "waypoint",