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
0dcad9df
Commit
0dcad9df
authored
Feb 07, 2024
by
tom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
enable swap button only for TopBar test
parent
0ef946ba
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
.env.pw
configs/envs/.env.pw
+0
-1
TopBar.pw.tsx
ui/snippets/topBar/TopBar.pw.tsx
+9
-1
No files found.
configs/envs/.env.pw
View file @
0dcad9df
...
...
@@ -52,4 +52,3 @@ NEXT_PUBLIC_STATS_API_HOST=https://localhost:3004
NEXT_PUBLIC_CONTRACT_INFO_API_HOST=https://localhost:3005
NEXT_PUBLIC_ADMIN_SERVICE_API_HOST=https://localhost:3006
NEXT_PUBLIC_RE_CAPTCHA_APP_SITE_KEY=xxx
NEXT_PUBLIC_SWAP_BUTTON_URL=uniswap
ui/snippets/topBar/TopBar.pw.tsx
View file @
0dcad9df
import
{
test
,
expect
}
from
'
@playwright/experimental-ct-react
'
;
import
{
test
as
base
,
expect
}
from
'
@playwright/experimental-ct-react
'
;
import
React
from
'
react
'
;
import
*
as
statsMock
from
'
mocks/stats/index
'
;
import
contextWithEnvs
from
'
playwright/fixtures/contextWithEnvs
'
;
import
TestApp
from
'
playwright/TestApp
'
;
import
buildApiUrl
from
'
playwright/utils/buildApiUrl
'
;
import
TopBar
from
'
./TopBar
'
;
const
test
=
base
.
extend
({
context
:
contextWithEnvs
([
{
name
:
'
NEXT_PUBLIC_SWAP_BUTTON_URL
'
,
value
:
'
uniswap
'
},
// eslint-disable-next-line @typescript-eslint/no-explicit-any
])
as
any
,
});
test
(
'
default view +@dark-mode +@mobile
'
,
async
({
mount
,
page
})
=>
{
await
page
.
route
(
buildApiUrl
(
'
homepage_stats
'
),
(
route
)
=>
route
.
fulfill
({
status
:
200
,
...
...
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