Skip to content
This repository has been archived by the owner on Jul 12, 2024. It is now read-only.

Commit

Permalink
Fix display-options test
Browse files Browse the repository at this point in the history
  • Loading branch information
chihsuan committed Feb 17, 2022
1 parent 18b60b9 commit a00c320
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions client/activity-panel/display-options/test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,10 @@ describe( 'Activity Panel - Homescreen Display Options', () => {
fireEvent.click( getByRole( 'button', { name: 'Display options' } ) );

// Verify the default of two columns.
expect(
getByText( 'Single column', { selector: 'button' } )
).toBeChecked();
expect(
getByText( 'Two columns', { selector: 'button' } )
).not.toBeChecked();
expect( getByText( 'Single column' ).parentNode ).toBeChecked();
expect( getByText( 'Two columns' ).parentNode ).not.toBeChecked();

fireEvent.click( getByText( 'Two columns', { selector: 'button' } ) );
fireEvent.click( getByText( 'Two columns' ).parentNode );

expect( recordEvent ).toHaveBeenCalledWith(
'homescreen_display_option',
Expand Down

0 comments on commit a00c320

Please sign in to comment.