config.js 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /**
  2. * @copyright 2018 Julius Härtl <jus@bitgrid.net>
  3. *
  4. * @author 2018 Julius Härtl <jus@bitgrid.net>
  5. *
  6. * @license GNU AGPL version 3 or any later version
  7. *
  8. * This program is free software: you can redistribute it and/or modify
  9. * it under the terms of the GNU Affero General Public License as
  10. * published by the Free Software Foundation, either version 3 of the
  11. * License, or (at your option) any later version.
  12. *
  13. * This program is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU Affero General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU Affero General Public License
  19. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  20. *
  21. */
  22. module.exports = {
  23. /**
  24. * Define resolutions to be tested when diffing screenshots
  25. */
  26. resolutions: [
  27. {title: 'mobile', w: 360, h: 480},
  28. {title: 'narrow', w: 800, h: 600},
  29. {title: 'normal', w: 1024, h: 768},
  30. {title: 'wide', w: 1920, h: 1080},
  31. {title: 'qhd', w: 2560, h: 1440},
  32. ],
  33. /**
  34. * URL that holds the base branch
  35. */
  36. urlBase: 'http://ui-regression-php-master/',
  37. /**
  38. * URL that holds the branch to be diffed
  39. */
  40. urlChange: 'http://ui-regression-php/',
  41. /**
  42. * Path to output directory for screenshot files
  43. */
  44. outputDirectory: 'out',
  45. /**
  46. * Run in headless mode (useful for debugging)
  47. */
  48. headless: true,
  49. slowMo: 0,
  50. };