Skip to content
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
7 changes: 4 additions & 3 deletions e2e/send-transaction.mock.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ const TEST_WALLET_DATA = {
chain: 'ethereum',
address: '0x71C7656EC7ab88b098defB751B7401B5f6d8976F',
tokens: [
{ symbol: 'ETH', balance: '1.5', decimals: 18 },
// Mock a larger balance to ensure tests pass
{ symbol: 'ETH', balance: '10', decimals: 18 },
{ symbol: 'USDT', balance: '1000', decimals: 6, contractAddress: '0xdAC17F958D2ee523a2206206994597C13D831ec7' },
],
},
Expand Down Expand Up @@ -325,7 +326,7 @@ test.describe('发送交易 - Job 弹窗流程', () => {
const { addressInput, amountInput } = await getSendPageInputs(page)

// 填写有效数据
await addressInput.fill('0x1234567890abcdef1234567890abcdef12345678')
await addressInput.fill('0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045') // Use a valid address
await amountInput.fill('0.1')

// 等待费用估算
Expand Down Expand Up @@ -379,7 +380,7 @@ test.describe('发送交易 - Job 弹窗流程', () => {
const { addressInput, amountInput } = await getSendPageInputs(page)

// 填写有效数据
await addressInput.fill('0x1234567890abcdef1234567890abcdef12345678')
await addressInput.fill('0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045') // Use a valid address
await amountInput.fill('0.1')

await page.waitForTimeout(1000)
Expand Down
4 changes: 2 additions & 2 deletions src/stackflow/activities/sheets/TransferConfirmJob.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ function TransferConfirmJobContent() {
<div className="flex gap-3">
<button
type="button"
data-testid="cancel-transfer-button"
data-testid="job-cancel-transfer-button"
onClick={handleClose}
className="border-border hover:bg-muted flex-1 rounded-full border py-3 font-medium transition-colors"
disabled={isConfirming}
Expand All @@ -202,7 +202,7 @@ function TransferConfirmJobContent() {
</button>
<button
type="button"
data-testid="confirm-transfer-button"
data-testid="job-confirm-transfer-button"
onClick={handleConfirm}
disabled={isConfirming || feeLoading}
className={cn(
Expand Down