Select div by element instead of by class to test background-color (#16638)

pull/18182/head
jpdail01 2018-02-08 01:02:57 -05:00 committed by mrugesh mohapatra
parent 536ef79213
commit 0dec10e0fb
1 changed files with 1 additions and 1 deletions

View File

@ -1466,7 +1466,7 @@
], ],
"tests": [ "tests": [
"assert($(\"div\").hasClass(\"silver-background\"), 'message: Give your <code>div</code> element the class <code>silver-background</code>.');", "assert($(\"div\").hasClass(\"silver-background\"), 'message: Give your <code>div</code> element the class <code>silver-background</code>.');",
"assert($(\".silver-background\").css(\"background-color\") === \"rgb(192, 192, 192)\", 'message: Your <code>div</code> element should have a silver background.');" "assert($(\"div\").css(\"background-color\") === \"rgb(192, 192, 192)\", 'message: Your <code>div</code> element should have a silver background.');"
], ],
"type": "waypoint", "type": "waypoint",
"challengeType": 0, "challengeType": 0,