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
84571f45
Commit
84571f45
authored
Feb 29, 2024
by
Max Alekseenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add test for app info dropdown
parent
621c968a
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
38 additions
and
0 deletions
+38
-0
apps.ts
mocks/apps/apps.ts
+3
-0
MarketplaceAppInfo.pw.tsx
ui/marketplace/MarketplaceAppInfo.pw.tsx
+35
-0
MarketplaceAppInfo.pw.tsx_dark-color-mode_base-view-dark-mode-1.png
...eAppInfo.pw.tsx_dark-color-mode_base-view-dark-mode-1.png
+0
-0
MarketplaceAppInfo.pw.tsx_default_base-view-dark-mode-1.png
...rketplaceAppInfo.pw.tsx_default_base-view-dark-mode-1.png
+0
-0
MarketplaceAppInfo.pw.tsx_default_mobile-base-view-1.png
.../MarketplaceAppInfo.pw.tsx_default_mobile-base-view-1.png
+0
-0
No files found.
mocks/apps/apps.ts
View file @
84571f45
...
...
@@ -11,6 +11,9 @@ export const apps = [
description
:
'
Hop is a scalable rollup-to-rollup general token bridge. It allows users to send tokens from one rollup or sidechain to another almost immediately without having to wait for the networks challenge period.
'
,
external
:
true
,
url
:
'
https://goerli.hop.exchange/send?token=ETH&sourceNetwork=ethereum
'
,
github
:
[
'
https://github.com/hop-protocol/hop
'
,
'
https://github.com/hop-protocol/hop-ui
'
],
discord
:
'
https://discord.gg/hopprotocol
'
,
twitter
:
'
https://twitter.com/HopProtocol
'
,
},
{
author
:
'
Blockscout
'
,
...
...
ui/marketplace/MarketplaceAppInfo.pw.tsx
0 → 100644
View file @
84571f45
import
{
test
,
expect
,
devices
}
from
'
@playwright/experimental-ct-react
'
;
import
React
from
'
react
'
;
import
{
apps
as
appsMock
}
from
'
mocks/apps/apps
'
;
import
TestApp
from
'
playwright/TestApp
'
;
import
MarketplaceAppInfo
from
'
./MarketplaceAppInfo
'
;
test
(
'
base view +@dark-mode
'
,
async
({
mount
,
page
})
=>
{
await
mount
(
<
TestApp
>
<
MarketplaceAppInfo
data=
{
appsMock
[
0
]
}
/>
</
TestApp
>,
);
await
page
.
getByText
(
'
Info
'
).
click
();
await
expect
(
page
).
toHaveScreenshot
({
clip
:
{
x
:
0
,
y
:
0
,
width
:
500
,
height
:
400
}
});
});
test
.
describe
(
'
mobile
'
,
()
=>
{
test
.
use
({
viewport
:
devices
[
'
iPhone 13 Pro
'
].
viewport
});
test
(
'
base view
'
,
async
({
mount
,
page
})
=>
{
await
mount
(
<
TestApp
>
<
MarketplaceAppInfo
data=
{
appsMock
[
0
]
}
/>
</
TestApp
>,
);
await
page
.
getByText
(
'
Info
'
).
click
();
await
expect
(
page
).
toHaveScreenshot
();
});
});
ui/marketplace/__screenshots__/MarketplaceAppInfo.pw.tsx_dark-color-mode_base-view-dark-mode-1.png
0 → 100644
View file @
84571f45
23.3 KB
ui/marketplace/__screenshots__/MarketplaceAppInfo.pw.tsx_default_base-view-dark-mode-1.png
0 → 100644
View file @
84571f45
23.3 KB
ui/marketplace/__screenshots__/MarketplaceAppInfo.pw.tsx_default_mobile-base-view-1.png
0 → 100644
View file @
84571f45
18.5 KB
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