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

Jl/test api specs revert redesigned confirmations enabled #26133

Closed
Closed
Show file tree
Hide file tree
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
1 change: 0 additions & 1 deletion app/scripts/lib/setupSentry.js
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,6 @@ export const SENTRY_BACKGROUND_STATE = {
preferences: {
autoLockTimeLimit: true,
hideZeroBalanceTokens: true,
redesignedConfirmationsEnabled: true,
isRedesignedConfirmationsDeveloperEnabled: false,
showExtensionInFullSizeView: true,
showFiatInTestnets: true,
Expand Down
74 changes: 0 additions & 74 deletions app/scripts/migrations/122.test.ts

This file was deleted.

50 changes: 0 additions & 50 deletions app/scripts/migrations/122.ts

This file was deleted.

2 changes: 1 addition & 1 deletion app/scripts/migrations/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ const migrations = [
require('./120'),
require('./120.1'),
require('./121'),
require('./122'),

require('./123'),
];

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
import { Suite } from 'mocha';
import FixtureBuilder from '../fixture-builder';
import {
withFixtures,
multipleGanacheOptions,
tempToggleSettingRedesignedConfirmations,
} from '../helpers';
import { withFixtures, multipleGanacheOptions } from '../helpers';
import { Driver } from '../webdriver/driver';
import {
installSnapSimpleKeyring,
Expand All @@ -31,8 +27,6 @@ describe('Snap Account Signatures and Disconnects', function (this: Suite) {

const newPublicKey = await makeNewAccountAndSwitch(driver);

await tempToggleSettingRedesignedConfirmations(driver);

// open the Test Dapp and connect Account 2 to it
await connectAccountToTestDapp(driver);

Expand Down
7 changes: 2 additions & 5 deletions test/e2e/accounts/snap-account-signatures.spec.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
import { Suite } from 'mocha';
import {
tempToggleSettingRedesignedConfirmations,
withFixtures,
} from '../helpers';
import { openDapp, withFixtures } from '../helpers';
import { Driver } from '../webdriver/driver';
import {
accountSnapFixtures,
Expand Down Expand Up @@ -30,7 +27,7 @@ describe('Snap Account Signatures', function (this: Suite) {

const newPublicKey = await makeNewAccountAndSwitch(driver);

await tempToggleSettingRedesignedConfirmations(driver);
await openDapp(driver);

// Run all 6 signature types
const locatorIDs = [
Expand Down
1 change: 0 additions & 1 deletion test/e2e/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -1268,6 +1268,5 @@ module.exports = {
defaultGanacheOptionsForType2Transactions,
removeSelectedAccount,
getSelectedAccountAddress,
tempToggleSettingRedesignedConfirmations,
openMenuSafe,
};
2 changes: 0 additions & 2 deletions test/e2e/snaps/test-snap-siginsights.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ const {
openDapp,
unlockWallet,
switchToNotificationWindow,
tempToggleSettingRedesignedConfirmations,
WINDOW_TITLES,
} = require('../helpers');
const FixtureBuilder = require('../fixture-builder');
Expand All @@ -30,7 +29,6 @@ describe('Test Snap Signature Insights', function () {
},
async ({ driver }) => {
await unlockWallet(driver);
await tempToggleSettingRedesignedConfirmations(driver);

// navigate to test snaps page and connect
await driver.openNewPage(TEST_SNAPS_WEBSITE_URL);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ const {
withFixtures,
openDapp,
DAPP_URL,
tempToggleSettingRedesignedConfirmations,
unlockWallet,
WINDOW_TITLES,
} = require('../../helpers');
Expand All @@ -29,7 +28,6 @@ describe('Sign in with ethereum', function () {
},
async ({ driver }) => {
await unlockWallet(driver);
await tempToggleSettingRedesignedConfirmations(driver);

// Create a signin with ethereum request in test dapp
await openDapp(driver);
Expand Down
6 changes: 0 additions & 6 deletions test/e2e/tests/metrics/signature-approved.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ const {
unlockWallet,
getEventPayloads,
clickSignOnSignatureConfirmation,
tempToggleSettingRedesignedConfirmations,
validateContractDetails,
} = require('../../helpers');
const FixtureBuilder = require('../../fixture-builder');
Expand Down Expand Up @@ -66,7 +65,6 @@ describe('Signature Approved Event @no-mmi', function () {
},
async ({ driver, mockedEndpoint: mockedEndpoints }) => {
await unlockWallet(driver);
await tempToggleSettingRedesignedConfirmations(driver);
await openDapp(driver);

// creates a sign typed data signature request
Expand Down Expand Up @@ -118,7 +116,6 @@ describe('Signature Approved Event @no-mmi', function () {
},
async ({ driver, mockedEndpoint: mockedEndpoints }) => {
await unlockWallet(driver);
await tempToggleSettingRedesignedConfirmations(driver);
await openDapp(driver);

// creates a sign typed data signature request
Expand Down Expand Up @@ -166,7 +163,6 @@ describe('Signature Approved Event @no-mmi', function () {
},
async ({ driver, mockedEndpoint: mockedEndpoints }) => {
await unlockWallet(driver);
await tempToggleSettingRedesignedConfirmations(driver);
await openDapp(driver);

// creates a sign typed data signature request
Expand Down Expand Up @@ -213,7 +209,6 @@ describe('Signature Approved Event @no-mmi', function () {
},
async ({ driver, mockedEndpoint: mockedEndpoints }) => {
await unlockWallet(driver);
await tempToggleSettingRedesignedConfirmations(driver);
await openDapp(driver);

// creates a sign typed data signature request
Expand Down Expand Up @@ -265,7 +260,6 @@ describe('Signature Approved Event @no-mmi', function () {
},
async ({ driver, mockedEndpoint: mockedEndpoints }) => {
await unlockWallet(driver);
await tempToggleSettingRedesignedConfirmations(driver);
await openDapp(driver);

// creates a sign typed data signature request
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,6 @@
"useNativeCurrencyAsPrimaryCurrency": true,
"petnamesEnabled": true,
"showTokenAutodetectModal": "boolean",
"redesignedConfirmationsEnabled": true,
"isRedesignedConfirmationsDeveloperEnabled": "boolean"
},
"ipfsGateway": "string",
Expand Down Expand Up @@ -269,14 +268,14 @@
"errorKey": "",
"topAggId": "object",
"routeState": "",
"swapsFeatureFlags": {},
"swapsFeatureIsLive": true,
"saveFetchedQuotes": false,
"swapsQuoteRefreshTime": 60000,
"swapsQuotePrefetchingRefreshTime": 60000,
"swapsStxBatchStatusRefreshTime": 10000,
"swapsStxGetTransactionsRefreshTime": 10000,
"swapsStxMaxFeeMultiplier": 2,
"swapsFeatureFlags": {}
"swapsStxMaxFeeMultiplier": 2
}
},
"TokenListController": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
"useNativeCurrencyAsPrimaryCurrency": true,
"petnamesEnabled": true,
"showTokenAutodetectModal": "boolean",
"redesignedConfirmationsEnabled": true,
"isRedesignedConfirmationsDeveloperEnabled": "boolean"
},
"firstTimeFlowType": "import",
Expand Down Expand Up @@ -63,6 +62,11 @@
},
"connectedStatusPopoverHasBeenShown": true,
"defaultHomeActiveTabName": null,
"bridgeState": {
"bridgeFeatureFlags": {
"extensionSupport": "boolean"
}
},
"browserEnvironment": { "os": "string", "browser": "string" },
"popupGasPollTokens": "object",
"notificationGasPollTokens": "object",
Expand Down Expand Up @@ -117,9 +121,9 @@
"useRequestQueue": true,
"openSeaEnabled": false,
"securityAlertsEnabled": "boolean",
"addSnapAccountEnabled": "boolean",
"bitcoinSupportEnabled": "boolean",
"bitcoinTestnetSupportEnabled": "boolean",
"addSnapAccountEnabled": "boolean",
"advancedGasFee": {},
"incomingTransactionsPreferences": {},
"identities": "object",
Expand Down Expand Up @@ -244,16 +248,15 @@
"errorKey": "",
"topAggId": "object",
"routeState": "",
"swapsFeatureFlags": {},
"swapsFeatureIsLive": true,
"saveFetchedQuotes": false,
"swapsQuoteRefreshTime": 60000,
"swapsQuotePrefetchingRefreshTime": 60000,
"swapsStxBatchStatusRefreshTime": 10000,
"swapsStxGetTransactionsRefreshTime": 10000,
"swapsStxMaxFeeMultiplier": 2,
"swapsFeatureFlags": {}
"swapsStxMaxFeeMultiplier": 2
},
"bridgeState": { "bridgeFeatureFlags": { "extensionSupport": "boolean" } },
"ensEntries": "object",
"ensResolutionsByAddress": "object",
"pendingApprovals": "object",
Expand Down
4 changes: 0 additions & 4 deletions test/e2e/tests/petnames/petnames-signatures.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ const {
openDapp,
switchToNotificationWindow,
withFixtures,
tempToggleSettingRedesignedConfirmations,
unlockWallet,
defaultGanacheOptions,
} = require('../../helpers');
Expand Down Expand Up @@ -109,7 +108,6 @@ describe('Petnames - Signatures', function () {
},
async ({ driver }) => {
await unlockWallet(driver);
await tempToggleSettingRedesignedConfirmations(driver);
await openDapp(driver);
await createSignatureRequest(driver, SIGNATURE_TYPE.TYPED_V3);
await switchToNotificationWindow(driver, 3);
Expand Down Expand Up @@ -146,7 +144,6 @@ describe('Petnames - Signatures', function () {
},
async ({ driver }) => {
await unlockWallet(driver);
await tempToggleSettingRedesignedConfirmations(driver);
await openDapp(driver);
await createSignatureRequest(driver, SIGNATURE_TYPE.TYPED_V4);
await switchToNotificationWindow(driver, 3);
Expand Down Expand Up @@ -188,7 +185,6 @@ describe('Petnames - Signatures', function () {
},
async ({ driver }) => {
await unlockWallet(driver);
await tempToggleSettingRedesignedConfirmations(driver);
await openDapp(driver);
await openTestSnaps(driver);
await installNameLookupSnap(driver);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ const {
DAPP_ONE_URL,
regularDelayMs,
defaultGanacheOptions,
tempToggleSettingRedesignedConfirmations,
WINDOW_TITLES,
} = require('../../helpers');

Expand Down Expand Up @@ -43,7 +42,6 @@ describe('Request Queuing Dapp 1, Switch Tx -> Dapp 2 Send Tx', function () {
},
async ({ driver }) => {
await unlockWallet(driver);
await tempToggleSettingRedesignedConfirmations(driver);

// Open Dapp One
await openDapp(driver, undefined, DAPP_URL);
Expand Down
Loading
Loading