Skip to content

Commit

Permalink
responsive ui flaky
Browse files Browse the repository at this point in the history
  • Loading branch information
seaona committed Sep 26, 2024
1 parent 62f7b61 commit 5ab38ed
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions test/e2e/tests/responsive-ui/metamask-responsive-ui.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ const { strict: assert } = require('assert');
const {
TEST_SEED_PHRASE_TWO,
defaultGanacheOptions,
withFixtures,
locateAccountBalanceDOM,
logInWithBalanceValidation,
openActionMenuAndStartSendFlow,
unlockWallet,
withFixtures,
} = require('../../helpers');
const FixtureBuilder = require('../../fixture-builder');

Expand Down Expand Up @@ -123,10 +123,8 @@ describe('MetaMask Responsive UI', function () {
ganacheOptions: defaultGanacheOptions,
title: this.test.fullTitle(),
},
async ({ driver }) => {
await unlockWallet(driver);

await driver.delay(1000);
async ({ driver, ganacheServer }) => {
await logInWithBalanceValidation(driver, ganacheServer);

// Send ETH from inside MetaMask
// starts to send a transaction
Expand All @@ -140,9 +138,13 @@ describe('MetaMask Responsive UI', function () {

const inputValue = await inputAmount.getProperty('value');
assert.equal(inputValue, '1');

// confirming transcation
await driver.clickElement({ text: 'Continue', tag: 'button' });

// wait for transaction value to be rendered and confirm
await driver.waitForSelector({
css: '.currency-display-component__text',
text: '1.000042',
});
await driver.clickElement({ text: 'Confirm', tag: 'button' });

// finds the transaction in the transactions list
Expand Down

0 comments on commit 5ab38ed

Please sign in to comment.