-
-
Notifications
You must be signed in to change notification settings - Fork 204
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ feat: Cypress integration with EthereumWalletMock (#1133)
* feat: Cypress config files * feat: cypress for mocked wallet - basics * feat: Cypress with mocked ethereum wallet * fix: dependencies * fix: cleanup * fix: clean imports * fix: testing path * fix
- Loading branch information
Showing
32 changed files
with
866 additions
and
30 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
export default function ensureRdpPort(args: string[]) { | ||
const existing = args.find((arg) => arg.slice(0, 23) === '--remote-debugging-port') | ||
|
||
if (existing) { | ||
return Number(existing.split('=')[1]) | ||
} | ||
|
||
const port = 40000 + Math.round(Math.random() * 25000) | ||
|
||
args.push(`--remote-debugging-port=${port}`) | ||
|
||
return port | ||
} |
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 @@ | ||
export { default as ensureRdpPort } from './ensureRdpPort' |
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 |
---|---|---|
@@ -1 +1,2 @@ | ||
export { default as testWithSynpress } from './testWithSynpress' | ||
export * from './cypress' |
Oops, something went wrong.