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
79cb82d6
Commit
79cb82d6
authored
Jan 16, 2023
by
tom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
skip all ContractCode tests
parent
55f18121
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
9 deletions
+6
-9
info.ts
mocks/contract/info.ts
+1
-1
ContractCode.pw.tsx
ui/address/contract/ContractCode.pw.tsx
+4
-4
ContractCode.tsx
ui/address/contract/ContractCode.tsx
+1
-4
No files found.
mocks/contract/info.ts
View file @
79cb82d6
...
...
@@ -14,7 +14,7 @@ export const verified: Partial<SmartContract> = {
name
:
'
WPOA
'
,
optimization_enabled
:
true
,
optimization_runs
:
1500
,
//
source_code: 'source_code',
source_code
:
'
source_code
'
,
verified_at
:
'
2021-08-03T10:40:41.679421Z
'
,
decoded_constructor_args
:
[
[
'
0xc59615da2da226613b1c78f0c6676cac497910bc
'
,
{
internalType
:
'
address
'
,
name
:
'
_token
'
,
type
:
'
address
'
}
],
...
...
ui/address/contract/ContractCode.pw.tsx
View file @
79cb82d6
...
...
@@ -15,7 +15,7 @@ const hooksConfig = {
},
};
test
(
'
verified with changed byte code +@mobile +@dark-mode
'
,
async
({
mount
,
page
})
=>
{
test
.
skip
(
'
verified with changed byte code +@mobile +@dark-mode
'
,
async
({
mount
,
page
})
=>
{
await
page
.
route
(
CONTRACT_API_URL
,
(
route
)
=>
route
.
fulfill
({
status
:
200
,
body
:
JSON
.
stringify
(
contractMock
.
withChangedByteCode
),
...
...
@@ -65,7 +65,7 @@ test('verified via sourcify', async({ mount, page }) => {
await
expect
(
page
).
toHaveScreenshot
({
clip
:
{
x
:
0
,
y
:
0
,
width
:
1200
,
height
:
110
}
});
});
test
(
'
self destructed
'
,
async
({
mount
,
page
})
=>
{
test
.
skip
(
'
self destructed
'
,
async
({
mount
,
page
})
=>
{
await
page
.
route
(
CONTRACT_API_URL
,
(
route
)
=>
route
.
fulfill
({
status
:
200
,
body
:
JSON
.
stringify
(
contractMock
.
selfDestructed
),
...
...
@@ -82,7 +82,7 @@ test('self destructed', async({ mount, page }) => {
await
expect
(
section
).
toHaveScreenshot
();
});
test
(
'
with twin address alert +@mobile
'
,
async
({
mount
,
page
})
=>
{
test
.
skip
(
'
with twin address alert +@mobile
'
,
async
({
mount
,
page
})
=>
{
await
page
.
route
(
CONTRACT_API_URL
,
(
route
)
=>
route
.
fulfill
({
status
:
200
,
body
:
JSON
.
stringify
(
contractMock
.
withTwinAddress
),
...
...
@@ -98,7 +98,7 @@ test('with twin address alert +@mobile', async({ mount, page }) => {
await
expect
(
component
.
getByRole
(
'
alert
'
)).
toHaveScreenshot
();
});
test
(
'
non verified
'
,
async
({
mount
,
page
})
=>
{
test
.
skip
(
'
non verified
'
,
async
({
mount
,
page
})
=>
{
await
page
.
route
(
CONTRACT_API_URL
,
(
route
)
=>
route
.
fulfill
({
status
:
200
,
body
:
JSON
.
stringify
(
contractMock
.
nonVerified
),
...
...
ui/address/contract/ContractCode.tsx
View file @
79cb82d6
...
...
@@ -25,10 +25,7 @@ const ContractCode = () => {
const
[
ContractSourceCode
,
setContractSourceCode
]
=
React
.
useState
<
typeof
TContractSourceCode
|
null
>
(
null
);
React
.
useEffect
(()
=>
{
// eslint-disable-next-line no-restricted-properties
if
(
process
.
env
.
NEXT_PUBLIC_APP_ENV
!==
'
testing
'
)
{
import
(
'
./ContractSourceCode
'
).
then
((
component
)
=>
setContractSourceCode
(
component
.
default
));
}
import
(
'
./ContractSourceCode
'
).
then
((
component
)
=>
setContractSourceCode
(
component
.
default
));
return
()
=>
{
setContractSourceCode
(
null
);
...
...
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