diff --git a/test/e2e/accounts/smart-swap-disabled.spec.ts b/test/e2e/accounts/smart-swap-disabled.spec.ts index e12f7bcae7c2..fe8c7b27889d 100644 --- a/test/e2e/accounts/smart-swap-disabled.spec.ts +++ b/test/e2e/accounts/smart-swap-disabled.spec.ts @@ -1,17 +1,19 @@ -import { title } from 'process'; import { Suite } from 'mocha'; -import { withFixtures } from '../helpers'; +import { withFixtures, defaultGanacheOptions } from '../helpers'; import { Driver } from '../webdriver/driver'; -import { - accountSnapFixtures, - installSnapSimpleKeyring, - makeNewAccountAndSwitch, -} from './common'; +import { installSnapSimpleKeyring, makeNewAccountAndSwitch } from './common'; + +// eslint-disable-next-line @typescript-eslint/no-require-imports, @typescript-eslint/no-var-requires +const FixtureBuilder = require('../fixture-builder'); describe('Smart Swaps', function (this: Suite) { it('should be disabled for snap accounts', async function () { await withFixtures( - accountSnapFixtures(title), + { + fixtures: new FixtureBuilder().build(), + ganacheOptions: defaultGanacheOptions, + title: this.test?.fullTitle(), + }, async ({ driver }: { driver: Driver }) => { await installSnapSimpleKeyring(driver, false); await makeNewAccountAndSwitch(driver);