Skip to content

Commit

Permalink
Remove the 'disabled when saving metaboxes' e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
jsnajdr committed Jul 10, 2023
1 parent 7376e29 commit df880bc
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions packages/e2e-tests/specs/editor/various/publish-button.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,19 +43,4 @@ describe( 'PostPublishButton', () => {
await page.$( '.editor-post-publish-button[aria-disabled="true"]' )
).not.toBeNull();
} );

it( 'should be disabled when metabox is being saved', async () => {
await canvas().type( '.editor-post-title__input', 'E2E Test Post' ); // Make it saveable.
expect(
await page.$( '.editor-post-publish-button[aria-disabled="true"]' )
).toBeNull();

await page.evaluate( () => {
window.wp.data.dispatch( 'core/edit-post' ).requestMetaBoxUpdates();
return true;
} );
expect(
await page.$( '.editor-post-publish-button[aria-disabled="true"]' )
).not.toBeNull();
} );
} );

0 comments on commit df880bc

Please sign in to comment.