Select div by element instead of by class to test background-color (#16638)
parent
536ef79213
commit
0dec10e0fb
|
@ -1466,7 +1466,7 @@
|
|||
],
|
||||
"tests": [
|
||||
"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",
|
||||
"challengeType": 0,
|
||||
|
|
Loading…
Reference in New Issue