Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
siibra-explorer
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Xiao Gui
siibra-explorer
Commits
1b058071
Commit
1b058071
authored
4 years ago
by
fsdavid
Browse files
Options
Downloads
Patches
Plain Diff
check region menu explore template button attribute test case
parent
70503e88
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
docs/releases/v2.2.0.md
+1
-0
1 addition, 0 deletions
docs/releases/v2.2.0.md
e2e/src/navigating/navigateFromRegion.prod.e2e-spec.js
+16
-2
16 additions, 2 deletions
e2e/src/navigating/navigateFromRegion.prod.e2e-spec.js
with
17 additions
and
2 deletions
docs/releases/v2.2.0.md
+
1
−
0
View file @
1b058071
...
...
@@ -12,6 +12,7 @@
-
Fixed false positive CSP violations (#490)
-
Fixed
`standAloneVolumes`
only showing the first volume
-
Fixed
`pluginControl.loadExternalLibraries`
and
`pluginControl.unloadExternalLibraries`
(#516)
-
Fixed Hemisphere information overflowed in region menu explore template list (#529)
## Under the hood stuff
...
...
This diff is collapsed.
Click to expand it.
e2e/src/navigating/navigateFromRegion.prod.e2e-spec.js
+
16
−
2
View file @
1b058071
...
...
@@ -134,12 +134,12 @@ describe('> explore same region in different templates', () => {
describe
(
'
> menu UI
'
,
()
=>
{
const
data
=
TEST_DATA
[
0
]
beforeEach
(
async
()
=>
{
await
getBeforeEachFn
(
iavPage
)(
data
)()
})
it
(
'
> dismisses when user clicks/drags outside
'
,
async
()
=>
{
await
getBeforeEachFn
(
iavPage
)(
data
)()
const
{
expectedRegion
,
expectedTemplateLabels
,
position
,
url
,
templateName
}
=
data
await
iavPage
.
cursorMoveToAndDrag
({
...
...
@@ -157,5 +157,19 @@ describe('> explore same region in different templates', () => {
expect
(
true
).
toBe
(
true
)
}
})
it
(
'
> Tooltip visible if overflowed
'
,
async
()
=>
{
const
data2
=
TEST_DATA
[
1
]
await
getBeforeEachFn
(
iavPage
)(
data2
)()
const
{
expectedRegion
,
expectedTemplateLabels
,
position
,
url
,
templateName
}
=
data2
const
desiredTemplateButton
=
await
expectedTemplateLabels
.
find
(
el
=>
el
.
name
.
length
>
30
)
if
(
desiredTemplateButton
)
{
const
test
=
await
iavPage
.
getAttribute
(
`[aria-label="
${
SHOW_IN_OTHER_REF_SPACE
}
:
${
desiredTemplateButton
.
name
}${
desiredTemplateButton
.
hemisphere
?
(
'
-
'
+
desiredTemplateButton
.
hemisphere
)
:
''
}
"]`
,
'
matTooltip
'
)
console
.
log
(
test
)
}
})
})
})
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment