Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
frontend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
minerva
frontend
Merge requests
!373
feat(cleanup): access to element via store
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
feat(cleanup): access to element via store
feat/MIN-84-access-to-element-via-store
into
development
Overview
0
Commits
7
Pipelines
4
Changes
77
Merged
Miłosz Grocholewski
requested to merge
feat/MIN-84-access-to-element-via-store
into
development
3 weeks ago
Overview
0
Commits
7
Pipelines
4
Changes
77
Expand
Closes
MIN-84
0
0
Merge request reports
Compare
development
version 2
cb867685
2 weeks ago
version 1
cb867685
3 weeks ago
development (base)
and
latest version
latest version
79d55c8c
7 commits,
2 weeks ago
version 2
cb867685
6 commits,
2 weeks ago
version 1
cb867685
1 commit,
3 weeks ago
77 files
+
696
−
1481
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
77
Search (e.g. *.vue) (Ctrl+P)
src/components/FunctionalArea/MapNavigation/MapNavigation.component.test.tsx
+
38
−
2
Options
/* eslint-disable no-magic-numbers */
import
{
MODELS_MOCK
}
from
'
@/redux/compartmentPathways/compartmentPathways.mock
'
;
import
{
initialMapDataFixture
,
openedMapsThreeSubmapsFixture
}
from
'
@/redux/map/map.fixtures
'
;
import
{
StoreType
}
from
'
@/redux/store
'
;
import
{
PluginsEventBus
}
from
'
@/services/pluginsManager/pluginsEventBus
'
;
@@ -9,7 +8,7 @@ import {
}
from
'
@/utils/testing/getReduxWrapperWithStore
'
;
import
{
act
,
render
,
screen
,
within
}
from
'
@testing-library/react
'
;
import
{
HISTAMINE_MAP_ID
,
MAIN_MAP_ID
}
from
'
@/constants/mocks
'
;
import
{
Project
}
from
'
@/types/models
'
;
import
{
MapModel
,
Project
}
from
'
@/types/models
'
;
import
{
projectFixture
}
from
'
@/models/fixtures/projectFixture
'
;
import
{
ProjectState
}
from
'
@/redux/project/project.types
'
;
import
{
PROJECT_STATE_INITIAL_MOCK
}
from
'
@/redux/project/project.mock
'
;
@@ -17,6 +16,43 @@ import { ModelsState } from '@/redux/models/models.types';
import
{
DEFAULT_ERROR
}
from
'
@/constants/errors
'
;
import
{
MapNavigation
}
from
'
./MapNavigation.component
'
;
const
MODELS_MOCK
:
MapModel
[]
=
[
{
id
:
MAIN_MAP_ID
,
width
:
26779.25
,
height
:
13503.0
,
defaultCenterX
:
null
,
defaultCenterY
:
null
,
description
:
''
,
name
:
'
Core PD map
'
,
defaultZoomLevel
:
null
,
tileSize
:
256
,
references
:
[],
authors
:
[],
creationDate
:
null
,
modificationDates
:
[],
minZoom
:
2
,
maxZoom
:
9
,
},
{
id
:
5054
,
width
:
26779.25
,
height
:
13503.0
,
defaultCenterX
:
null
,
defaultCenterY
:
null
,
description
:
''
,
name
:
'
Core PD map
'
,
defaultZoomLevel
:
null
,
tileSize
:
256
,
references
:
[],
authors
:
[],
creationDate
:
null
,
modificationDates
:
[],
minZoom
:
2
,
maxZoom
:
9
,
},
];
export
const
MODELS_DATA
:
ModelsState
=
{
data
:
[
{
Loading