-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into feat-permit-alert-metrics
- Loading branch information
Showing
41 changed files
with
740 additions
and
31 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
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,47 @@ | ||
import { Suite } from 'mocha'; | ||
import { Driver } from '../../webdriver/driver'; | ||
import { Ganache } from '../../seeder/ganache'; | ||
import FixtureBuilder from '../../fixture-builder'; | ||
import { | ||
defaultGanacheOptions, | ||
logInWithBalanceValidation, | ||
sendTransaction, | ||
withFixtures, | ||
} from '../../helpers'; | ||
import { KNOWN_PUBLIC_KEY_ADDRESSES } from '../../../stub/keyring-bridge'; | ||
|
||
const RECIPIENT = '0x0Cc5261AB8cE458dc977078A3623E2BaDD27afD3'; | ||
|
||
describe('Trezor Hardware', function (this: Suite) { | ||
it('send ETH', async function () { | ||
await withFixtures( | ||
{ | ||
fixtures: new FixtureBuilder().withTrezorAccount().build(), | ||
ganacheOptions: defaultGanacheOptions, | ||
title: this.test?.fullTitle(), | ||
}, | ||
async ({ | ||
driver, | ||
ganacheServer, | ||
}: { | ||
driver: Driver; | ||
ganacheServer?: Ganache; | ||
}) => { | ||
// Seed the Trezor account with balance | ||
await ganacheServer?.setAccountBalance( | ||
KNOWN_PUBLIC_KEY_ADDRESSES[0].address, | ||
'0x100000000000000000000', | ||
); | ||
await logInWithBalanceValidation(driver); | ||
|
||
await sendTransaction(driver, RECIPIENT, '1'); | ||
|
||
// Wait for transaction to be confirmed | ||
await driver.waitForSelector({ | ||
css: '.transaction-status-label', | ||
text: 'Confirmed', | ||
}); | ||
}, | ||
); | ||
}); | ||
}); |
Oops, something went wrong.