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
d2527871
Unverified
Commit
d2527871
authored
Apr 22, 2024
by
Igor Stuev
Committed by
GitHub
Apr 22, 2024
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1840 from blockscout/block-blob-fix
configure blob txs in block details
parents
ed6bfac9
d84e7e00
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 @
d2527871
import
{
test
,
expect
}
from
'
@playwright/experimental-ct-react
'
;
import
React
from
'
react
'
;
import
*
as
blockMock
from
'
mocks/blocks/block
'
;
import
contextWithEnvs
from
'
playwright/fixtures/contextWithEnvs
'
;
import
{
test
,
expect
}
from
'
playwright/lib
'
;
import
TestApp
from
'
playwright/TestApp
'
;
import
*
as
configs
from
'
playwright/utils/configs
'
;
...
...
@@ -51,7 +51,10 @@ test('genesis block', async({ mount, page }) => {
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
=
{
data
:
blockMock
.
withBlobTxs
,
isPending
:
false
,
...
...
ui/block/BlockDetails.tsx
View file @
d2527871
...
...
@@ -127,7 +127,7 @@ const BlockDetails = ({ query }: Props) => {
</
LinkInternal
>
);
const
blockBlobTxsNum
=
data
.
blob_tx_count
?
(
const
blockBlobTxsNum
=
(
config
.
features
.
dataAvailability
.
isEnabled
&&
data
.
blob_tx_count
)
?
(
<>
<
span
>
and
</
span
>
<
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