From 94cf24438728aa1208dd8ecdf9ad0fa6a9448894 Mon Sep 17 00:00:00 2001 From: Marco Ciampini Date: Wed, 31 Aug 2022 14:20:05 +0200 Subject: [PATCH] each => all --- .../specs/editor/various/draggable-block.test.js | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/packages/e2e-tests/specs/editor/various/draggable-block.test.js b/packages/e2e-tests/specs/editor/various/draggable-block.test.js index 500e32c1661a3..46164d49d2041 100644 --- a/packages/e2e-tests/specs/editor/various/draggable-block.test.js +++ b/packages/e2e-tests/specs/editor/various/draggable-block.test.js @@ -12,10 +12,8 @@ import { clickBlockAppender, } from '@wordpress/e2e-test-utils'; -describe.skip( 'Draggable block', () => { - // Tests don't seem to pass if beforeAll and afterAll are used. - // Unsure why. - beforeEach( async () => { +describe( 'Draggable block', () => { + beforeAll( async () => { await deactivatePlugin( 'gutenberg-test-plugin-disables-the-css-animations' ); @@ -24,11 +22,10 @@ describe.skip( 'Draggable block', () => { // Scrolling can interfere with the drag coordinates. await page.setViewport( { width: 960, height: 1024 } ); await waitForWindowDimensions( 960, 1024 ); - await createNewPost(); await page.setDragInterception( true ); } ); - afterEach( async () => { + afterAll( async () => { await page.setDragInterception( false ); // Reset the viewport to normal large size. @@ -38,6 +35,10 @@ describe.skip( 'Draggable block', () => { ); } ); + beforeEach( async () => { + await createNewPost(); + } ); + it( 'can drag and drop to the top of a block list', async () => { await clickBlockAppender(); await page.keyboard.type( '1' );