-
Notifications
You must be signed in to change notification settings - Fork 35
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
feat(e2e-connector-test): add fuel wallet tests #199
feat(e2e-connector-test): add fuel wallet tests #199
Conversation
@nelitow is attempting to deploy a commit to the Fuel Labs Team on Vercel. A member of the Team first needs to authorize it. |
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.
use this folder structure to separate logic of connectors from general logic
react-app
connectors
FuelWalletConnector
FuelWalletConnector.test.ts
setup.ts
// .... any other file with specific logic from this connector
utils
// generic util files
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.
import { bn, toBech32 } from 'fuels'; | ||
import { testSetup } from '../utils/index.js'; | ||
import { type WalletUnlocked, bn } from 'fuels'; | ||
import { testSetup, transferMaxBalance } from '../utils/index.js'; | ||
import { connect } from './utils'; | ||
|
||
const fuelPathToExtension = await downloadFuel('0.21.0'); |
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.
download the latest version always, 0.27.0 is being released right now you can use it
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.
Done, but maybe a latest
tag could be useful in the downloadFuel
helper.
This PR creates tests for the Fuel Wallet connector in the react-app.
The tests are for transferring, incrementing and connection stability.