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
!191
Resolve "[
MIN-322
] Project without disease or organism defined"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "[
MIN-322
] Project without disease or organism defined"
255-min-322-project-without-disease-or-organism-defined
into
development
Overview
0
Commits
3
Pipelines
3
Changes
10
Merged
Piotr Gawron
requested to merge
255-min-322-project-without-disease-or-organism-defined
into
development
10 months ago
Overview
0
Commits
3
Pipelines
3
Changes
10
Expand
Closes
#255 (closed)
0
0
Merge request reports
Compare
development
development (base)
and
latest version
latest version
b2cca66e
3 commits,
10 months ago
10 files
+
126
−
35
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
10
Search (e.g. *.vue) (Ctrl+P)
src/components/Map/Drawer/ProjectInfoDrawer/ProjectInfoDrawer.component.test.tsx
+
9
−
5
Options
@@ -69,12 +69,14 @@ describe('ProjectInfoDrawer', () => {
const
diseaseLink
=
screen
.
getByText
(
/Disease:/i
);
expect
(
diseaseLink
).
toBeInTheDocument
();
const
linkelement
=
screen
.
getByRole
(
'
link
'
,
{
name
:
projectFixture
.
diseaseName
});
const
linkelement
=
screen
.
getByRole
(
'
link
'
,
{
name
:
projectFixture
.
diseaseName
?
projectFixture
.
diseaseName
:
'
xyz
'
,
});
expect
(
linkelement
).
toBeInTheDocument
();
expect
(
linkelement
).
toHaveAttribute
(
'
href
'
,
projectFixture
.
disease
.
link
);
expect
(
linkelement
).
toHaveAttribute
(
'
href
'
,
projectFixture
.
disease
?
.
link
);
});
it
(
'
should fetch di
e
sease name when diseaseId is provided
'
,
async
()
=>
{
it
(
'
should fetch disease name when diseaseId is provided
'
,
async
()
=>
{
await
act
(()
=>
{
renderComponent
(
MOCKED_STORE
);
});
@@ -82,9 +84,11 @@ describe('ProjectInfoDrawer', () => {
const
organismLink
=
screen
.
getByText
(
/Organism:/i
);
expect
(
organismLink
).
toBeInTheDocument
();
const
linkelement
=
screen
.
getByRole
(
'
link
'
,
{
name
:
projectFixture
.
organismName
});
const
linkelement
=
screen
.
getByRole
(
'
link
'
,
{
name
:
projectFixture
.
organismName
?
projectFixture
.
organismName
:
'
xyz
'
,
});
expect
(
linkelement
).
toBeInTheDocument
();
expect
(
linkelement
).
toHaveAttribute
(
'
href
'
,
projectFixture
.
organism
.
link
);
expect
(
linkelement
).
toHaveAttribute
(
'
href
'
,
projectFixture
.
organism
?
.
link
);
});
it
(
'
should render the source file download button
'
,
()
=>
{
Loading