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
!275
Resolve "cookie banner for matomo"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "cookie banner for matomo"
301-cookie-banner-for-matomo
into
development
Overview
0
Commits
11
Pipelines
5
Changes
23
Merged
Piotr Gawron
requested to merge
301-cookie-banner-for-matomo
into
development
4 months ago
Overview
0
Commits
11
Pipelines
5
Changes
23
Expand
Closes
#301 (closed)
0
0
Merge request reports
Compare
development
version 1
79465650
4 months ago
development (base)
and
latest version
latest version
0c7025ba
11 commits,
4 months ago
version 1
79465650
10 commits,
4 months ago
23 files
+
303
−
93
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
23
Search (e.g. *.vue) (Ctrl+P)
src/components/FunctionalArea/CookieBanner/CookieBanner.component.test.tsx
+
13
−
7
Options
import
React
from
'
react
'
;
import
{
render
,
screen
}
from
'
@testing-library/react
'
;
import
{
ToolkitStoreWithSingleSlice
}
from
'
@/utils/createStoreInstanceUsingSliceReducer
'
;
import
{
CookieBannerState
}
from
'
@/redux/cookieBanner/cookieBanner.types
'
;
import
{
getReduxWrapperUsingSliceReducer
}
from
'
@/utils/testing/getReduxWrapperUsingSliceReducer
'
;
import
cookieBannerReducer
from
'
@/redux/cookieBanner/cookieBanner.slice
'
;
import
{
act
}
from
'
react-dom/test-utils
'
;
import
{
CookieBanner
}
from
'
./CookieBanner.component
'
;
import
{
getReduxWrapperWithStore
}
from
'
@/utils/testing/getReduxWrapperWithStore
'
;
import
{
INITIAL_STORE_STATE_MOCK
}
from
'
@/redux/root/root.fixtures
'
;
import
{
StoreType
}
from
'
@/redux/store
'
;
import
{
CONFIGURATION_INITIAL_STORE_MOCKS
}
from
'
@/redux/configuration/configuration.mock
'
;
import
{
USER_ACCEPTED_COOKIES_COOKIE_NAME
,
USER_ACCEPTED_COOKIES_COOKIE_VALUE
,
}
from
'
./CookieBanner.constants
'
;
import
{
CookieBanner
}
from
'
./CookieBanner.component
'
;
const
renderComponent
=
():
{
store
:
ToolkitStoreWithSingleSlice
<
CookieBannerState
>
}
=>
{
const
{
Wrapper
,
store
}
=
getReduxWrapperUsingSliceReducer
(
'
cookieBanner
'
,
cookieBannerReducer
);
const
renderComponent
=
():
{
store
:
StoreType
}
=>
{
// const { Wrapper, store } = getReduxWrapperUsingSliceReducer('cookieBanner', cookieBannerReducer);
//
const
{
Wrapper
,
store
}
=
getReduxWrapperWithStore
({
...
INITIAL_STORE_STATE_MOCK
,
configuration
:
CONFIGURATION_INITIAL_STORE_MOCKS
,
});
return
(
render
(
Loading