1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 01:47:00 +01:00

[e2e] test-dapp update to v6.0.0 (#18844)

* Test dapp update to v6.0.0 and tweak initial token amounts to adjust to the new contract

* Update gas estimates for new TST contract

---------

Co-authored-by: legobeat <109787230+legobeat@users.noreply.github.com>
This commit is contained in:
seaona 2023-04-27 13:01:17 +02:00 committed by GitHub
parent 1253c768c7
commit 6e4de3bee8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 11 additions and 11 deletions

View File

@ -378,7 +378,7 @@
"@metamask/eslint-config-typescript": "^9.0.1", "@metamask/eslint-config-typescript": "^9.0.1",
"@metamask/forwarder": "^1.1.0", "@metamask/forwarder": "^1.1.0",
"@metamask/phishing-warning": "^2.1.0", "@metamask/phishing-warning": "^2.1.0",
"@metamask/test-dapp": "^5.6.0", "@metamask/test-dapp": "^6.0.0",
"@sentry/cli": "^1.58.0", "@sentry/cli": "^1.58.0",
"@storybook/addon-a11y": "^6.5.13", "@storybook/addon-a11y": "^6.5.13",
"@storybook/addon-actions": "^6.5.13", "@storybook/addon-actions": "^6.5.13",

View File

@ -14,7 +14,7 @@ const {
} = require('@metamask/test-dapp/dist/constants.json'); } = require('@metamask/test-dapp/dist/constants.json');
const hstFactory = { const hstFactory = {
initialAmount: 100, initialAmount: 10,
tokenName: 'TST', tokenName: 'TST',
decimalUnits: 4, decimalUnits: 4,
tokenSymbol: 'TST', tokenSymbol: 'TST',

View File

@ -336,11 +336,11 @@ describe('Send ETH from dapp using advanced gas controls', function () {
await driver.clickElement({ text: 'Save', tag: 'button' }); await driver.clickElement({ text: 'Save', tag: 'button' });
await driver.waitForSelector({ await driver.waitForSelector({
css: '.transaction-detail-item:nth-of-type(1) h6:nth-of-type(2)', css: '.transaction-detail-item:nth-of-type(1) h6:nth-of-type(2)',
text: '0.02367237 ETH', text: '0.04503836 ETH',
}); });
await driver.waitForSelector({ await driver.waitForSelector({
css: '.transaction-detail-item:nth-of-type(2) h6:nth-of-type(2)', css: '.transaction-detail-item:nth-of-type(2) h6:nth-of-type(2)',
text: '0.02367237 ETH', text: '0.04503836 ETH',
}); });
await driver.clickElement({ text: 'Confirm', tag: 'button' }); await driver.clickElement({ text: 'Confirm', tag: 'button' });

View File

@ -155,7 +155,7 @@ describe('Send ERC20 to a 40 character hexadecimal address', function () {
}); });
await driver.waitForSelector({ await driver.waitForSelector({
css: '.transaction-detail-item', css: '.transaction-detail-item',
text: '0.00008346 ETH', text: '0.00008455 ETH',
}); });
await driver.clickElement({ text: 'Next', tag: 'button' }); await driver.clickElement({ text: 'Next', tag: 'button' });
@ -220,7 +220,7 @@ describe('Send ERC20 to a 40 character hexadecimal address', function () {
}); });
await driver.waitForSelector({ await driver.waitForSelector({
css: '.transaction-detail-item', css: '.transaction-detail-item',
text: '0.00008346 ETH', text: '0.00008455 ETH',
}); });
await driver.clickElement({ text: 'Next', tag: 'button' }); await driver.clickElement({ text: 'Next', tag: 'button' });

View File

@ -4435,10 +4435,10 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"@metamask/test-dapp@npm:^5.6.0": "@metamask/test-dapp@npm:^6.0.0":
version: 5.6.0 version: 6.0.0
resolution: "@metamask/test-dapp@npm:5.6.0" resolution: "@metamask/test-dapp@npm:6.0.0"
checksum: 352399ee03a9bee7a2a1045a102d4993a3b4b17a4c2c87b77265924dc6b04659b743f79a08f91bfbeeea3b7cbb9d1a88dc251ec32366877312e9eaa01ce0c82f checksum: eee793c8816d1205667002bd0ef60d248f3a35027937d66a51fd6a87e6eb7be70efd63052412d4dbabdd4329a5e729ab8293655dbdd8d3329bd732b1b1be45d1
languageName: node languageName: node
linkType: hard linkType: hard
@ -23866,7 +23866,7 @@ __metadata:
"@metamask/snaps-utils": ^0.32.2 "@metamask/snaps-utils": ^0.32.2
"@metamask/subject-metadata-controller": ^2.0.0 "@metamask/subject-metadata-controller": ^2.0.0
"@metamask/swappable-obj-proxy": ^2.1.0 "@metamask/swappable-obj-proxy": ^2.1.0
"@metamask/test-dapp": ^5.6.0 "@metamask/test-dapp": ^6.0.0
"@metamask/utils": ^5.0.0 "@metamask/utils": ^5.0.0
"@ngraveio/bc-ur": ^1.1.6 "@ngraveio/bc-ur": ^1.1.6
"@popperjs/core": ^2.4.0 "@popperjs/core": ^2.4.0