globalsModule.js 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. module.exports = {
  2. // this controls whether to abort the test execution when an assertion failed and skip the rest
  3. // it's being used in waitFor commands and expect assertions
  4. abortOnAssertionFailure : true,
  5. // this will overwrite the default polling interval (currently 500ms) for waitFor commands
  6. // and expect assertions that use retry
  7. waitForConditionPollInterval : 300,
  8. // default timeout value in milliseconds for waitFor commands and implicit waitFor value for
  9. // expect assertions
  10. waitForConditionTimeout : 5000,
  11. // this will cause waitFor commands on elements to throw an error if multiple
  12. // elements are found using the given locate strategy and selector
  13. throwOnMultipleElementsReturned : true,
  14. // controls the timeout time for async hooks. Expects the done() callback to be invoked within this time
  15. // or an error is thrown
  16. asyncHookTimeout : 10000,
  17. 'default' : {
  18. myGlobal : function() {
  19. return 'I\'m a method';
  20. }
  21. },
  22. 'test_env' : {
  23. myGlobal: 'test_global',
  24. beforeEach : function() {
  25. }
  26. },
  27. before : function(cb) {
  28. cb();
  29. },
  30. beforeEach : function(browser, cb) {
  31. cb();
  32. },
  33. after : function(cb) {
  34. cb();
  35. },
  36. afterEach : function(browser, cb) {
  37. cb();
  38. },
  39. reporter : function(results, cb) {
  40. //console.log(results);
  41. cb();
  42. }
  43. };