Skip to content

Commit

Permalink
ganache server tests remove
Browse files Browse the repository at this point in the history
  • Loading branch information
seaona committed Feb 24, 2025
1 parent a8804d3 commit 1a4c31f
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 51 deletions.
10 changes: 2 additions & 8 deletions test/e2e/accounts/snap-account-eth-swap.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,8 @@ describe('Snap Account - Swap', function () {
title: this.test?.fullTitle(),
testSpecificMock: mockSwapsTransactionQuote,
},
async ({
driver,
ganacheServer,
}: {
driver: Driver;
ganacheServer?: Ganache;
}) => {
await loginWithBalanceValidation(driver, ganacheServer);
async ({ driver }: { driver: Driver }) => {
await loginWithBalanceValidation(driver);
await installSnapSimpleKeyring(driver);
await driver.switchToWindowWithTitle(
WINDOW_TITLES.ExtensionInFullScreenView,
Expand Down
10 changes: 2 additions & 8 deletions test/e2e/json-rpc/eth_accounts.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,8 @@ describe('eth_accounts', function () {
.build(),
title: this.test?.fullTitle(),
},
async ({
driver,
ganacheServer,
}: {
driver: Driver;
ganacheServer?: Ganache;
}) => {
await loginWithBalanceValidation(driver, ganacheServer);
async ({ driver }: { driver: Driver }) => {
await loginWithBalanceValidation(driver);

// eth_accounts
await driver.openNewPage(`http://127.0.0.1:8080`);
Expand Down
4 changes: 1 addition & 3 deletions test/e2e/json-rpc/eth_call.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,13 @@ describe('eth_call', function () {
},
async ({
driver,
ganacheServer,
contractRegistry,
}: {
driver: Driver;
ganacheServer?: Ganache;
contractRegistry: ContractAddressRegistry;
}) => {
const contract = contractRegistry.getContractAddress(smartContract);
await loginWithBalanceValidation(driver, ganacheServer);
await loginWithBalanceValidation(driver);

// eth_call
await driver.openNewPage(`http://127.0.0.1:8080`);
Expand Down
10 changes: 2 additions & 8 deletions test/e2e/json-rpc/eth_chainId.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,8 @@ describe('eth_chainId', function () {
.build(),
title: this.test?.fullTitle(),
},
async ({
driver,
ganacheServer,
}: {
driver: Driver;
ganacheServer?: Ganache;
}) => {
await loginWithBalanceValidation(driver, ganacheServer);
async ({ driver }: { driver: Driver }) => {
await loginWithBalanceValidation(driver);

// eth_chainId
await driver.openNewPage(`http://127.0.0.1:8080`);
Expand Down
10 changes: 2 additions & 8 deletions test/e2e/json-rpc/eth_coinbase.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,8 @@ describe('eth_coinbase', function () {
.build(),
title: this.test?.fullTitle(),
},
async ({
driver,
ganacheServer,
}: {
driver: Driver;
ganacheServer?: Ganache;
}) => {
await loginWithBalanceValidation(driver, ganacheServer);
async ({ driver }: { driver: Driver }) => {
await loginWithBalanceValidation(driver);

// eth_coinbase
await driver.openNewPage(`http://127.0.0.1:8080`);
Expand Down
10 changes: 2 additions & 8 deletions test/e2e/json-rpc/eth_estimateGas.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,8 @@ describe('eth_estimateGas', function () {
.build(),
title: this.test?.fullTitle(),
},
async ({
driver,
ganacheServer,
}: {
driver: Driver;
ganacheServer?: Ganache;
}) => {
await loginWithBalanceValidation(driver, ganacheServer);
async ({ driver }: { driver: Driver }) => {
await loginWithBalanceValidation(driver);

// eth_estimateGas
await driver.openNewPage(`http://127.0.0.1:8080`);
Expand Down
10 changes: 2 additions & 8 deletions test/e2e/json-rpc/eth_gasPrice.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,8 @@ describe('eth_gasPrice', function () {
.build(),
title: this.test?.fullTitle(),
},
async ({
driver,
ganacheServer,
}: {
driver: Driver;
ganacheServer?: Ganache;
}) => {
await loginWithBalanceValidation(driver, ganacheServer);
async ({ driver }: { driver: Driver }) => {
await loginWithBalanceValidation(driver);

// eth_gasPrice
await driver.openNewPage(`http://127.0.0.1:8080`);
Expand Down

0 comments on commit 1a4c31f

Please sign in to comment.