Skip to content

Commit

Permalink
Merge pull request #9082 from google/enhancement/8837-fix-rrm-setupma…
Browse files Browse the repository at this point in the history
…in-story
  • Loading branch information
aaemnnosttv authored Jul 26, 2024
2 parents 0b91404 + 5e0d539 commit e802a17
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
/**
* Internal dependencies
*/
import WithRegistrySetup from '../../../../../../tests/js/WithRegistrySetup';
import { MODULES_READER_REVENUE_MANAGER } from '../../datastore/constants';
import SetupMain from './SetupMain';

function Template() {
Expand All @@ -27,8 +29,26 @@ function Template() {

export const Default = Template.bind( {} );
Default.storyName = 'Default';
Default.scenario = {
// No parameters are needed for this scenario, but we still need to define the scenario object to include the story in the VRT suite.
};

export default {
title: 'Modules/ReaderRevenueManager/Setup/SetupMain',
component: SetupMain,
decorators: [
( Story ) => {
function setupRegistry( registry ) {
registry
.dispatch( MODULES_READER_REVENUE_MANAGER )
.receiveGetPublications( [] );
}

return (
<WithRegistrySetup func={ setupRegistry }>
<Story />
</WithRegistrySetup>
);
},
],
};
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit e802a17

Please sign in to comment.