Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
frontend
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vicotor
frontend
Commits
d84e7e00
Commit
d84e7e00
authored
Apr 19, 2024
by
isstuev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
configure blob txs in block details
parent
ca10f8ab
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
BlockDetails.pw.tsx
ui/block/BlockDetails.pw.tsx
+5
-2
BlockDetails.tsx
ui/block/BlockDetails.tsx
+1
-1
No files found.
ui/block/BlockDetails.pw.tsx
View file @
d84e7e00
import
{
test
,
expect
}
from
'
@playwright/experimental-ct-react
'
;
import
React
from
'
react
'
;
import
React
from
'
react
'
;
import
*
as
blockMock
from
'
mocks/blocks/block
'
;
import
*
as
blockMock
from
'
mocks/blocks/block
'
;
import
contextWithEnvs
from
'
playwright/fixtures/contextWithEnvs
'
;
import
contextWithEnvs
from
'
playwright/fixtures/contextWithEnvs
'
;
import
{
test
,
expect
}
from
'
playwright/lib
'
;
import
TestApp
from
'
playwright/TestApp
'
;
import
TestApp
from
'
playwright/TestApp
'
;
import
*
as
configs
from
'
playwright/utils/configs
'
;
import
*
as
configs
from
'
playwright/utils/configs
'
;
...
@@ -51,7 +51,10 @@ test('genesis block', async({ mount, page }) => {
...
@@ -51,7 +51,10 @@ test('genesis block', async({ mount, page }) => {
await
expect
(
component
).
toHaveScreenshot
();
await
expect
(
component
).
toHaveScreenshot
();
});
});
test
(
'
with blob txs
'
,
async
({
mount
,
page
})
=>
{
test
(
'
with blob txs
'
,
async
({
mount
,
page
,
mockEnvs
})
=>
{
await
mockEnvs
([
[
'
NEXT_PUBLIC_DATA_AVAILABILITY_ENABLED
'
,
'
true
'
],
]);
const
query
=
{
const
query
=
{
data
:
blockMock
.
withBlobTxs
,
data
:
blockMock
.
withBlobTxs
,
isPending
:
false
,
isPending
:
false
,
...
...
ui/block/BlockDetails.tsx
View file @
d84e7e00
...
@@ -127,7 +127,7 @@ const BlockDetails = ({ query }: Props) => {
...
@@ -127,7 +127,7 @@ const BlockDetails = ({ query }: Props) => {
</
LinkInternal
>
</
LinkInternal
>
);
);
const
blockBlobTxsNum
=
data
.
blob_tx_count
?
(
const
blockBlobTxsNum
=
(
config
.
features
.
dataAvailability
.
isEnabled
&&
data
.
blob_tx_count
)
?
(
<>
<>
<
span
>
and
</
span
>
<
span
>
and
</
span
>
<
LinkInternal
href=
{
route
({
pathname
:
'
/block/[height_or_hash]
'
,
query
:
{
height_or_hash
:
heightOrHash
,
tab
:
'
blob_txs
'
}
})
}
>
<
LinkInternal
href=
{
route
({
pathname
:
'
/block/[height_or_hash]
'
,
query
:
{
height_or_hash
:
heightOrHash
,
tab
:
'
blob_txs
'
}
})
}
>
...
...
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