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
c7e0f297
Commit
c7e0f297
authored
Jun 02, 2023
by
tom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change test mock
parent
e7a5baee
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
2 deletions
+17
-2
TokenTransferList.pw.tsx
ui/shared/TokenTransfer/TokenTransferList.pw.tsx
+17
-2
TokenTransferList.pw.tsx_default_with-tx-info-1.png
...ots__/TokenTransferList.pw.tsx_default_with-tx-info-1.png
+0
-0
TokenTransferList.pw.tsx_default_without-tx-info-1.png
...__/TokenTransferList.pw.tsx_default_without-tx-info-1.png
+0
-0
No files found.
ui/shared/TokenTransfer/TokenTransferList.pw.tsx
View file @
c7e0f297
...
@@ -9,12 +9,27 @@ import TokenTransferList from './TokenTransferList';
...
@@ -9,12 +9,27 @@ import TokenTransferList from './TokenTransferList';
test
.
use
({
viewport
:
devices
[
'
iPhone 13 Pro
'
].
viewport
});
test
.
use
({
viewport
:
devices
[
'
iPhone 13 Pro
'
].
viewport
});
const
data
=
[
{
...
tokenTransferMock
.
erc20
,
to
:
{
...
tokenTransferMock
.
erc20
.
to
,
hash
:
tokenTransferMock
.
erc721
.
to
.
hash
,
},
},
tokenTransferMock
.
erc721
,
tokenTransferMock
.
erc1155A
,
tokenTransferMock
.
erc1155B
,
tokenTransferMock
.
erc1155C
,
tokenTransferMock
.
erc1155D
,
];
test
(
'
without tx info
'
,
async
({
mount
})
=>
{
test
(
'
without tx info
'
,
async
({
mount
})
=>
{
const
component
=
await
mount
(
const
component
=
await
mount
(
<
TestApp
>
<
TestApp
>
<
Box
h=
{
{
base
:
'
134px
'
,
lg
:
6
}
}
/>
<
Box
h=
{
{
base
:
'
134px
'
,
lg
:
6
}
}
/>
<
TokenTransferList
<
TokenTransferList
data=
{
tokenTransferMock
.
mixTokens
.
items
}
data=
{
data
}
showTxInfo=
{
false
}
showTxInfo=
{
false
}
/>
/>
</
TestApp
>,
</
TestApp
>,
...
@@ -28,7 +43,7 @@ test('with tx info', async({ mount }) => {
...
@@ -28,7 +43,7 @@ test('with tx info', async({ mount }) => {
<
TestApp
>
<
TestApp
>
<
Box
h=
{
{
base
:
'
134px
'
,
lg
:
6
}
}
/>
<
Box
h=
{
{
base
:
'
134px
'
,
lg
:
6
}
}
/>
<
TokenTransferList
<
TokenTransferList
data=
{
tokenTransferMock
.
mixTokens
.
items
}
data=
{
data
}
showTxInfo=
{
true
}
showTxInfo=
{
true
}
/>
/>
</
TestApp
>,
</
TestApp
>,
...
...
ui/shared/TokenTransfer/__screenshots__/TokenTransferList.pw.tsx_default_with-tx-info-1.png
View replaced file @
e7a5baee
View file @
c7e0f297
97.4 KB
|
W:
|
H:
97.6 KB
|
W:
|
H:
2-up
Swipe
Onion skin
ui/shared/TokenTransfer/__screenshots__/TokenTransferList.pw.tsx_default_without-tx-info-1.png
View replaced file @
e7a5baee
View file @
c7e0f297
77.1 KB
|
W:
|
H:
77.4 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