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
7f9e4547
Commit
7f9e4547
authored
Aug 30, 2024
by
tom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix tests
parent
cd8305d1
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7 additions
and
10 deletions
+7
-10
utils.ts
configs/app/utils.ts
+1
-4
Marketplace.pw.tsx
ui/pages/Marketplace.pw.tsx
+2
-2
MarketplaceApp.pw.tsx
ui/pages/MarketplaceApp.pw.tsx
+2
-2
SearchResults.pw.tsx
ui/pages/SearchResults.pw.tsx
+1
-1
SearchBar.pw.tsx
ui/snippets/searchBar/SearchBar.pw.tsx
+1
-1
No files found.
configs/app/utils.ts
View file @
7f9e4547
...
...
@@ -55,9 +55,6 @@ function getAssetFileExtension(value: string) {
const
url
=
new
URL
(
value
);
return
url
.
pathname
.
match
(
regexp
.
FILE_EXTENSION
)?.[
1
];
}
catch
(
error
)
{
try
{
parseEnvJson
(
value
);
return
'
json
'
;
}
catch
(
error
)
{}
return
parseEnvJson
(
value
)
?
'
json
'
:
undefined
;
}
}
ui/pages/Marketplace.pw.tsx
View file @
7f9e4547
...
...
@@ -8,8 +8,8 @@ import { test, expect, devices } from 'playwright/lib';
import
Marketplace
from
'
./Marketplace
'
;
const
MARKETPLACE_CONFIG_URL
=
'
http://localhost/marketplace-config.json
'
;
const
MARKETPLACE_SECURITY_REPORTS_URL
=
'
https://marketplace-security-reports.json
'
;
const
MARKETPLACE_CONFIG_URL
=
'
http://localhost
:4000
/marketplace-config.json
'
;
const
MARKETPLACE_SECURITY_REPORTS_URL
=
'
https://
localhost:4000/
marketplace-security-reports.json
'
;
test
.
beforeEach
(
async
({
mockConfigResponse
,
mockEnvs
,
mockAssetResponse
,
page
})
=>
{
await
mockEnvs
([
...
...
ui/pages/MarketplaceApp.pw.tsx
View file @
7f9e4547
...
...
@@ -17,8 +17,8 @@ const hooksConfig = {
},
};
const
MARKETPLACE_CONFIG_URL
=
'
http
s:/
/marketplace-config.json
'
;
const
MARKETPLACE_SECURITY_REPORTS_URL
=
'
http
s:/
/marketplace-security-reports.json
'
;
const
MARKETPLACE_CONFIG_URL
=
'
http
://localhost:4000
/marketplace-config.json
'
;
const
MARKETPLACE_SECURITY_REPORTS_URL
=
'
http
://localhost:4000
/marketplace-security-reports.json
'
;
const
testFn
:
Parameters
<
typeof
test
>
[
1
]
=
async
({
render
,
mockConfigResponse
,
mockAssetResponse
,
mockEnvs
,
mockRpcResponse
,
page
})
=>
{
await
mockEnvs
([
...
...
ui/pages/SearchResults.pw.tsx
View file @
7f9e4547
...
...
@@ -152,7 +152,7 @@ test('search by user op hash +@mobile', async({ render, mockApiResponse, mockEnv
test
.
describe
(
'
with apps
'
,
()
=>
{
test
(
'
default view +@mobile
'
,
async
({
render
,
mockApiResponse
,
mockConfigResponse
,
mockAssetResponse
,
mockEnvs
})
=>
{
const
MARKETPLACE_CONFIG_URL
=
'
https://marketplace-config.json
'
;
const
MARKETPLACE_CONFIG_URL
=
'
https://
localhost:4000/
marketplace-config.json
'
;
const
hooksConfig
=
{
router
:
{
query
:
{
q
:
'
o
'
},
...
...
ui/snippets/searchBar/SearchBar.pw.tsx
View file @
7f9e4547
...
...
@@ -196,7 +196,7 @@ test('recent keywords suggest +@mobile', async({ render, page }, { project }) =>
});
test
.
describe
(
'
with apps
'
,
()
=>
{
const
MARKETPLACE_CONFIG_URL
=
'
http
s:/
/marketplace-config.json
'
;
const
MARKETPLACE_CONFIG_URL
=
'
http
://localhost:4000
/marketplace-config.json
'
;
test
(
'
default view +@mobile
'
,
async
({
render
,
page
,
mockApiResponse
,
mockConfigResponse
,
mockAssetResponse
,
mockEnvs
})
=>
{
await
mockEnvs
([
...
...
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