Skip to content

Commit

Permalink
Revert unused change
Browse files Browse the repository at this point in the history
  • Loading branch information
kevin940726 committed Oct 12, 2023
1 parent 8f51764 commit b965e4b
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions test/e2e/specs/editor/blocks/cover.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,16 +81,6 @@ test.describe( 'Cover', () => {
name: 'Block: Cover',
} );

const deferred = defer();

await page.route(
new RegExp( encodeURIComponent( '/wp/v2/media' ) ),
async ( route ) => {
await deferred;
await route.continue();
}
);

await coverBlockUtils.upload(
coverBlock.getByTestId( 'form-file-upload-input' )
);
Expand All @@ -103,8 +93,6 @@ test.describe( 'Cover', () => {
'rgb(179, 179, 179)'
);
await expect( overlay ).toHaveCSS( 'opacity', '0.5' );

deferred.resolve();
} );

test( 'can have the title edited', async ( { editor } ) => {
Expand Down Expand Up @@ -269,12 +257,3 @@ class CoverBlockUtils {
return filename;
}
}

function defer() {
let resolve;
const deferred = new Promise( ( res ) => {
resolve = res;
} );
deferred.resolve = resolve;
return deferred;
}

0 comments on commit b965e4b

Please sign in to comment.