Skip to content

Commit

Permalink
refactor: rename the networks to chains and move assets test into ass…
Browse files Browse the repository at this point in the history
…ets folder
  • Loading branch information
EtherWizard33 committed Dec 17, 2024
1 parent 8f4759c commit fca3ee2
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 258 deletions.
File renamed without changes.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const fixtureServer = new FixtureServer();
const SEPOLIA = CustomNetworks.Sepolia.providerConfig.nickname;

describe(
SmokeMultiChain('Network Permission System, non-permitted chain, '),
SmokeMultiChain('Chain Permission System, non-permitted chain, '),
() => {
beforeAll(async () => {
await TestHelpers.reverseServerPort();
Expand All @@ -36,7 +36,7 @@ describe(
await stopFixtureServer(fixtureServer);
});

it('should show bottom sheet when switching to non-permitted network', async () => {
it('should show bottom sheet when switching to non-permitted chain', async () => {
await withFixtures(
{
dapp: true,
Expand Down Expand Up @@ -189,7 +189,7 @@ describe(
);
});

it('should allow adding new network permission through edit permissions', async () => {
it('should allow adding new chain permission through edit permissions', async () => {
await withFixtures(
{
dapp: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ import Assertions from '../../../../utils/Assertions';
import NetworkConnectMultiSelector from '../../../../pages/Browser/NetworkConnectMultiSelector';
import NetworkNonPemittedBottomSheet from '../../../../pages/Network/NetworkNonPemittedBottomSheet';

describe(SmokeMultiChain('Network Permission Management'), () => {
describe(SmokeMultiChain('Chain Permission Management'), () => {
beforeAll(async () => {
jest.setTimeout(150000);
await TestHelpers.reverseServerPort();
});

it('preserves original network permissions when user cancels modification', async () => {
it('preserves original chain permissions when user cancels modification', async () => {
await withFixtures(
{
dapp: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ import ConnectBottomSheet from '../../../../pages/Browser/ConnectBottomSheet';
import NetworkNonPemittedBottomSheet from '../../../../pages/Network/NetworkNonPemittedBottomSheet';
import NetworkConnectMultiSelector from '../../../../pages/Browser/NetworkConnectMultiSelector';

describe(SmokeMultiChain('Network Permission Management'), () => {
describe(SmokeMultiChain('Chain Permission Management'), () => {
beforeAll(async () => {
jest.setTimeout(150000);
await TestHelpers.reverseServerPort();
});

describe('Initial Connection Flow', () => {
it('grants default permissions to single account and network on first connect', async () => {
it('grants default permissions to single account and chain on first connect', async () => {
await withFixtures(
{
dapp: true,
Expand All @@ -42,7 +42,7 @@ describe(SmokeMultiChain('Network Permission Management'), () => {
);
});

it('allows user to modify permitted networks before completing connection', async () => {
it('allows user to modify permitted chains before completing connection', async () => {
await withFixtures(
{
dapp: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ import NetworkEducationModal from '../../../../pages/Network/NetworkEducationMod
import ConnectBottomSheet from '../../../../pages/Browser/ConnectBottomSheet';
import PermissionSummaryBottomSheet from '../../../../pages/Browser/PermissionSummaryBottomSheet';

describe(SmokeMultiChain('Network Permission Management'), () => {
describe(SmokeMultiChain('Chain Permission Management'), () => {
beforeAll(async () => {
jest.setTimeout(150000);
await TestHelpers.reverseServerPort();
});

it('handles permission cleanup when removing a connected network', async () => {
it('handles permission cleanup when removing a connected chain', async () => {
await withFixtures(
{
dapp: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ import { withFixtures } from '../../../../fixtures/fixture-helper';
import { loginToApp } from '../../../../viewHelper';
import Assertions from '../../../../utils/Assertions';

describe(SmokeMultiChain('Network Permission Management'), () => {
describe(SmokeMultiChain('Chain Permission Management'), () => {
beforeAll(async () => {
jest.setTimeout(150000);
await TestHelpers.reverseServerPort();
});

it('removes network access permission while maintaining account connections', async () => {
it('removes chain access permission while maintaining account connections', async () => {
await withFixtures(
{
dapp: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ import WalletView from '../../../../pages/wallet/WalletView';
import NetworkEducationModal from '../../../../pages/Network/NetworkEducationModal';
import PermissionSummaryBottomSheet from '../../../../pages/Browser/PermissionSummaryBottomSheet';

describe(SmokeMultiChain('Network Permission Management'), () => {
describe(SmokeMultiChain('Chain Permission Management'), () => {
beforeAll(async () => {
jest.setTimeout(150000);
await TestHelpers.reverseServerPort();
});
it('allows simultaneous granting and revoking of multiple network permissions', async () => {
it('allows simultaneous granting and revoking of multiple chain permissions', async () => {
await withFixtures(
{
dapp: true,
Expand Down Expand Up @@ -67,7 +67,7 @@ describe(SmokeMultiChain('Network Permission Management'), () => {
);
});

it('follows fallback priority when revoking permission for currently active network', async () => {
it('follows fallback priority when revoking permission for currently active chain', async () => {
await withFixtures(
{
dapp: true,
Expand Down

0 comments on commit fca3ee2

Please sign in to comment.