Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 7 additions & 10 deletions packages/e2e-tests/specs/editor/various/draggable-block.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,12 @@ import {
deactivatePlugin,
activatePlugin,
showBlockToolbar,
setBrowserViewport,
waitForWindowDimensions,
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'
);
Expand All @@ -24,15 +21,15 @@ 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 () => {
await page.setDragInterception( false );
beforeEach( async () => {
await createNewPost();
} );

// Reset the viewport to normal large size.
await setBrowserViewport( 'large' );
Comment thread
WunderBart marked this conversation as resolved.
afterAll( async () => {
await page.setDragInterception( false );
await activatePlugin(
'gutenberg-test-plugin-disables-the-css-animations'
);
Expand Down