-
Notifications
You must be signed in to change notification settings - Fork 501
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2054 from blockscout/release/v1_32_0-fixes
Fixes for release v.1.32.0
- Loading branch information
Showing
16 changed files
with
123 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
import type { TestFixture, Page } from '@playwright/test'; | ||
import _isEqual from 'lodash/isEqual'; | ||
import type { PublicRpcSchema } from 'viem'; | ||
|
||
import { getEnvValue } from 'configs/app/utils'; | ||
|
||
type Params = PublicRpcSchema[number]; | ||
|
||
export type MockRpcResponseFixture = (params: Params) => Promise<void>; | ||
|
||
// WIP | ||
const fixture: TestFixture<MockRpcResponseFixture, { page: Page }> = async({ page }, use) => { | ||
await use(async({ Method, ReturnType }) => { | ||
const rpcUrl = getEnvValue('NEXT_PUBLIC_NETWORK_RPC_URL'); | ||
|
||
if (!rpcUrl) { | ||
return; | ||
} | ||
|
||
await page.route(rpcUrl, (route) => { | ||
const method = route.request().method(); | ||
|
||
if (method !== 'POST') { | ||
route.continue(); | ||
return; | ||
} | ||
|
||
const json = route.request().postDataJSON(); | ||
const id = json?.id; | ||
|
||
const payload = { | ||
id, | ||
jsonrpc: '2.0', | ||
method: Method, | ||
// TODO: add params to match actual payload | ||
}; | ||
|
||
if (_isEqual(json, payload) && id !== undefined) { | ||
return route.fulfill({ | ||
status: 200, | ||
body: JSON.stringify({ | ||
id, | ||
jsonrpc: '2.0', | ||
result: ReturnType, | ||
}), | ||
}); | ||
} | ||
}); | ||
}); | ||
}; | ||
|
||
export default fixture; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+4.43 KB
(110%)
ui/pages/__screenshots__/Blocks.pw.tsx_default_hidden-fields-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+782 Bytes
(100%)
ui/pages/__screenshots__/NameDomains.pw.tsx_default_default-view-mobile-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+817 Bytes
(100%)
ui/pages/__screenshots__/NameDomains.pw.tsx_mobile_default-view-mobile-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+246 Bytes
(100%)
ui/pages/__screenshots__/TokenInstance.pw.tsx_default_metadata-update-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8605,10 +8605,10 @@ damerau-levenshtein@^1.0.8: | |
resolved "https://registry.yarnpkg.com/damerau-levenshtein/-/damerau-levenshtein-1.0.8.tgz#b43d286ccbd36bc5b2f7ed41caf2d0aba1f8a6e7" | ||
integrity sha512-sdQSFB7+llfUcQHUQO3+B8ERRj0Oa4w9POWMI/puGtuf7gFywGmkaLCElnudfTiKZV+NvHqL0ifzdrI8Ro7ESA== | ||
|
||
[email protected].1: | ||
version "0.2.1" | ||
resolved "https://registry.yarnpkg.com/dappscout-iframe/-/dappscout-iframe-0.2.1.tgz#b4718515ee4f00022af3912fac6ca1a321c156f9" | ||
integrity sha512-EsiAAEk2I6hN+/E8o45WUn4BFd7aN8UvBwsIcOH79WOly0GOOHkPEO/puPkBCV0EcdxBsZIfssx3X0fSWVz5Bw== | ||
[email protected].2: | ||
version "0.2.2" | ||
resolved "https://registry.yarnpkg.com/dappscout-iframe/-/dappscout-iframe-0.2.2.tgz#de3df6abccad68a27c9304300b92d86ec0ab1c59" | ||
integrity sha512-ASOimgBRG61pSYQLdYGWePdiO3IsfTEgWZ6CHpZ4XQjJRmj1+WiWF56vFTeLIo5aucp+2+6oRCJ8KgKHGVDj0A== | ||
dependencies: | ||
react "^18.2.0" | ||
react-dom "^18.2.0" | ||
|