Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#42 Updated test; Test changes to resolve map toolbar padding on map info toggle #46

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions js/extension/epics/__tests__/urbanisme-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,18 +105,17 @@ describe('Urbanisme EPICS', () => {
};
testEpic(
toggleLandPlanningEpic,
5,
4,
toggleControl('urbanisme', null),
actions => {
expect(actions.length).toBe(5);
expect(actions.length).toBe(4);
actions.map(action=> {
switch (action.type) {
case UPDATE_ADDITIONAL_LAYER:
expect(action.options).toBeTruthy();
expect([URBANISME_RASTER_LAYER_ID, URBANISME_VECTOR_LAYER_ID].includes(action.options.id)).toBeTruthy();
break;
case TOGGLE_MAPINFO_STATE:
case PURGE_MAPINFO_RESULTS:
break;
case TOGGLE_CONTROL:
expect(action.control).toBe('measure');
Expand Down
4 changes: 2 additions & 2 deletions js/extension/epics/urbanisme.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import {
purgeMapInfoResults, SET_MAP_TRIGGER, setMapTrigger,
TOGGLE_MAPINFO_STATE,
toggleMapInfoState,
hideMapinfoMarker
hideMapinfoMarker, closeIdentify
} from "@mapstore/actions/mapInfo";

import {localConfigSelector} from '@mapstore/selectors/localConfig';
Expand Down Expand Up @@ -292,7 +292,7 @@ export const deactivateOnIdentifyEnabledEpic = (action$, {getState}) =>
? Rx.Observable.from([
toggleGFIPanel(false),
toggleUrbanismeTool(null),
purgeMapInfoResults()
closeIdentify()
])
: Rx.Observable.empty();
});
Expand Down