Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- it.only('sends the appropriate action when click on different option (Radio-Button)', async () => {
- // const fareTypeElement = wrapper
- // .find('div[data-testid="fare-shop-search-fare-types"]')
- // .childAt(0);
- const privateRadioElement = wrapper
- .find('[data-testid="fare-shop-search-fare-types__private"]')
- .last();
- // const test = privateRadioElement
- // .find('.RadioButton__root')
- // .children()
- // .first();
- console.log(privateRadioElement.debug(), '____XXXX____');
- privateRadioElement.simulate('change', { target: { value: ':P' } });
- privateRadioElement.simulate('click');
- const foundAction = await spyMiddleware.getActions();
- console.log(foundAction, '-test- foundACTIONN______');
- // const foundAction2 = await spyMiddleware.getAction(SET_FARE_SHOP_SEARCH_FARE_TYPE_MODIFIER);
- // expect(foundAction2).toEqual({ type: 'setFareShopSearchFareType' });
- expect(spyMiddleware.getAction(SET_FARE_SHOP_SEARCH_FARE_TYPE_MODIFIER)).toBeDefined();
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement