Skip to content
Merged
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
2 changes: 0 additions & 2 deletions e2e/buy-process.spec.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import { test, expect } from '@playwright/test';
import { BlockchainType, getCachedAuth } from './helpers/auth-cache';

// Note: API Integration tests have been moved to Jest (src/__tests__/api/buy-api.test.ts)
// This file now contains only UI Flow tests that require browser interaction

test.describe('Buy Process - UI Flow', () => {
async function getToken(
Expand Down
2 changes: 0 additions & 2 deletions e2e/login-process.spec.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import { test, expect } from '@playwright/test';
import { getCachedAuth } from './helpers/auth-cache';

// Note: API Integration tests for authentication have been moved to Jest (src/__tests__/api/auth-api.test.ts)
// This file now contains only UI Flow tests that require browser interaction

test.describe('Login Process - UI Flow', () => {
let token: string;
Expand Down
2 changes: 0 additions & 2 deletions e2e/sell-process.spec.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import { test, expect } from '@playwright/test';
import { getCachedAuth } from './helpers/auth-cache';

// Note: API Integration tests have been moved to Jest (src/__tests__/api/sell-api.test.ts)
// This file now contains only UI Flow tests that require browser interaction

test.describe('Sell Process - UI Flow', () => {
let token: string;
Expand Down
2 changes: 0 additions & 2 deletions e2e/swap-process.spec.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import { test, expect } from '@playwright/test';
import { getCachedAuth } from './helpers/auth-cache';

// Note: API Integration tests have been moved to Jest (src/__tests__/api/swap-api.test.ts)
// This file now contains only UI Flow tests that require browser interaction

test.describe('Swap Process - UI Flow', () => {
let token: string;
Expand Down
16 changes: 8 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 11 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,14 @@
"access": "public"
},
"dependencies": {
"@dfx.swiss/react": "^1.3.0-beta.236",
"@dfx.swiss/react-components": "^1.3.0-beta.236",
"@dfx.swiss/react": "^1.3.0-beta.237",
"@dfx.swiss/react-components": "^1.3.0-beta.237",
"@ledgerhq/hw-app-btc": "^6.24.1",
"@ledgerhq/hw-app-eth": "^6.33.7",
"@ledgerhq/hw-transport-webhid": "^6.27.19",
"@r2wc/react-to-web-component": "^2.0.2",
"@scure/bip32": "^2.0.1",
"@scure/bip39": "^2.0.1",
"@solana/spl-token": "^0.4.13",
"@solana/wallet-adapter-phantom": "^0.9.27",
"@solana/wallet-adapter-trust": "^0.1.16",
Expand All @@ -34,6 +36,8 @@
"apexcharts": "^4.7.0",
"bech32": "^2.0.0",
"bitbox-api": "^0.2.1",
"bitcoinjs-lib": "^7.0.0",
"bitcoinjs-message": "^2.2.0",
"browser-lang": "^0.2.1",
"buffer": "^6.0.3",
"copy-to-clipboard": "^3.3.3",
Expand All @@ -57,18 +61,14 @@
"react-scripts": "5.0.1",
"stream-browserify": "^3.0.0",
"stream-http": "^3.2.0",
"tronweb": "^6.1.1",
"tweetnacl": "^1.0.3",
"typescript": "^5.4.5",
"url": "^0.11.1",
"viem": "^2.13.3",
"web-vitals": "^2.1.4",
"web3": "^1.8.1",
"webln": "^0.3.2",
"@scure/bip32": "^2.0.1",
"@scure/bip39": "^2.0.1",
"bitcoinjs-lib": "^7.0.0",
"bitcoinjs-message": "^2.2.0",
"tronweb": "^6.1.1",
"tweetnacl": "^1.0.3"
"webln": "^0.3.2"
},
"scripts": {
"start": "react-app-rewired start",
Expand All @@ -83,14 +83,13 @@
"lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --no-fix",
"lint:fix": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
"test": "react-app-rewired test --watchAll=false --passWithNoTests",
"test:api": "react-app-rewired test --watchAll=false --testPathPattern=__tests__/api",
"test:e2e": "./scripts/e2e-test.sh",
"test:e2e:local": "npx playwright test",
"test:e2e:metamask": "npx playwright test --config=playwright.synpress.config.ts",
"synpress:install-chrome": "npx @puppeteer/browsers install chrome@126.0.6478.0",
"synpress:download-metamask": "mkdir -p .cache-synpress && curl -L https://github.com/MetaMask/metamask-extension/releases/download/v11.9.1/metamask-chrome-11.9.1.zip -o .cache-synpress/metamask.zip && unzip -o .cache-synpress/metamask.zip -d .cache-synpress/metamask-chrome-11.9.1",
"synpress:setup": "npm run synpress:install-chrome && npm run synpress:download-metamask",
"test:all": "npm run test:api && npm run test:e2e",
"test:all": "npm run test && npm run test:e2e",
"eject": "react-scripts eject",
"serve": "serve build -l 4000",
"analyze": "source-map-explorer 'build/static/js/*.js'",
Expand Down Expand Up @@ -180,8 +179,7 @@
"node_modules/(?!(@dfx.swiss|@scure|@noble|@solana|bitcoinjs-lib|bitcoinjs-message|tronweb|tweetnacl)/)"
],
"testPathIgnorePatterns": [
"/node_modules/",
"__tests__/api/helpers/"
"/node_modules/"
],
"setupFilesAfterEnv": [
"<rootDir>/src/setupTests.ts"
Expand Down
25 changes: 25 additions & 0 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,11 @@ const ComplianceKycFilesDetailsScreen = lazy(() => import('./screens/compliance-
const ComplianceKycStatsScreen = lazy(() => import('./screens/compliance-kyc-stats.screen'));
const ComplianceTransactionListScreen = lazy(() => import('./screens/compliance-transaction-list.screen'));
const RealunitScreen = lazy(() => import('./screens/realunit.screen'));
const RealunitHoldersScreen = lazy(() => import('./screens/realunit-holders.screen'));
const RealunitQuotesScreen = lazy(() => import('./screens/realunit-quotes.screen'));
const RealunitTransactionsScreen = lazy(() => import('./screens/realunit-transactions.screen'));
const RealunitQuoteDetailScreen = lazy(() => import('./screens/realunit-quote-detail.screen'));
const RealunitTransactionDetailScreen = lazy(() => import('./screens/realunit-transaction-detail.screen'));
const RealunitUserScreen = lazy(() => import('./screens/realunit-user.screen'));
const PersonalIbanScreen = lazy(() => import('./screens/personal-iban.screen'));
const BuyCryptoUpdateScreen = lazy(() => import('./screens/buy-crypto-update.screen'));
Expand Down Expand Up @@ -360,6 +365,26 @@ export const Routes = [
index: true,
element: withSuspense(<RealunitScreen />),
},
{
path: 'holders',
element: withSuspense(<RealunitHoldersScreen />),
},
{
path: 'quotes',
element: withSuspense(<RealunitQuotesScreen />),
},
{
path: 'quotes/:id',
element: withSuspense(<RealunitQuoteDetailScreen />),
},
{
path: 'transactions',
element: withSuspense(<RealunitTransactionsScreen />),
},
{
path: 'transactions/:id',
element: withSuspense(<RealunitTransactionDetailScreen />),
},
{
path: 'user/:address',
element: withSuspense(<RealunitUserScreen />),
Expand Down
121 changes: 0 additions & 121 deletions src/__tests__/api/auth-api.test.ts

This file was deleted.

Loading
Loading