diff --git a/test/cli/usage_spec.js b/test/cli/usage_spec.js index 4ceac0b39..1866d0fe4 100644 --- a/test/cli/usage_spec.js +++ b/test/cli/usage_spec.js @@ -1,23 +1,24 @@ var usage = require('../../cli/usage'); var assert = require('assert'); -var expectedUsage = "Welcome to BackstopJS 2.1.4 CLI\n\ -\n\ -Commands:\n\ - reference Create reference screenshots of your web content at multiple screen sizes.\n\ - test Create test screenshots of your web content and compare against the set you created using `backstop reference`.\n\ - genConfig Generate a configuration file boilerplate in your current directory. PLEASE NOTE: this will force overwrite any existing config.\n\ - openReport View your last test screenshots in your browser.\n\ -\n\ -Options:\n\ - -h, --help Display usage\n\ - -v, --version Display version\n\ - -i Incremental reference generation\n\ -\n\ -"; +var expectedUsage = `Welcome to BackstopJS 3.2.16 CLI + +Commands: + test Create test screenshots and compare against the set you previously approved/referenced. + approve Promotes all test bitmaps from last test run to reference bitmaps. + reference Creates new reference screenshots. Deletes all existing reference files. + init Generate BackstopJS boilerplate files in your CWD. NOTE: Overwrites existing config files! + openReport View the last test report in your browser. + +Options: + -h, --help Display usage + -v, --version Display version + -i incremental reference generation + +`; describe('the cli usage', function () { it('should print usage hints correctly', function () { assert.equal(usage, expectedUsage); - }); + }); }); diff --git a/test/configs/backstop_data/bitmaps_reference/backstop_default_BackstopJS_Homepage_0_document_0_phone.png b/test/configs/backstop_data/bitmaps_reference/backstop_default_BackstopJS_Homepage_0_document_0_phone.png new file mode 100644 index 000000000..322ebbe74 Binary files /dev/null and b/test/configs/backstop_data/bitmaps_reference/backstop_default_BackstopJS_Homepage_0_document_0_phone.png differ diff --git a/test/configs/backstop_data/bitmaps_reference/backstop_default_BackstopJS_Homepage_0_document_1_tablet.png b/test/configs/backstop_data/bitmaps_reference/backstop_default_BackstopJS_Homepage_0_document_1_tablet.png new file mode 100644 index 000000000..973b51a76 Binary files /dev/null and b/test/configs/backstop_data/bitmaps_reference/backstop_default_BackstopJS_Homepage_0_document_1_tablet.png differ diff --git a/test/configs/backstop_features.js b/test/configs/backstop_features.js index f32fc9e5c..c6966d819 100644 --- a/test/configs/backstop_features.js +++ b/test/configs/backstop_features.js @@ -43,6 +43,7 @@ module.exports = { { label: 'noDelay', url: '../../index.html?delay', + delay: 1000, selectors: ['.moneyshot'] }, {