QA/Mozmill Test Automation/Test Modules Refactor/Style Guide: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 65: Line 65:
                                             'concatenated' +
                                             'concatenated' +
                                             'string');
                                             'string');
</pre>
=== Assertions ===
; waitFor()
* Use whenever you are waiting for a particular element to appear
<pre>
  controller.waitFor(function () {
    return someProperty == 'some value';
  }, "A positive error message about the expected state");
</pre>
</pre>




== To be Added ==
== To be Added ==
10. waitFor() block-style
    -  controller.waitFor(function () {
    - TIMEOUT: optional param, global value (not in test code)
    - section in style guide for waitFor() assert() usage
11. XPath: split on '/'
11. XPath: split on '/'
13. Component declarations should be indented in line with the parent
13. Component declarations should be indented in line with the parent
Confirmed users
14,525

edits

Navigation menu