Skip to content

Commit

Permalink
Remove unused fixtures and fix test name
Browse files Browse the repository at this point in the history
  • Loading branch information
plasmacorral committed Jul 1, 2024
1 parent 03b5d5e commit cedb87c
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions test/e2e/accounts/smart-swap-disabled.spec.ts
Original file line number Diff line number Diff line change
@@ -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);
Expand Down

0 comments on commit cedb87c

Please sign in to comment.