Skip to content

Commit

Permalink
Fix failing MetricsSelectionPanel test.
Browse files Browse the repository at this point in the history
  • Loading branch information
benbowler committed Oct 11, 2024
1 parent ed5ebdd commit cd5f8e3
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -499,6 +499,14 @@ describe( 'MetricsSelectionPanel', () => {
it( 'should not list metrics dependent on modules that a view-only user does not have access to', async () => {
provideUserAuthentication( registry, { authenticated: false } );

await registry
.dispatch( CORE_USER )
.receiveIsUserInputCompleted( false );
await registry.dispatch( CORE_USER ).receiveGetKeyMetricsSettings( {
widgetSlugs: [],
includeConversionTailoredMetrics: false,
} );

provideKeyMetrics( registry );

provideModules( registry, [
Expand Down

0 comments on commit cd5f8e3

Please sign in to comment.