Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Remove unused fixtures and fix test name in smart swaps disabled spec #25616

Merged
merged 3 commits into from
Jul 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions test/e2e/accounts/smart-swap-disabled.spec.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
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 FixtureBuilder from '../fixture-builder';
import { installSnapSimpleKeyring, makeNewAccountAndSwitch } from './common';

describe('Smart Swaps', function (this: Suite) {
it('should be disabled for snap accounts', async function () {
describe('Snap Account - Smart Swaps', function (this: Suite) {
it('checks if smart swaps are 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