Fix tests for Change text with Click Events

This commit adds checks to alow `.text` along with `.html`,
as per the discussion in the issue.
This commit is contained in:
Mrugesh Mohapatra
2016-03-03 01:38:37 +05:30
parent c6021d5ada
commit c71c693d6d

View File

@ -108,7 +108,7 @@
"</div>" "</div>"
], ],
"tests": [ "tests": [
"assert(code.match(/\\$\\s*?\\(\\s*?(?:'|\")\\.message(?:'|\")\\s*?\\)\\s*?\\.html\\s*?\\(\\s*?(?:'|\")Here\\sis\\sthe\\smessage(?:'|\")\\s*?\\);/gi), 'message: Clicking the \"Get Message\" button should give the element with the class <code>message</code> the text \"Here is the message\".');" "assert(code.match(/\\$\\s*?\\(\\s*?(?:'|\")\\.message(?:'|\")\\s*?\\)\\s*?(\\.html|\\.text)\\s*?\\(\\s*?(?:'|\")Here\\sis\\sthe\\smessage(?:'|\")\\s*?\\);/gi), 'message: Clicking the \"Get Message\" button should give the element with the class <code>message</code> the text \"Here is the message\".');"
], ],
"type": "waypoint", "type": "waypoint",
"challengeType": 0, "challengeType": 0,