diff --git a/test/e2e/flask/btc/btc-account-overview.spec.ts b/test/e2e/flask/btc/btc-account-overview.spec.ts index f45ec4acf17c..5f0277c191de 100644 --- a/test/e2e/flask/btc/btc-account-overview.spec.ts +++ b/test/e2e/flask/btc/btc-account-overview.spec.ts @@ -1,4 +1,3 @@ -import { strict as assert } from 'assert'; import { Suite } from 'mocha'; import { withBtcAccountSnap } from './common-btc'; @@ -30,15 +29,13 @@ describe('BTC Account - Overview', function (this: Suite) { css: '[disabled]', }); - const buySellButton = await driver.waitForSelector( - '[data-testid="coin-overview-buy"]', - ); - assert.equal(await buySellButton.isEnabled(), true); + // buy sell button + await driver.findClickableElement('[data-testid="coin-overview-buy"]'); - const portfolioButton = await driver.waitForSelector( + // receive button + await driver.findClickableElement( '[data-testid="coin-overview-receive"]', ); - assert.equal(await portfolioButton.isEnabled(), true); }, ); });