diff --git a/packages/core/src/config.js b/packages/core/src/config.js index 02302db56..7f20c564a 100644 --- a/packages/core/src/config.js +++ b/packages/core/src/config.js @@ -45,8 +45,7 @@ export const configSchema = { default: false }, enableLayout: { - type: 'boolean', - default: false + type: 'boolean' }, domTransformation: { type: 'string' diff --git a/packages/core/test/discovery.test.js b/packages/core/test/discovery.test.js index 2ad8c58ab..798178a26 100644 --- a/packages/core/test/discovery.test.js +++ b/packages/core/test/discovery.test.js @@ -1932,28 +1932,7 @@ describe('Discovery', () => { }); describe('Enable Layout =>', () => { - beforeEach(() => { - // global defaults - percy.config.snapshot.enableLayout = false; - }); - describe('cli-snapshot =>', () => { - it('disabled by default', async () => { - percy.loglevel('debug'); - - await percy.snapshot({ - name: 'test snapshot', - url: 'http://localhost:8000', - domSnapshot: '' - }); - - await percy.idle(); - - expect(logger.stderr).toEqual(jasmine.arrayContaining([ - '[percy:core:snapshot] - enableLayout: false' - ])); - }); - it('enable when enableLayout: true', async () => { percy.config.snapshot.enableLayout = true; percy.loglevel('debug'); @@ -1973,22 +1952,6 @@ describe('Discovery', () => { }); describe('percySnapshot with cli-exec =>', () => { - it('disabled by default', async () => { - percy.loglevel('debug'); - - await percy.snapshot({ - name: 'test snapshot', - url: 'http://localhost:8000', - domSnapshot: testDOM - }); - - await percy.idle(); - - expect(logger.stderr).toEqual(jasmine.arrayContaining([ - '[percy:core:snapshot] - enableLayout: false' - ])); - }); - it('enable when enableLayout: true', async () => { percy.config.snapshot.enableLayout = true; percy.loglevel('debug'); diff --git a/packages/core/test/percy.test.js b/packages/core/test/percy.test.js index 0dfd8a33b..d65043e58 100644 --- a/packages/core/test/percy.test.js +++ b/packages/core/test/percy.test.js @@ -59,8 +59,7 @@ describe('Percy', () => { percyCSS: '', enableJavaScript: false, disableShadowDOM: false, - cliEnableJavaScript: true, - enableLayout: false + cliEnableJavaScript: true }); }); diff --git a/packages/dom/README.md b/packages/dom/README.md index d593a334b..fcbd2788f 100644 --- a/packages/dom/README.md +++ b/packages/dom/README.md @@ -38,7 +38,6 @@ const domSnapshot = await page.evaluate(() => PercyDOM.serialize(options)) - `enableJavaScript` — When true, does not serialize some DOM elements - `domTransformation` — Function to transform the DOM after serialization - `disableShadowDOM` — disable shadow DOM capturing, this option can be passed to `percySnapshot` its part of per-snapshot config. -- `enableLayout` - When true, It enables layout testing. ## Serialized Content