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
ff96d0f2
Commit
ff96d0f2
authored
Jan 19, 2023
by
tom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix tests
parent
2feeaa51
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
ContractRead.pw.tsx
ui/address/contract/ContractRead.pw.tsx
+1
-1
ContractWrite.pw.tsx
ui/address/contract/ContractWrite.pw.tsx
+2
-2
No files found.
ui/address/contract/ContractRead.pw.tsx
View file @
ff96d0f2
...
@@ -8,7 +8,7 @@ import buildApiUrl from 'playwright/utils/buildApiUrl';
...
@@ -8,7 +8,7 @@ import buildApiUrl from 'playwright/utils/buildApiUrl';
import
ContractRead
from
'
./ContractRead
'
;
import
ContractRead
from
'
./ContractRead
'
;
const
addressHash
=
'
hash
'
;
const
addressHash
=
'
hash
'
;
const
CONTRACT_READ_METHODS_API_URL
=
buildApiUrl
(
'
contract_methods_read
'
,
{
id
:
addressHash
});
const
CONTRACT_READ_METHODS_API_URL
=
buildApiUrl
(
'
contract_methods_read
'
,
{
id
:
addressHash
})
+
'
?is_custom_abi=false
'
;
const
CONTRACT_QUERY_METHOD_API_URL
=
buildApiUrl
(
'
contract_method_query
'
,
{
id
:
addressHash
});
const
CONTRACT_QUERY_METHOD_API_URL
=
buildApiUrl
(
'
contract_method_query
'
,
{
id
:
addressHash
});
const
hooksConfig
=
{
const
hooksConfig
=
{
router
:
{
router
:
{
...
...
ui/address/contract/ContractWrite.pw.tsx
View file @
ff96d0f2
...
@@ -8,7 +8,7 @@ import buildApiUrl from 'playwright/utils/buildApiUrl';
...
@@ -8,7 +8,7 @@ import buildApiUrl from 'playwright/utils/buildApiUrl';
import
ContractWrite
from
'
./ContractWrite
'
;
import
ContractWrite
from
'
./ContractWrite
'
;
const
addressHash
=
'
hash
'
;
const
addressHash
=
'
hash
'
;
const
CONTRACT_
READ_METHODS_API_URL
=
buildApiUrl
(
'
contract_methods_write
'
,
{
id
:
addressHash
})
;
const
CONTRACT_
WRITE_METHODS_API_URL
=
buildApiUrl
(
'
contract_methods_write
'
,
{
id
:
addressHash
})
+
'
?is_custom_abi=false
'
;
const
hooksConfig
=
{
const
hooksConfig
=
{
router
:
{
router
:
{
query
:
{
id
:
addressHash
},
query
:
{
id
:
addressHash
},
...
@@ -16,7 +16,7 @@ const hooksConfig = {
...
@@ -16,7 +16,7 @@ const hooksConfig = {
};
};
test
(
'
base view +@mobile
'
,
async
({
mount
,
page
})
=>
{
test
(
'
base view +@mobile
'
,
async
({
mount
,
page
})
=>
{
await
page
.
route
(
CONTRACT_
READ
_METHODS_API_URL
,
(
route
)
=>
route
.
fulfill
({
await
page
.
route
(
CONTRACT_
WRITE
_METHODS_API_URL
,
(
route
)
=>
route
.
fulfill
({
status
:
200
,
status
:
200
,
body
:
JSON
.
stringify
(
contractMethodsMock
.
write
),
body
:
JSON
.
stringify
(
contractMethodsMock
.
write
),
}));
}));
...
...
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