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
6a4fbd08
Commit
6a4fbd08
authored
Nov 04, 2024
by
Max Alekseenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix test
parent
c50daff3
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
TxSubHeading.pw.tsx
ui/tx/TxSubHeading.pw.tsx
+2
-1
TxSubHeading.pw.tsx_default_blockscout-provider-no-interpretation-with-action-button-1.png
...scout-provider-no-interpretation-with-action-button-1.png
+0
-0
No files found.
ui/tx/TxSubHeading.pw.tsx
View file @
6a4fbd08
...
@@ -3,6 +3,7 @@ import React from 'react';
...
@@ -3,6 +3,7 @@ import React from 'react';
import
type
{
AddressMetadataInfo
,
AddressMetadataTagApi
}
from
'
types/api/addressMetadata
'
;
import
type
{
AddressMetadataInfo
,
AddressMetadataTagApi
}
from
'
types/api/addressMetadata
'
;
import
config
from
'
configs/app
'
;
import
config
from
'
configs/app
'
;
import
*
as
addressMock
from
'
mocks/address/address
'
;
import
{
protocolTagWithMeta
}
from
'
mocks/metadata/address
'
;
import
{
protocolTagWithMeta
}
from
'
mocks/metadata/address
'
;
import
*
as
txMock
from
'
mocks/txs/tx
'
;
import
*
as
txMock
from
'
mocks/txs/tx
'
;
import
{
txInterpretation
}
from
'
mocks/txs/txInterpretation
'
;
import
{
txInterpretation
}
from
'
mocks/txs/txInterpretation
'
;
...
@@ -127,7 +128,7 @@ test.describe('blockscout provider', () => {
...
@@ -127,7 +128,7 @@ test.describe('blockscout provider', () => {
await
mockApiResponse
(
'
address_metadata_info
'
,
metadataResponse
,
{
queryParams
:
addressMetadataQueryParams
});
await
mockApiResponse
(
'
address_metadata_info
'
,
metadataResponse
,
{
queryParams
:
addressMetadataQueryParams
});
await
mockAssetResponse
(
protocolTagWithMeta
?.
meta
?.
appLogoURL
as
string
,
'
./playwright/mocks/image_s.jpg
'
);
await
mockAssetResponse
(
protocolTagWithMeta
?.
meta
?.
appLogoURL
as
string
,
'
./playwright/mocks/image_s.jpg
'
);
const
newTxQuery
=
{
...
txQuery
,
data
:
txMock
.
withRecipientContract
}
as
TxQuery
;
const
newTxQuery
=
{
...
txQuery
,
data
:
{
...
txMock
.
pending
,
to
:
addressMock
.
contract
}
}
as
TxQuery
;
const
component
=
await
render
(<
TxSubHeading
hash=
{
hash
}
hasTag=
{
false
}
txQuery=
{
newTxQuery
}
/>);
const
component
=
await
render
(<
TxSubHeading
hash=
{
hash
}
hasTag=
{
false
}
txQuery=
{
newTxQuery
}
/>);
await
expect
(
component
).
toHaveScreenshot
();
await
expect
(
component
).
toHaveScreenshot
();
});
});
...
...
ui/tx/__screenshots__/TxSubHeading.pw.tsx_default_blockscout-provider-no-interpretation-with-action-button-1.png
View replaced file @
c50daff3
View file @
6a4fbd08
11.7 KB
|
W:
|
H:
8.98 KB
|
W:
|
H:
2-up
Swipe
Onion skin
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