Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
baas-ide
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guxukai
baas-ide
Commits
e145a2da
Commit
e145a2da
authored
Oct 28, 2021
by
yann300
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix e2e
parent
7accbc72
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
solidityUnittests.spec.ts
apps/remix-ide-e2e/src/tests/solidityUnittests.spec.ts
+1
-1
remix-ui-tabs.tsx
libs/remix-ui/tabs/src/lib/remix-ui-tabs.tsx
+3
-2
No files found.
apps/remix-ide-e2e/src/tests/solidityUnittests.spec.ts
View file @
e145a2da
...
...
@@ -94,7 +94,7 @@ module.exports = {
'Should fail on compilation, open file on error click, not disappear error'
:
function
(
browser
:
NightwatchBrowser
)
{
browser
.
waitForElementPresent
(
'*[data-id="verticalIconsKindfilePanel"]'
)
.
addFile
(
'tests/compilationError_test.sol'
,
sources
[
0
][
'compilationError_test.sol'
])
.
click
(
'div[title="default_workspace/tests/compilationError_test.sol"] span[class="close"]'
)
.
click
(
'div[title="default_workspace/tests/compilationError_test.sol"] span[class="close
-tabs
"]'
)
.
clickLaunchIcon
(
'solidityUnitTesting'
)
.
pause
(
2000
)
.
click
(
'*[data-id="testTabCheckAllTests"]'
)
...
...
libs/remix-ui/tabs/src/lib/remix-ui-tabs.tsx
View file @
e145a2da
...
...
@@ -31,7 +31,7 @@ export const TabsUI = (props: TabsUIProps) => {
const
renderTab
=
(
tab
,
index
)
=>
{
const
classNameImg
=
'my-1 mr-1 text-dark '
+
tab
.
iconClass
const
classNameTab
=
'nav-item nav-link tab'
+
(
index
===
selectedIndex
?
' active'
:
''
)
const
classNameTab
=
'nav-item nav-link tab'
+
(
index
===
currentIndexRef
.
current
?
' active'
:
''
)
return
(
<
div
ref=
{
el
=>
{
tabsRef
.
current
[
index
]
=
el
}
}
className=
{
classNameTab
}
title=
{
tab
.
tooltip
}
>
{
tab
.
icon
?
(<
img
className=
"my-1 mr-1 iconImage"
src=
{
tab
.
icon
}
/>)
:
(<
i
className=
{
classNameImg
}
></
i
>)
}
...
...
@@ -44,12 +44,13 @@ export const TabsUI = (props: TabsUIProps) => {
}
const
active
=
()
=>
{
if
(
currentIndexRef
.
current
<
0
)
return
''
return
props
.
tabs
[
currentIndexRef
.
current
].
name
}
const
activateTab
=
(
name
:
string
)
=>
{
const
index
=
props
.
tabs
.
findIndex
((
tab
)
=>
tab
.
name
===
name
)
setSelectedIndex
(
index
)
currentIndexRef
.
current
=
index
setSelectedIndex
(
index
)
}
useEffect
(()
=>
{
props
.
onReady
({
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment