Skip to content

Commit

Permalink
updates tests
Browse files Browse the repository at this point in the history
  • Loading branch information
psorensen committed Feb 8, 2024
1 parent 620fb39 commit 89e47d6
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions tests/cypress/e2e/block.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,19 @@ describe( 'Admin can publish posts with winamp block', () => {
}).then( post => {
cy.visit( `/wp-admin/post.php?post=${post.id}&action=edit` );
// verify page contains new block
cy.get( '.wp-block-audio audio' )
cy.get( '.wp-block-tenup-winamp-block' );
// toggle to 'Manage Media' view
cy.get( '.components-tab-button.winamp-show-media').click();
// Confirm the audio file is present
cy.get('.wp-block-audio audio')
.should( 'have.attr', 'src' )
.and( 'include', 'example' );
// toggle to 'Show Preview' view
cy.get( '.components-tab-button.winamp-show-preview').click();
// confirm webamp is showing
cy.get( '#webamp' )
.should( 'have.css', 'display', 'block' );

});
} );
} );
} );

0 comments on commit 89e47d6

Please sign in to comment.