Skip to content

Commit

Permalink
Update test for SetupPublicationActionRequired.
Browse files Browse the repository at this point in the history
  • Loading branch information
hussain-t committed Jul 21, 2022
1 parent d3cc77d commit 2ff7edc
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -145,14 +145,16 @@ describe( 'SetupMain', () => {
.dispatch( MODULES_THANK_WITH_GOOGLE )
.receiveGetPublications( [ publicationActionRequiredStateC ] );

const { container } = render( <SetupMain />, {
const { container, queryByRole } = render( <SetupMain />, {
registry,
} );

// TODO: Update this assertion to match the new UI.
expect( container ).toHaveTextContent(
'TODO: UI for publication action required - SetupPublicationActionRequired'
'Finish the setup to customize and add Thank with Google on your site.'
);
const button = queryByRole( 'button' );
expect( button ).toBeInTheDocument();
expect( button ).toHaveTextContent( 'Complete setup' );
} );

it( 'should render the publication pending verification screen if the current publication state is `PENDING_VERIFICATION`', () => {
Expand Down

0 comments on commit 2ff7edc

Please sign in to comment.