Skip to content

Commit

Permalink
e2e test failure fix
Browse files Browse the repository at this point in the history
  • Loading branch information
NiranjanaBinoy committed Dec 8, 2022
1 parent 4d61417 commit dca5b08
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
1 change: 1 addition & 0 deletions test/e2e/fixture-builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,7 @@ function onboardingFixture() {
useNonceField: false,
usePhishDetect: true,
useTokenDetection: false,
useCurrencyRateCheck: true,
},
SmartTransactionsController: {
smartTransactionsState: {
Expand Down
5 changes: 1 addition & 4 deletions test/e2e/tests/edit-gas-fee.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ describe('Editing Confirm Transaction', function () {

// has correct updated value on the confirm screen the transaction
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(1)',
text: '0.00085 ETH',
});
await driver.waitForSelector({
Expand Down Expand Up @@ -242,9 +242,6 @@ describe('Editing Confirm Transaction', function () {
const editedTransactionAmount = editedTransactionAmounts[0];
assert.equal(await editedTransactionAmount.getText(), '0.00021');

const editedTransactionFee = editedTransactionAmounts[1];
assert.equal(await editedTransactionFee.getText(), '0.00021');

// confirms the transaction
await driver.clickElement({ text: 'Confirm', tag: 'button' });

Expand Down
2 changes: 1 addition & 1 deletion test/e2e/tests/send-edit.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ describe('Editing Confirm Transaction', function () {

// has correct updated value on the confirm screen the transaction
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(1)',
text: '0.0008 ETH',
});
await driver.waitForSelector({
Expand Down

0 comments on commit dca5b08

Please sign in to comment.