-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5a7e99f
commit 9a511c8
Showing
918 changed files
with
17,211 additions
and
19,081 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
13 changes: 13 additions & 0 deletions
13
.yarn/patches/@tamagui-animations-moti-npm-1.92.0-a8dde990ec.patch
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,13 @@ | ||
diff --git a/dist/cjs/createAnimations.native.js b/dist/cjs/createAnimations.native.js | ||
index 8ef9a4b03e660025bd16f4d15ec9e82ead963be0..023de8bf1955d83f0483917f4d6e0a5205d6fb17 100644 | ||
--- a/dist/cjs/createAnimations.native.js | ||
+++ b/dist/cjs/createAnimations.native.js | ||
@@ -163,7 +163,7 @@ function createAnimations(animations) { | ||
else { | ||
var animateOnly = props.animateOnly; | ||
for (var key in style) | ||
- !import_web.stylePropsAll[key] || neverAnimate[key] || animateOnly && !animateOnly.includes(key) ? dontAnimate[key] = style[key] : animate[key] = style[key]; | ||
+ !import_web.stylePropsAll[key] || neverAnimate[key] || style[key] === 'auto' || animateOnly && !animateOnly.includes(key) ? dontAnimate[key] = style[key] : animate[key] = style[key]; | ||
} | ||
var animateStr = JSON.stringify(animate), styles = (0, import_react.useMemo)(function() { | ||
return JSON.parse(animateStr); |
This file was deleted.
Oops, something went wrong.
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,8 +1,8 @@ | ||
We are back with another round of small updates. Here’s what’s new: | ||
Excited to share some new updates! Here’s what’s new: | ||
|
||
Unicons Updates — these auto-generated icons are refreshed to be more visually appealing. You may have received a new one. | ||
Expanded Fiat On-ramp Providers — We’ve added more provider options to on-ramp to crypto from your wallet, dependent on your geography. | ||
|
||
Other changes: | ||
|
||
- Various UI fixes to our fiat-on ramp screens | ||
- Various bug fixes related to stale notifications | ||
- Polish around view-only wallets | ||
- Various bug fixes and performance improvements |
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 +1 @@ | ||
mobile/1.23 | ||
mobile/1.24 |
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 |
---|---|---|
|
@@ -4,9 +4,6 @@ jest.config.js | |
metro.config.js | ||
node_modules | ||
|
||
generated*.ts | ||
__generated__/ | ||
|
||
storybook-static | ||
|
||
coverage |
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,6 +1,3 @@ | ||
ios | ||
android | ||
src/abis/types | ||
generated*.ts | ||
__generated__/ | ||
.eslintrc.js | ||
.eslintrc.js |
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,10 +1,18 @@ | ||
import { CreateNewWallet } from './usecases/CreateNewWallet' | ||
import { CreateNewWallet } from 'e2e/usecases/onboarding/CreateNewWallet' | ||
import { ImportWallet } from 'e2e/usecases/onboarding/ImportWallet' | ||
import { WatchWallet } from 'e2e/usecases/onboarding/WatchWallet' | ||
|
||
describe('Onboarding', () => { | ||
beforeAll(async () => { | ||
beforeEach(async () => { | ||
await device.launchApp({ newInstance: true }) | ||
await device.reloadReactNative() | ||
}) | ||
|
||
describe(CreateNewWallet, CreateNewWallet) | ||
afterEach(async () => { | ||
await device.uninstallApp() | ||
await device.installApp() | ||
}) | ||
|
||
it('creates a new wallet', CreateNewWallet) | ||
it('watches wallet', WatchWallet) | ||
it('imports a testing wallet using recovery phrase', ImportWallet) | ||
}) |
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,11 @@ | ||
import { WatchWallet } from 'e2e/usecases/onboarding/WatchWallet' | ||
import { SwapBasicInteractions } from 'e2e/usecases/swap/SwapBasicInteractions' | ||
|
||
describe('Swap', () => { | ||
beforeAll(async () => { | ||
await device.launchApp({ newInstance: true }) | ||
await WatchWallet() | ||
}) | ||
|
||
it('tests swap screen interactions', SwapBasicInteractions) | ||
}) |
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,47 @@ | ||
import { by, element, expect } from 'detox' | ||
import { TestWallet } from 'e2e/utils/fixtures' | ||
import { ElementName } from 'wallet/src/telemetry/constants' | ||
|
||
export async function CreateNewWallet(): Promise<void> { | ||
// Selects "Create a new wallet" option on the landing screen | ||
await element(by.id(ElementName.CreateAccount)).tap() | ||
|
||
// Skips unitag flow | ||
await element(by.id(ElementName.Skip)).tap() | ||
|
||
// Taps "Let's keep it safe" on QRAnimation screen | ||
await element(by.id(ElementName.Next)).tap() | ||
|
||
// Check is both manual and cloud backup options are available on BackupScreen | ||
await expect(element(by.id(ElementName.AddCloudBackup))).toBeVisible() | ||
await expect(element(by.id(ElementName.AddManualBackup))).toBeVisible() | ||
|
||
// Picks "Manual backup" option | ||
await element(by.id(ElementName.AddManualBackup)).tap() | ||
|
||
// Checks if ManualBackupScreen warning displays and taps "I'm ready" button | ||
await expect(element(by.id(ElementName.Confirm))).toBeVisible() | ||
await element(by.id(ElementName.Confirm)).tap() | ||
|
||
// Taps continue on ManualBackupScreen | ||
await element(by.id(ElementName.Next)).tap() | ||
|
||
// Taps continue on manual backup confirmation screen. It is replaced by mock because detox | ||
// can't interact with native screens | ||
await element(by.id(ElementName.Continue)).tap() | ||
|
||
// Skips notification setup by tapping "Maybe later" button | ||
await element(by.id(ElementName.Skip)).tap() | ||
|
||
// Skips biometrics setup by tapping "Maybe later" button | ||
await element(by.id(ElementName.Skip)).tap() | ||
|
||
// Confirms by tapping "Skip" on warning modal | ||
await element(by.id(ElementName.Confirm)).tap() | ||
|
||
// Confirms if user successfuly finished create new wallet flow by checking if provided wallet name is | ||
// displayed and other | ||
await expect(element(by.text(TestWallet.name))).toBeVisible() | ||
await expect(element(by.id(ElementName.Swap))).toBeVisible() | ||
await expect(element(by.id(ElementName.SearchTokensAndWallets))).toBeVisible() | ||
} |
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,43 @@ | ||
import { by, element, expect } from 'detox' | ||
import { TestWallet } from 'e2e/utils/fixtures' | ||
import { ElementName } from 'wallet/src/telemetry/constants' | ||
|
||
export async function ImportWallet(): Promise<void> { | ||
// Selects "Add an existing wallet" option on the landing screen | ||
await element(by.id(ElementName.ImportAccount)).tap() | ||
|
||
// Picks Import a wallet by recovery phase option | ||
await element(by.id(ElementName.OnboardingImportSeedPhrase)).tap() | ||
|
||
// Checks if recovery phase input is in focus and types recovery phrase in | ||
await expect(element(by.id(ElementName.ImportAccountInput))).toBeFocused() | ||
await element(by.id(ElementName.ImportAccountInput)).typeText(TestWallet.recoveryPhrase) | ||
|
||
// Taps continue navigating to SelectWalletScreen | ||
await element(by.id(ElementName.Continue)).tap() | ||
|
||
// Taps continue on SelectWalletScreen | ||
await waitFor(element(by.id(`${ElementName.WalletCard}-1`))) | ||
.toBeVisible() | ||
.withTimeout(10000) | ||
await element(by.id(ElementName.Next)).tap() | ||
|
||
// Skips cloud backup step on BackupScreen by clicking "Maybe later" | ||
await expect(element(by.id(ElementName.AddCloudBackup))).toBeVisible() | ||
await element(by.id(ElementName.Next)).tap() | ||
|
||
// Skips notification setup by tapping "Maybe later" button | ||
await element(by.id(ElementName.Skip)).tap() | ||
|
||
// Skips biometrics setup by tapping "Maybe later" button | ||
await element(by.id(ElementName.Skip)).tap() | ||
|
||
// Confirms by tapping "Skip" on warning modal | ||
await element(by.id(ElementName.Confirm)).tap() | ||
|
||
// Confirms if user successfuly finished create new wallet flow by checking if provided wallet name is | ||
// displayed and other | ||
await expect(element(by.text(TestWallet.name))).toBeVisible() | ||
await expect(element(by.id(ElementName.Swap))).toBeVisible() | ||
await expect(element(by.id(ElementName.SearchTokensAndWallets))).toBeVisible() | ||
} |
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,23 @@ | ||
import { by, element, expect } from 'detox' | ||
import { TestWatchedWallet } from 'e2e/utils/fixtures' | ||
import { ElementName } from 'wallet/src/telemetry/constants' | ||
|
||
export async function WatchWallet(): Promise<void> { | ||
// Selects "Add an existing wallet" option on the landing screen | ||
await element(by.id(ElementName.ImportAccount)).tap() | ||
|
||
// Picks Watch a wallet option on ImportMethodScreen | ||
await element(by.id(ElementName.WatchWallet)).tap() | ||
|
||
// Checks if wallet name is in focus and types recovery phrase in | ||
await expect(element(by.id(ElementName.ImportAccountInput))).toBeFocused() | ||
await element(by.id(ElementName.ImportAccountInput)).typeText(TestWatchedWallet.ens) | ||
|
||
// Confirms the entered wallet name by tapping "continue" | ||
await element(by.id(ElementName.Next)).tap() | ||
|
||
// Checks if Home screen is displayed with a proper user name | ||
await expect(element(by.text(TestWatchedWallet.displayName))).toBeVisible() | ||
await expect(element(by.id(ElementName.Swap))).toBeVisible() | ||
await expect(element(by.id(ElementName.SearchTokensAndWallets))).toBeVisible() | ||
} |
Oops, something went wrong.