-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge commit 'efa3faa351380ebb08ecd5f7199af4df9a67941d' into chore/78…
…6-trigger-signing-modals-with-approval-requests
- Loading branch information
Showing
213 changed files
with
5,209 additions
and
2,978 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
/** @type {Detox.DetoxConfig} */ | ||
module.exports = { | ||
testRunner: { | ||
args: { | ||
$0: 'jest', | ||
config: 'e2e/jest.e2e.config.js', | ||
}, | ||
jest: { | ||
setupTimeout: 120000, | ||
}, | ||
}, | ||
|
||
configurations: { | ||
'ios.sim.debug': { | ||
device: 'ios.simulator', | ||
app: 'ios.debug', | ||
}, | ||
'ios.sim.release': { | ||
device: 'ios.simulator', | ||
app: 'ios.release', | ||
}, | ||
'android.emu.debug': { | ||
device: 'android.emulator', | ||
app: 'android.debug', | ||
}, | ||
'android.emu.release': { | ||
device: 'android.emulator', | ||
app: 'android.release', | ||
}, | ||
'android.emu.release.qa': { | ||
device: 'android.emulator', | ||
app: 'android.qa', | ||
}, | ||
}, | ||
devices: { | ||
'ios.simulator': { | ||
type: 'ios.simulator', | ||
device: { | ||
type: 'iPhone 12 Pro', | ||
}, | ||
}, | ||
'android.emulator': { | ||
type: 'android.emulator', | ||
device: { | ||
avdName: 'Pixel_3_API_29', | ||
}, | ||
}, | ||
}, | ||
apps: { | ||
'ios.debug': { | ||
type: 'ios.app', | ||
binaryPath: 'ios/build/Build/Products/Debug-iphonesimulator/MetaMask.app', | ||
build: 'yarn start:ios:e2e', | ||
}, | ||
'ios.release': { | ||
type: 'ios.app', | ||
binaryPath: | ||
'ios/build/Build/Products/Release-iphonesimulator/MetaMask.app', | ||
build: "METAMASK_ENVIRONMENT='production' yarn build:ios:release:e2e", | ||
}, | ||
'android.debug': { | ||
type: 'android.apk', | ||
binaryPath: 'android/app/build/outputs/apk/prod/debug/app-prod-debug.apk', | ||
build: 'yarn start:android:e2e', | ||
}, | ||
'android.release': { | ||
type: 'android.apk', | ||
binaryPath: | ||
'android/app/build/outputs/apk/prod/release/app-prod-release.apk', | ||
build: "METAMASK_ENVIRONMENT='production' yarn build:android:release:e2e", | ||
}, | ||
'android.qa': { | ||
type: 'android.apk', | ||
binaryPath: 'android/app/build/outputs/apk/qa/release/app-qa-release.apk', | ||
build: "METAMASK_ENVIRONMENT='qa' yarn build:android:qa:e2e", | ||
}, | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export default { uri: 'MockImage' }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,37 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`App should render correctly when logged in 1`] = ` | ||
<App | ||
dispatch={[Function]} | ||
/> | ||
`; | ||
|
||
exports[`App should render correctly when logged in 2`] = ` | ||
<App | ||
dispatch={[Function]} | ||
/> | ||
<ContextProvider | ||
value={ | ||
Object { | ||
"store": Object { | ||
"clearActions": [Function], | ||
"dispatch": [Function], | ||
"getActions": [Function], | ||
"getState": [Function], | ||
"replaceReducer": [Function], | ||
"subscribe": [Function], | ||
}, | ||
"subscription": Subscription { | ||
"handleChangeWrapper": [Function], | ||
"listeners": Object { | ||
"notify": [Function], | ||
}, | ||
"onStateChange": [Function], | ||
"parentSub": undefined, | ||
"store": Object { | ||
"clearActions": [Function], | ||
"dispatch": [Function], | ||
"getActions": [Function], | ||
"getState": [Function], | ||
"replaceReducer": [Function], | ||
"subscribe": [Function], | ||
}, | ||
"unsubscribe": null, | ||
}, | ||
} | ||
} | ||
> | ||
<Component /> | ||
</ContextProvider> | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 38 additions & 11 deletions
49
app/components/UI/AccountApproval/__snapshots__/index.test.tsx.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,45 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`AccountApproval should render correctly 1`] = ` | ||
<AccountApproval | ||
accountsLength={1} | ||
currentPageInformation={ | ||
<ContextProvider | ||
value={ | ||
Object { | ||
"icon": "", | ||
"title": "", | ||
"url": "", | ||
"store": Object { | ||
"clearActions": [Function], | ||
"dispatch": [Function], | ||
"getActions": [Function], | ||
"getState": [Function], | ||
"replaceReducer": [Function], | ||
"subscribe": [Function], | ||
}, | ||
"subscription": Subscription { | ||
"handleChangeWrapper": [Function], | ||
"listeners": Object { | ||
"notify": [Function], | ||
}, | ||
"onStateChange": [Function], | ||
"parentSub": undefined, | ||
"store": Object { | ||
"clearActions": [Function], | ||
"dispatch": [Function], | ||
"getActions": [Function], | ||
"getState": [Function], | ||
"replaceReducer": [Function], | ||
"subscribe": [Function], | ||
}, | ||
"unsubscribe": null, | ||
}, | ||
} | ||
} | ||
dispatch={[Function]} | ||
networkType="sepolia" | ||
selectedAddress="0xe7E125654064EEa56229f273dA586F10DF96B0a1" | ||
tokensLength={0} | ||
/> | ||
> | ||
<Component | ||
currentPageInformation={ | ||
Object { | ||
"icon": "", | ||
"title": "", | ||
"url": "", | ||
} | ||
} | ||
/> | ||
</ContextProvider> | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.