From 10209e8f23446db2e259e368f321e3feda9411e5 Mon Sep 17 00:00:00 2001 From: Grzegorz Ziolkowski Date: Sun, 13 May 2018 11:50:24 +0200 Subject: [PATCH 1/2] Tests: Move integration tests to core blocks module --- .../test/integration.js | 18 ++++++++------- .../test/integration/apple-in.html | 0 .../test/integration/apple-out.html | 0 .../test/integration/classic-in.html | 0 .../test/integration/classic-out.html | 0 .../test/integration/evernote-in.html | 0 .../test/integration/evernote-out.html | 0 .../test/integration/google-docs-in.html | 0 .../test/integration/google-docs-out.html | 0 .../test/integration/iframe-embed-in.html | 0 .../test/integration/iframe-embed-out.html | 0 .../test/integration/markdown-in.txt | 0 .../test/integration/markdown-out.html | 0 .../test/integration/ms-word-in.html | 0 .../test/integration/ms-word-online-in.html | 0 .../test/integration/ms-word-online-out.html | 0 .../test/integration/ms-word-out.html | 0 .../test/integration/one-image-in.html | 0 .../test/integration/one-image-out.html | 0 .../test/integration/plain-in.html | 0 .../test/integration/plain-out.html | 0 .../test/integration/two-images-in.html | 0 .../test/integration/two-images-out.html | 0 .../test/integration/wordpress-in.html | 0 .../test/integration/wordpress-out.html | 0 .../test/raw-handler.js | 22 ++++++++----------- 26 files changed, 19 insertions(+), 21 deletions(-) rename blocks/api/raw-handling/test/integration/index.js => core-blocks/test/integration.js (65%) rename {blocks/api/raw-handling => core-blocks}/test/integration/apple-in.html (100%) rename {blocks/api/raw-handling => core-blocks}/test/integration/apple-out.html (100%) rename {blocks/api/raw-handling => core-blocks}/test/integration/classic-in.html (100%) rename {blocks/api/raw-handling => core-blocks}/test/integration/classic-out.html (100%) rename {blocks/api/raw-handling => core-blocks}/test/integration/evernote-in.html (100%) rename {blocks/api/raw-handling => core-blocks}/test/integration/evernote-out.html (100%) rename {blocks/api/raw-handling => core-blocks}/test/integration/google-docs-in.html (100%) rename {blocks/api/raw-handling => core-blocks}/test/integration/google-docs-out.html (100%) rename {blocks/api/raw-handling => core-blocks}/test/integration/iframe-embed-in.html (100%) rename {blocks/api/raw-handling => core-blocks}/test/integration/iframe-embed-out.html (100%) rename {blocks/api/raw-handling => core-blocks}/test/integration/markdown-in.txt (100%) rename {blocks/api/raw-handling => core-blocks}/test/integration/markdown-out.html (100%) rename {blocks/api/raw-handling => core-blocks}/test/integration/ms-word-in.html (100%) rename {blocks/api/raw-handling => core-blocks}/test/integration/ms-word-online-in.html (100%) rename {blocks/api/raw-handling => core-blocks}/test/integration/ms-word-online-out.html (100%) rename {blocks/api/raw-handling => core-blocks}/test/integration/ms-word-out.html (100%) rename {blocks/api/raw-handling => core-blocks}/test/integration/one-image-in.html (100%) rename {blocks/api/raw-handling => core-blocks}/test/integration/one-image-out.html (100%) rename {blocks/api/raw-handling => core-blocks}/test/integration/plain-in.html (100%) rename {blocks/api/raw-handling => core-blocks}/test/integration/plain-out.html (100%) rename {blocks/api/raw-handling => core-blocks}/test/integration/two-images-in.html (100%) rename {blocks/api/raw-handling => core-blocks}/test/integration/two-images-out.html (100%) rename {blocks/api/raw-handling => core-blocks}/test/integration/wordpress-in.html (100%) rename {blocks/api/raw-handling => core-blocks}/test/integration/wordpress-out.html (100%) rename blocks/api/raw-handling/test/index.js => core-blocks/test/raw-handler.js (70%) diff --git a/blocks/api/raw-handling/test/integration/index.js b/core-blocks/test/integration.js similarity index 65% rename from blocks/api/raw-handling/test/integration/index.js rename to core-blocks/test/integration.js index 2a66cf04a5ff6..40aa9eb6441ed 100644 --- a/blocks/api/raw-handling/test/integration/index.js +++ b/core-blocks/test/integration.js @@ -1,16 +1,18 @@ /** * External dependencies */ -import { equal } from 'assert'; import fs from 'fs'; import path from 'path'; +/** + * WordPress dependencies + */ +import { rawHandler, serialize } from '@wordpress/blocks'; + /** * Internal dependencies */ -import { registerCoreBlocks } from '../../../../../core-blocks'; -import rawHandler from '../../index'; -import serialize from '../../../serializer'; +import { registerCoreBlocks } from '../'; const types = [ 'plain', @@ -40,13 +42,13 @@ describe( 'raw handling: integration', () => { types.forEach( ( type ) => { it( type, () => { - const HTML = readFile( path.join( __dirname, `${ type }-in.html` ) ); - const plainText = readFile( path.join( __dirname, `${ type }-in.txt` ) ); - const output = readFile( path.join( __dirname, `${ type }-out.html` ) ); + const HTML = readFile( path.join( __dirname, `integration/${ type }-in.html` ) ); + const plainText = readFile( path.join( __dirname, `integration/${ type }-in.txt` ) ); + const output = readFile( path.join( __dirname, `integration/${ type }-out.html` ) ); const converted = rawHandler( { HTML, plainText, canUserUseUnfilteredHTML: true } ); const serialized = typeof converted === 'string' ? converted : serialize( converted ); - equal( serialized, output ); + expect( serialized ).toBe( output ); } ); } ); } ); diff --git a/blocks/api/raw-handling/test/integration/apple-in.html b/core-blocks/test/integration/apple-in.html similarity index 100% rename from blocks/api/raw-handling/test/integration/apple-in.html rename to core-blocks/test/integration/apple-in.html diff --git a/blocks/api/raw-handling/test/integration/apple-out.html b/core-blocks/test/integration/apple-out.html similarity index 100% rename from blocks/api/raw-handling/test/integration/apple-out.html rename to core-blocks/test/integration/apple-out.html diff --git a/blocks/api/raw-handling/test/integration/classic-in.html b/core-blocks/test/integration/classic-in.html similarity index 100% rename from blocks/api/raw-handling/test/integration/classic-in.html rename to core-blocks/test/integration/classic-in.html diff --git a/blocks/api/raw-handling/test/integration/classic-out.html b/core-blocks/test/integration/classic-out.html similarity index 100% rename from blocks/api/raw-handling/test/integration/classic-out.html rename to core-blocks/test/integration/classic-out.html diff --git a/blocks/api/raw-handling/test/integration/evernote-in.html b/core-blocks/test/integration/evernote-in.html similarity index 100% rename from blocks/api/raw-handling/test/integration/evernote-in.html rename to core-blocks/test/integration/evernote-in.html diff --git a/blocks/api/raw-handling/test/integration/evernote-out.html b/core-blocks/test/integration/evernote-out.html similarity index 100% rename from blocks/api/raw-handling/test/integration/evernote-out.html rename to core-blocks/test/integration/evernote-out.html diff --git a/blocks/api/raw-handling/test/integration/google-docs-in.html b/core-blocks/test/integration/google-docs-in.html similarity index 100% rename from blocks/api/raw-handling/test/integration/google-docs-in.html rename to core-blocks/test/integration/google-docs-in.html diff --git a/blocks/api/raw-handling/test/integration/google-docs-out.html b/core-blocks/test/integration/google-docs-out.html similarity index 100% rename from blocks/api/raw-handling/test/integration/google-docs-out.html rename to core-blocks/test/integration/google-docs-out.html diff --git a/blocks/api/raw-handling/test/integration/iframe-embed-in.html b/core-blocks/test/integration/iframe-embed-in.html similarity index 100% rename from blocks/api/raw-handling/test/integration/iframe-embed-in.html rename to core-blocks/test/integration/iframe-embed-in.html diff --git a/blocks/api/raw-handling/test/integration/iframe-embed-out.html b/core-blocks/test/integration/iframe-embed-out.html similarity index 100% rename from blocks/api/raw-handling/test/integration/iframe-embed-out.html rename to core-blocks/test/integration/iframe-embed-out.html diff --git a/blocks/api/raw-handling/test/integration/markdown-in.txt b/core-blocks/test/integration/markdown-in.txt similarity index 100% rename from blocks/api/raw-handling/test/integration/markdown-in.txt rename to core-blocks/test/integration/markdown-in.txt diff --git a/blocks/api/raw-handling/test/integration/markdown-out.html b/core-blocks/test/integration/markdown-out.html similarity index 100% rename from blocks/api/raw-handling/test/integration/markdown-out.html rename to core-blocks/test/integration/markdown-out.html diff --git a/blocks/api/raw-handling/test/integration/ms-word-in.html b/core-blocks/test/integration/ms-word-in.html similarity index 100% rename from blocks/api/raw-handling/test/integration/ms-word-in.html rename to core-blocks/test/integration/ms-word-in.html diff --git a/blocks/api/raw-handling/test/integration/ms-word-online-in.html b/core-blocks/test/integration/ms-word-online-in.html similarity index 100% rename from blocks/api/raw-handling/test/integration/ms-word-online-in.html rename to core-blocks/test/integration/ms-word-online-in.html diff --git a/blocks/api/raw-handling/test/integration/ms-word-online-out.html b/core-blocks/test/integration/ms-word-online-out.html similarity index 100% rename from blocks/api/raw-handling/test/integration/ms-word-online-out.html rename to core-blocks/test/integration/ms-word-online-out.html diff --git a/blocks/api/raw-handling/test/integration/ms-word-out.html b/core-blocks/test/integration/ms-word-out.html similarity index 100% rename from blocks/api/raw-handling/test/integration/ms-word-out.html rename to core-blocks/test/integration/ms-word-out.html diff --git a/blocks/api/raw-handling/test/integration/one-image-in.html b/core-blocks/test/integration/one-image-in.html similarity index 100% rename from blocks/api/raw-handling/test/integration/one-image-in.html rename to core-blocks/test/integration/one-image-in.html diff --git a/blocks/api/raw-handling/test/integration/one-image-out.html b/core-blocks/test/integration/one-image-out.html similarity index 100% rename from blocks/api/raw-handling/test/integration/one-image-out.html rename to core-blocks/test/integration/one-image-out.html diff --git a/blocks/api/raw-handling/test/integration/plain-in.html b/core-blocks/test/integration/plain-in.html similarity index 100% rename from blocks/api/raw-handling/test/integration/plain-in.html rename to core-blocks/test/integration/plain-in.html diff --git a/blocks/api/raw-handling/test/integration/plain-out.html b/core-blocks/test/integration/plain-out.html similarity index 100% rename from blocks/api/raw-handling/test/integration/plain-out.html rename to core-blocks/test/integration/plain-out.html diff --git a/blocks/api/raw-handling/test/integration/two-images-in.html b/core-blocks/test/integration/two-images-in.html similarity index 100% rename from blocks/api/raw-handling/test/integration/two-images-in.html rename to core-blocks/test/integration/two-images-in.html diff --git a/blocks/api/raw-handling/test/integration/two-images-out.html b/core-blocks/test/integration/two-images-out.html similarity index 100% rename from blocks/api/raw-handling/test/integration/two-images-out.html rename to core-blocks/test/integration/two-images-out.html diff --git a/blocks/api/raw-handling/test/integration/wordpress-in.html b/core-blocks/test/integration/wordpress-in.html similarity index 100% rename from blocks/api/raw-handling/test/integration/wordpress-in.html rename to core-blocks/test/integration/wordpress-in.html diff --git a/blocks/api/raw-handling/test/integration/wordpress-out.html b/core-blocks/test/integration/wordpress-out.html similarity index 100% rename from blocks/api/raw-handling/test/integration/wordpress-out.html rename to core-blocks/test/integration/wordpress-out.html diff --git a/blocks/api/raw-handling/test/index.js b/core-blocks/test/raw-handler.js similarity index 70% rename from blocks/api/raw-handling/test/index.js rename to core-blocks/test/raw-handler.js index 49809d0ae394e..49dbec193041c 100644 --- a/blocks/api/raw-handling/test/index.js +++ b/core-blocks/test/raw-handler.js @@ -1,14 +1,12 @@ /** - * External dependencies + * WordPress dependencies */ -import { equal } from 'assert'; +import { getBlockContent, rawHandler } from '@wordpress/blocks'; /** * Internal dependencies */ -import rawHandler from '../index'; -import { getBlockContent } from '../../serializer'; -import { registerCoreBlocks } from '../../../../core-blocks'; +import { registerCoreBlocks } from '../'; describe( 'rawHandler', () => { beforeAll( () => { @@ -23,7 +21,7 @@ describe( 'rawHandler', () => { mode: 'INLINE', } ); - equal( filtered, 'test' ); + expect( filtered ).toBe( 'test' ); } ); it( 'should parse Markdown', () => { @@ -33,7 +31,7 @@ describe( 'rawHandler', () => { mode: 'AUTO', } ).map( getBlockContent ).join( '' ); - equal( filtered, '' ); + expect( filtered ).toBe( '' ); } ); it( 'should parse inline Markdown', () => { @@ -43,7 +41,7 @@ describe( 'rawHandler', () => { mode: 'AUTO', } ); - equal( filtered, 'Some bold text.' ); + expect( filtered ).toBe( 'Some bold text.' ); } ); it( 'should parse HTML in plainText', () => { @@ -53,7 +51,7 @@ describe( 'rawHandler', () => { mode: 'AUTO', } ).map( getBlockContent ).join( '' ); - equal( filtered, '

Some bold text.

' ); + expect( filtered ).toBe( '

Some bold text.

' ); } ); it( 'should parse Markdown with HTML', () => { @@ -63,7 +61,7 @@ describe( 'rawHandler', () => { mode: 'AUTO', } ).map( getBlockContent ).join( '' ); - equal( filtered, '

Some heading

' ); + expect( filtered ).toBe( '

Some heading

' ); } ); it( 'should break up forced inline content', () => { @@ -72,8 +70,6 @@ describe( 'rawHandler', () => { mode: 'INLINE', } ); - equal( filtered, 'test
test' ); + expect( filtered ).toBe( 'test
test' ); } ); } ); - -import './integration'; From f8bac139ee5c21a1663db49d91299e84a3b72145 Mon Sep 17 00:00:00 2001 From: Grzegorz Ziolkowski Date: Mon, 14 May 2018 10:19:38 +0200 Subject: [PATCH 2/2] Tests: Move block raw handling tests to integration folder --- core-blocks/test/integration.js | 54 ------------------- .../integration/blocks-raw-handling.spec.js | 47 ++++++++++++++-- .../integration/fixtures}/apple-in.html | 0 .../integration/fixtures}/apple-out.html | 0 .../integration/fixtures}/classic-in.html | 0 .../integration/fixtures}/classic-out.html | 0 .../integration/fixtures}/evernote-in.html | 0 .../integration/fixtures}/evernote-out.html | 0 .../integration/fixtures}/google-docs-in.html | 0 .../fixtures}/google-docs-out.html | 0 .../fixtures}/iframe-embed-in.html | 0 .../fixtures}/iframe-embed-out.html | 0 .../integration/fixtures}/markdown-in.txt | 0 .../integration/fixtures}/markdown-out.html | 0 .../integration/fixtures}/ms-word-in.html | 0 .../fixtures}/ms-word-online-in.html | 0 .../fixtures}/ms-word-online-out.html | 0 .../integration/fixtures}/ms-word-out.html | 0 .../integration/fixtures}/one-image-in.html | 0 .../integration/fixtures}/one-image-out.html | 0 .../integration/fixtures}/plain-in.html | 0 .../integration/fixtures}/plain-out.html | 0 .../integration/fixtures}/two-images-in.html | 0 .../integration/fixtures}/two-images-out.html | 0 .../integration/fixtures}/wordpress-in.html | 0 .../integration/fixtures}/wordpress-out.html | 0 26 files changed, 42 insertions(+), 59 deletions(-) delete mode 100644 core-blocks/test/integration.js rename core-blocks/test/raw-handler.js => test/integration/blocks-raw-handling.spec.js (60%) rename {core-blocks/test/integration => test/integration/fixtures}/apple-in.html (100%) rename {core-blocks/test/integration => test/integration/fixtures}/apple-out.html (100%) rename {core-blocks/test/integration => test/integration/fixtures}/classic-in.html (100%) rename {core-blocks/test/integration => test/integration/fixtures}/classic-out.html (100%) rename {core-blocks/test/integration => test/integration/fixtures}/evernote-in.html (100%) rename {core-blocks/test/integration => test/integration/fixtures}/evernote-out.html (100%) rename {core-blocks/test/integration => test/integration/fixtures}/google-docs-in.html (100%) rename {core-blocks/test/integration => test/integration/fixtures}/google-docs-out.html (100%) rename {core-blocks/test/integration => test/integration/fixtures}/iframe-embed-in.html (100%) rename {core-blocks/test/integration => test/integration/fixtures}/iframe-embed-out.html (100%) rename {core-blocks/test/integration => test/integration/fixtures}/markdown-in.txt (100%) rename {core-blocks/test/integration => test/integration/fixtures}/markdown-out.html (100%) rename {core-blocks/test/integration => test/integration/fixtures}/ms-word-in.html (100%) rename {core-blocks/test/integration => test/integration/fixtures}/ms-word-online-in.html (100%) rename {core-blocks/test/integration => test/integration/fixtures}/ms-word-online-out.html (100%) rename {core-blocks/test/integration => test/integration/fixtures}/ms-word-out.html (100%) rename {core-blocks/test/integration => test/integration/fixtures}/one-image-in.html (100%) rename {core-blocks/test/integration => test/integration/fixtures}/one-image-out.html (100%) rename {core-blocks/test/integration => test/integration/fixtures}/plain-in.html (100%) rename {core-blocks/test/integration => test/integration/fixtures}/plain-out.html (100%) rename {core-blocks/test/integration => test/integration/fixtures}/two-images-in.html (100%) rename {core-blocks/test/integration => test/integration/fixtures}/two-images-out.html (100%) rename {core-blocks/test/integration => test/integration/fixtures}/wordpress-in.html (100%) rename {core-blocks/test/integration => test/integration/fixtures}/wordpress-out.html (100%) diff --git a/core-blocks/test/integration.js b/core-blocks/test/integration.js deleted file mode 100644 index 40aa9eb6441ed..0000000000000 --- a/core-blocks/test/integration.js +++ /dev/null @@ -1,54 +0,0 @@ -/** - * External dependencies - */ -import fs from 'fs'; -import path from 'path'; - -/** - * WordPress dependencies - */ -import { rawHandler, serialize } from '@wordpress/blocks'; - -/** - * Internal dependencies - */ -import { registerCoreBlocks } from '../'; - -const types = [ - 'plain', - 'classic', - 'apple', - 'google-docs', - 'ms-word', - 'ms-word-online', - 'evernote', - 'iframe-embed', - 'one-image', - 'two-images', - 'markdown', - 'wordpress', -]; - -function readFile( filePath ) { - return fs.existsSync( filePath ) ? fs.readFileSync( filePath, 'utf8' ).trim() : ''; -} - -describe( 'raw handling: integration', () => { - beforeAll( () => { - // Load all hooks that modify blocks - require( 'editor/hooks' ); - registerCoreBlocks(); - } ); - - types.forEach( ( type ) => { - it( type, () => { - const HTML = readFile( path.join( __dirname, `integration/${ type }-in.html` ) ); - const plainText = readFile( path.join( __dirname, `integration/${ type }-in.txt` ) ); - const output = readFile( path.join( __dirname, `integration/${ type }-out.html` ) ); - const converted = rawHandler( { HTML, plainText, canUserUseUnfilteredHTML: true } ); - const serialized = typeof converted === 'string' ? converted : serialize( converted ); - - expect( serialized ).toBe( output ); - } ); - } ); -} ); diff --git a/core-blocks/test/raw-handler.js b/test/integration/blocks-raw-handling.spec.js similarity index 60% rename from core-blocks/test/raw-handler.js rename to test/integration/blocks-raw-handling.spec.js index 49dbec193041c..47ac41aa87a05 100644 --- a/core-blocks/test/raw-handler.js +++ b/test/integration/blocks-raw-handling.spec.js @@ -1,14 +1,20 @@ /** - * WordPress dependencies + * External dependencies */ -import { getBlockContent, rawHandler } from '@wordpress/blocks'; +import fs from 'fs'; +import path from 'path'; /** - * Internal dependencies + * WordPress dependencies */ -import { registerCoreBlocks } from '../'; +import { + getBlockContent, + rawHandler, + serialize, +} from '@wordpress/blocks'; +import { registerCoreBlocks } from '@wordpress/core-blocks'; -describe( 'rawHandler', () => { +describe( 'Blocks raw handling', () => { beforeAll( () => { // Load all hooks that modify blocks require( 'editor/hooks' ); @@ -72,4 +78,35 @@ describe( 'rawHandler', () => { expect( filtered ).toBe( 'test
test' ); } ); + + describe( 'serialize', () => { + function readFile( filePath ) { + return fs.existsSync( filePath ) ? fs.readFileSync( filePath, 'utf8' ).trim() : ''; + } + + [ + 'plain', + 'classic', + 'apple', + 'google-docs', + 'ms-word', + 'ms-word-online', + 'evernote', + 'iframe-embed', + 'one-image', + 'two-images', + 'markdown', + 'wordpress', + ].forEach( ( type ) => { + it( type, () => { + const HTML = readFile( path.join( __dirname, `fixtures/${ type }-in.html` ) ); + const plainText = readFile( path.join( __dirname, `fixtures/${ type }-in.txt` ) ); + const output = readFile( path.join( __dirname, `fixtures/${ type }-out.html` ) ); + const converted = rawHandler( { HTML, plainText, canUserUseUnfilteredHTML: true } ); + const serialized = typeof converted === 'string' ? converted : serialize( converted ); + + expect( serialized ).toBe( output ); + } ); + } ); + } ); } ); diff --git a/core-blocks/test/integration/apple-in.html b/test/integration/fixtures/apple-in.html similarity index 100% rename from core-blocks/test/integration/apple-in.html rename to test/integration/fixtures/apple-in.html diff --git a/core-blocks/test/integration/apple-out.html b/test/integration/fixtures/apple-out.html similarity index 100% rename from core-blocks/test/integration/apple-out.html rename to test/integration/fixtures/apple-out.html diff --git a/core-blocks/test/integration/classic-in.html b/test/integration/fixtures/classic-in.html similarity index 100% rename from core-blocks/test/integration/classic-in.html rename to test/integration/fixtures/classic-in.html diff --git a/core-blocks/test/integration/classic-out.html b/test/integration/fixtures/classic-out.html similarity index 100% rename from core-blocks/test/integration/classic-out.html rename to test/integration/fixtures/classic-out.html diff --git a/core-blocks/test/integration/evernote-in.html b/test/integration/fixtures/evernote-in.html similarity index 100% rename from core-blocks/test/integration/evernote-in.html rename to test/integration/fixtures/evernote-in.html diff --git a/core-blocks/test/integration/evernote-out.html b/test/integration/fixtures/evernote-out.html similarity index 100% rename from core-blocks/test/integration/evernote-out.html rename to test/integration/fixtures/evernote-out.html diff --git a/core-blocks/test/integration/google-docs-in.html b/test/integration/fixtures/google-docs-in.html similarity index 100% rename from core-blocks/test/integration/google-docs-in.html rename to test/integration/fixtures/google-docs-in.html diff --git a/core-blocks/test/integration/google-docs-out.html b/test/integration/fixtures/google-docs-out.html similarity index 100% rename from core-blocks/test/integration/google-docs-out.html rename to test/integration/fixtures/google-docs-out.html diff --git a/core-blocks/test/integration/iframe-embed-in.html b/test/integration/fixtures/iframe-embed-in.html similarity index 100% rename from core-blocks/test/integration/iframe-embed-in.html rename to test/integration/fixtures/iframe-embed-in.html diff --git a/core-blocks/test/integration/iframe-embed-out.html b/test/integration/fixtures/iframe-embed-out.html similarity index 100% rename from core-blocks/test/integration/iframe-embed-out.html rename to test/integration/fixtures/iframe-embed-out.html diff --git a/core-blocks/test/integration/markdown-in.txt b/test/integration/fixtures/markdown-in.txt similarity index 100% rename from core-blocks/test/integration/markdown-in.txt rename to test/integration/fixtures/markdown-in.txt diff --git a/core-blocks/test/integration/markdown-out.html b/test/integration/fixtures/markdown-out.html similarity index 100% rename from core-blocks/test/integration/markdown-out.html rename to test/integration/fixtures/markdown-out.html diff --git a/core-blocks/test/integration/ms-word-in.html b/test/integration/fixtures/ms-word-in.html similarity index 100% rename from core-blocks/test/integration/ms-word-in.html rename to test/integration/fixtures/ms-word-in.html diff --git a/core-blocks/test/integration/ms-word-online-in.html b/test/integration/fixtures/ms-word-online-in.html similarity index 100% rename from core-blocks/test/integration/ms-word-online-in.html rename to test/integration/fixtures/ms-word-online-in.html diff --git a/core-blocks/test/integration/ms-word-online-out.html b/test/integration/fixtures/ms-word-online-out.html similarity index 100% rename from core-blocks/test/integration/ms-word-online-out.html rename to test/integration/fixtures/ms-word-online-out.html diff --git a/core-blocks/test/integration/ms-word-out.html b/test/integration/fixtures/ms-word-out.html similarity index 100% rename from core-blocks/test/integration/ms-word-out.html rename to test/integration/fixtures/ms-word-out.html diff --git a/core-blocks/test/integration/one-image-in.html b/test/integration/fixtures/one-image-in.html similarity index 100% rename from core-blocks/test/integration/one-image-in.html rename to test/integration/fixtures/one-image-in.html diff --git a/core-blocks/test/integration/one-image-out.html b/test/integration/fixtures/one-image-out.html similarity index 100% rename from core-blocks/test/integration/one-image-out.html rename to test/integration/fixtures/one-image-out.html diff --git a/core-blocks/test/integration/plain-in.html b/test/integration/fixtures/plain-in.html similarity index 100% rename from core-blocks/test/integration/plain-in.html rename to test/integration/fixtures/plain-in.html diff --git a/core-blocks/test/integration/plain-out.html b/test/integration/fixtures/plain-out.html similarity index 100% rename from core-blocks/test/integration/plain-out.html rename to test/integration/fixtures/plain-out.html diff --git a/core-blocks/test/integration/two-images-in.html b/test/integration/fixtures/two-images-in.html similarity index 100% rename from core-blocks/test/integration/two-images-in.html rename to test/integration/fixtures/two-images-in.html diff --git a/core-blocks/test/integration/two-images-out.html b/test/integration/fixtures/two-images-out.html similarity index 100% rename from core-blocks/test/integration/two-images-out.html rename to test/integration/fixtures/two-images-out.html diff --git a/core-blocks/test/integration/wordpress-in.html b/test/integration/fixtures/wordpress-in.html similarity index 100% rename from core-blocks/test/integration/wordpress-in.html rename to test/integration/fixtures/wordpress-in.html diff --git a/core-blocks/test/integration/wordpress-out.html b/test/integration/fixtures/wordpress-out.html similarity index 100% rename from core-blocks/test/integration/wordpress-out.html rename to test/integration/fixtures/wordpress-out.html