-
Notifications
You must be signed in to change notification settings - Fork 213
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test: bump Synpress to v4 #2262
Draft
fionnachan
wants to merge
29
commits into
master
Choose a base branch
from
synpress-v4
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from 12 commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
f192283
build: bump to synpress v4
fionnachan 323f77d
yarn.lock
fionnachan 7527148
Merge remote-tracking branch 'origin/master' into synpress-v4
fionnachan eac8ec0
remove ts-node
fionnachan 87ce240
set up synpress
fionnachan cfaa94b
use env-cmd
fionnachan 39cabda
update prettier
fionnachan 9667a97
Merge remote-tracking branch 'origin/master' into synpress-v4
fionnachan ccd652a
change postcss.config.js to ts
fionnachan 99f64aa
fix prettier config file
fionnachan 00d98fc
add tailwind config to prettier
fionnachan 5526001
change method names
fionnachan 0058b4b
prettier again
fionnachan aa38705
additional.d.ts
fionnachan 9cd34f7
fix additional.d.ts
fionnachan 24bc0b7
jest config file
fionnachan d622440
make wallet cache work
fionnachan 93d7b8d
edit command
fionnachan fab0e59
fix eslint
fionnachan 13d3c89
setup mm wallet
fionnachan 8b008a1
change package structure and types
fionnachan 0f45e09
Merge remote-tracking branch 'origin/master' into synpress-v4
fionnachan 23b76b7
set up wallet in support file
fionnachan 1e6df3c
move sample file
fionnachan af9f552
remove install chrome
fionnachan 2f54b80
Merge remote-tracking branch 'origin/master' into synpress-v4
fionnachan 8444c92
update synpress
fionnachan b13a10e
yarn.lock
fionnachan 4cd8796
Merge branch 'master' into synpress-v4
fionnachan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 |
---|---|---|
@@ -1,9 +1,9 @@ | ||
node_modules | ||
dist | ||
synpress.config.ts | ||
tailwind.config.js | ||
cypress.config.ts | ||
cypress.cctp.config.ts | ||
tailwind.config.mjs | ||
|
||
packages/arb-token-bridge/craco.config.js | ||
packages/arb-token-bridge/prettier.config.js | ||
packages/arb-token-bridge/build/static/js/*.js | ||
packages/arb-token-bridge/tests/**/*.ts | ||
packages/arb-token-bridge-ui/prettier.config.cjs | ||
packages/arb-token-bridge-ui/build/static/js/*.js | ||
packages/arb-token-bridge-ui/tests/**/*.ts |
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
This file was deleted.
Oops, something went wrong.
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,6 @@ | ||
export default { | ||
plugins: { | ||
tailwindcss: {}, | ||
autoprefixer: {}, | ||
}, | ||
}; |
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,17 @@ | ||
/** | ||
* @see https://prettier.io/docs/en/configuration.html | ||
* @type {import("prettier").Config} | ||
*/ | ||
module.exports = { | ||
tabWidth: 2, | ||
useTabs: false, | ||
semi: false, | ||
singleQuote: true, | ||
bracketSpacing: true, | ||
arrowParens: 'avoid', | ||
trailingComma: 'none', | ||
|
||
// Plugins | ||
plugins: ['prettier-plugin-tailwindcss'], | ||
tailwindConfig: require('./tailwind.config.mjs') | ||
} |
This file was deleted.
Oops, something went wrong.
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
File renamed without changes.
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,20 @@ | ||
import { defineWalletSetup } from '@synthetixio/synpress' | ||
import { MetaMask } from '@synthetixio/synpress/playwright' | ||
import 'dotenv/config' | ||
|
||
const SEED_PHRASE = process.env.SEED_PHRASE | ||
const PASSWORD = process.env.WALLET_PASSWORD | ||
|
||
if (!SEED_PHRASE) { | ||
throw new Error('SEED_PHRASE must be set in .e2e.env') | ||
} | ||
|
||
if (!PASSWORD) { | ||
throw new Error('WALLET_PASSWORD must be set in .e2e.env') | ||
} | ||
|
||
export default defineWalletSetup(PASSWORD, async (context, walletPage) => { | ||
const metamask = new MetaMask(context, walletPage, PASSWORD) | ||
|
||
await metamask.importWallet(SEED_PHRASE) | ||
}) |
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,10 @@ | ||
declare global { | ||
namespace NodeJS { | ||
interface ProcessEnv { | ||
SEED_PHRASE: string | ||
WALLET_PASSWORD: string | ||
} | ||
} | ||
} | ||
|
||
export {} |
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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://docs.synpress.io/docs/getting-started#installation
This is the reason why we change so many other files regarding .ts .cjs .js .mjs and the generation script commands, and the tsconfig files