+
{t('payment_channel_closed')}
)}
diff --git a/src/containers/shared/components/Transaction/PaymentChannelClaim/test/PaymentChannelClaimDescription.test.tsx b/src/containers/shared/components/Transaction/PaymentChannelClaim/test/PaymentChannelClaimDescription.test.tsx
index 8058ac397..f9cbe4db6 100644
--- a/src/containers/shared/components/Transaction/PaymentChannelClaim/test/PaymentChannelClaimDescription.test.tsx
+++ b/src/containers/shared/components/Transaction/PaymentChannelClaim/test/PaymentChannelClaimDescription.test.tsx
@@ -12,29 +12,29 @@ const createWrapper = createDescriptionWrapperFactory(Description, i18n)
describe('PaymentChannelClaim: Description', () => {
it('renders a claim', () => {
const wrapper = createWrapper(mockPaymentChannelClaim)
- expect(wrapper.find('[data-test="account-line"]')).toHaveText(
+ expect(wrapper.find('[data-testid="account-line"]')).toHaveText(
`The transaction was initiated by rK6g2UYc4GpQH8DYdPG7wywyQbxkJpQTTN`,
)
- expect(wrapper.find('[data-test="channel-line"]')).toHaveText(
+ expect(wrapper.find('[data-testid="channel-line"]')).toHaveText(
`It will update the payment channel 50107651E7163E294CE0EAD8A20BF7CC046304480FCC9C74A49FFAB3F46FB98E`,
)
- expect(wrapper.find('[data-test="balance-line"]')).toHaveText(
+ expect(wrapper.find('[data-testid="balance-line"]')).toHaveText(
`The channel balance claimed is \uE90049.65716XRP (increased by \uE9000.01XRP)`,
)
- expect(wrapper.find('[data-test="closed-line"]')).not.toExist()
+ expect(wrapper.find('[data-testid="closed-line"]')).not.toExist()
wrapper.unmount()
})
it('renders tx with channel being closed', () => {
const wrapper = createWrapper(mockPaymentChannelClaimClosed)
- expect(wrapper.find('[data-test="account-line"]')).toHaveText(
+ expect(wrapper.find('[data-testid="account-line"]')).toHaveText(
`The transaction was initiated by rH11fDGhbVH5NVXNXkGAMTmfWhUHjCtA3B`,
)
- expect(wrapper.find('[data-test="channel-line"]')).toHaveText(
+ expect(wrapper.find('[data-testid="channel-line"]')).toHaveText(
`It will update the payment channel 3BDB4F92432BCEB2385D3BAA60E8AAEC9B552890A240AEE4AA9E88C9E6C517E8`,
)
- expect(wrapper.find('[data-test="balance-line"]')).not.toExist()
- expect(wrapper.find('[data-test="closed-line"]')).toHaveText(
+ expect(wrapper.find('[data-testid="balance-line"]')).not.toExist()
+ expect(wrapper.find('[data-testid="closed-line"]')).toHaveText(
`The payment channel will be closed, any remaining balance will be returned to the source account`,
)
wrapper.unmount()
@@ -42,29 +42,29 @@ describe('PaymentChannelClaim: Description', () => {
it('renders tx requesting channel be closed but not closing it', () => {
const wrapper = createWrapper(mockPaymentChannelClaimCloseDenied)
- expect(wrapper.find('[data-test="account-line"]')).toHaveText(
+ expect(wrapper.find('[data-testid="account-line"]')).toHaveText(
`The transaction was initiated by rH11fDGhbVH5NVXNXkGAMTmfWhUHjCtA3B`,
)
- expect(wrapper.find('[data-test="channel-line"]')).toHaveText(
+ expect(wrapper.find('[data-testid="channel-line"]')).toHaveText(
`It will update the payment channel 3BDB4F92432BCEB2385D3BAA60E8AAEC9B552890A240AEE4AA9E88C9E6C517E8`,
)
- expect(wrapper.find('[data-test="balance-line"]')).not.toExist()
- expect(wrapper.find('[data-test="closed-line"]')).not.toExist()
+ expect(wrapper.find('[data-testid="balance-line"]')).not.toExist()
+ expect(wrapper.find('[data-testid="closed-line"]')).not.toExist()
wrapper.unmount()
})
it('renders tx with destination tag', () => {
const wrapper = createWrapper(mockPaymentChannelClaimWithDestinationTag)
- expect(wrapper.find('[data-test="account-line"]')).toHaveText(
+ expect(wrapper.find('[data-testid="account-line"]')).toHaveText(
`The transaction was initiated by rf1BiGeXwwQoi8Z2ueFYTEXSwuJYfV2Jpn`,
)
- expect(wrapper.find('[data-test="channel-line"]')).toHaveText(
+ expect(wrapper.find('[data-testid="channel-line"]')).toHaveText(
`It will update the payment channel 5DB01B7FFED6B67E6B0414DED11E051D2EE2B7619CE0EAA6286D67A3A4D5BDB3`,
)
- expect(wrapper.find('[data-test="balance-line"]')).toHaveText(
+ expect(wrapper.find('[data-testid="balance-line"]')).toHaveText(
`The channel balance claimed is \uE9001.00XRP (increased by \uE9001.00XRP)`,
)
- expect(wrapper.find('[data-test="closed-line"]')).not.toExist()
+ expect(wrapper.find('[data-testid="closed-line"]')).not.toExist()
wrapper.unmount()
})
})
diff --git a/src/containers/shared/components/Transaction/PaymentChannelClaim/test/PaymentChannelClaimTableDetail.test.tsx b/src/containers/shared/components/Transaction/PaymentChannelClaim/test/PaymentChannelClaimTableDetail.test.tsx
index ccf4b1548..de68e843d 100644
--- a/src/containers/shared/components/Transaction/PaymentChannelClaim/test/PaymentChannelClaimTableDetail.test.tsx
+++ b/src/containers/shared/components/Transaction/PaymentChannelClaim/test/PaymentChannelClaimTableDetail.test.tsx
@@ -12,39 +12,39 @@ const createWrapper = createTableDetailWrapperFactory(TableDetail, i18n)
describe('PaymentChannelClaim: TableDetail', () => {
it('renders a claim', () => {
const wrapper = createWrapper(mockPaymentChannelClaim)
- expect(wrapper.find('[data-test="source"]')).toHaveText(
+ expect(wrapper.find('[data-testid="source"]')).toHaveText(
'sourcernNzy3iPc7gPEAJbAdXwxY1UTBamBqTYhR:1002539517',
)
- expect(wrapper.find('[data-test="destination"]')).toHaveText(
+ expect(wrapper.find('[data-testid="destination"]')).toHaveText(
'destinationrK6g2UYc4GpQH8DYdPG7wywyQbxkJpQTTN',
)
- expect(wrapper.find('[data-test="claimed"]')).toHaveText(
+ expect(wrapper.find('[data-testid="claimed"]')).toHaveText(
'claimed\uE9000.01 XRP (\uE90020.34284 XRP of \uE90070.00 XRP remaining)',
)
- expect(wrapper.find('[data-test="amount"]')).not.toExist()
- expect(wrapper.find('[data-test="renew"]')).not.toExist()
- expect(wrapper.find('[data-test="close-request"]')).not.toExist()
- expect(wrapper.find('[data-test="closed"]')).not.toExist()
+ expect(wrapper.find('[data-testid="channel-amount"]')).not.toExist()
+ expect(wrapper.find('[data-testid="renew"]')).not.toExist()
+ expect(wrapper.find('[data-testid="close-request"]')).not.toExist()
+ expect(wrapper.find('[data-testid="closed"]')).not.toExist()
wrapper.unmount()
})
it('renders tx with channel being closed', () => {
const wrapper = createWrapper(mockPaymentChannelClaimClosed)
- expect(wrapper.find('[data-test="source"]')).toHaveText(
+ expect(wrapper.find('[data-testid="source"]')).toHaveText(
'sourcerH11fDGhbVH5NVXNXkGAMTmfWhUHjCtA3B:2647131528',
)
- expect(wrapper.find('[data-test="destination"]')).toHaveText(
+ expect(wrapper.find('[data-testid="destination"]')).toHaveText(
'destinationrK6g2UYc4GpQH8DYdPG7wywyQbxkJpQTTN',
)
- expect(wrapper.find('[data-test="claimed"]')).not.toExist()
- expect(wrapper.find('[data-test="amount"]')).toHaveText(
+ expect(wrapper.find('[data-testid="claimed"]')).not.toExist()
+ expect(wrapper.find('[data-testid="channel-amount"]')).toHaveText(
'channel amount\uE90010.00 XRP',
)
- expect(wrapper.find('[data-test="renew"]')).not.toExist()
- expect(wrapper.find('[data-test="close-request"]')).toHaveText(
+ expect(wrapper.find('[data-testid="renew"]')).not.toExist()
+ expect(wrapper.find('[data-testid="close-request"]')).toHaveText(
'close channel request',
)
- expect(wrapper.find('[data-test="closed"]')).toHaveText(
+ expect(wrapper.find('[data-testid="closed"]')).toHaveText(
'payment channel closed',
)
wrapper.unmount()
@@ -52,39 +52,39 @@ describe('PaymentChannelClaim: TableDetail', () => {
it('renders tx requesting channel be closed but not closing it', () => {
const wrapper = createWrapper(mockPaymentChannelClaimCloseDenied)
- expect(wrapper.find('[data-test="source"]')).toHaveText(
+ expect(wrapper.find('[data-testid="source"]')).toHaveText(
'sourcerH11fDGhbVH5NVXNXkGAMTmfWhUHjCtA3B:2647131528',
)
- expect(wrapper.find('[data-test="destination"]')).toHaveText(
+ expect(wrapper.find('[data-testid="destination"]')).toHaveText(
'destinationrK6g2UYc4GpQH8DYdPG7wywyQbxkJpQTTN',
)
- expect(wrapper.find('[data-test="claimed"]')).not.toExist()
- expect(wrapper.find('[data-test="amount"]')).toHaveText(
+ expect(wrapper.find('[data-testid="claimed"]')).not.toExist()
+ expect(wrapper.find('[data-testid="channel-amount"]')).toHaveText(
'channel amount\uE90010.00 XRP',
)
- expect(wrapper.find('[data-test="renew"]')).not.toExist()
- expect(wrapper.find('[data-test="close-request"]')).toHaveText(
+ expect(wrapper.find('[data-testid="renew"]')).not.toExist()
+ expect(wrapper.find('[data-testid="close-request"]')).toHaveText(
'close channel request',
)
- expect(wrapper.find('[data-test="closed"]')).not.toExist()
+ expect(wrapper.find('[data-testid="closed"]')).not.toExist()
wrapper.unmount()
})
it('renders tx with destination tag', () => {
const wrapper = createWrapper(mockPaymentChannelClaimWithDestinationTag)
- expect(wrapper.find('[data-test="source"]')).toHaveText(
+ expect(wrapper.find('[data-testid="source"]')).toHaveText(
'sourcerN7n7otQDd6FczFgLdSqtcsAUxDkw6fzRH',
)
- expect(wrapper.find('[data-test="destination"]')).toHaveText(
+ expect(wrapper.find('[data-testid="destination"]')).toHaveText(
'destinationrf1BiGeXwwQoi8Z2ueFYTEXSwuJYfV2Jpn:20170428',
)
- expect(wrapper.find('[data-test="claimed"]')).toHaveText(
+ expect(wrapper.find('[data-testid="claimed"]')).toHaveText(
'claimed\uE9001.00 XRP (\uE90099.00 XRP of \uE900100.00 XRP remaining)',
)
- expect(wrapper.find('[data-test="amount"]')).not.toExist()
- expect(wrapper.find('[data-test="renew"]')).not.toExist()
- expect(wrapper.find('[data-test="close-request"]')).not.toExist()
- expect(wrapper.find('[data-test="closed"]')).not.toExist()
+ expect(wrapper.find('[data-testid="channel-amount"]')).not.toExist()
+ expect(wrapper.find('[data-testid="renew"]')).not.toExist()
+ expect(wrapper.find('[data-testid="close-request"]')).not.toExist()
+ expect(wrapper.find('[data-testid="closed"]')).not.toExist()
wrapper.unmount()
})
})
diff --git a/src/containers/shared/components/Transaction/PaymentChannelCreate/Description.tsx b/src/containers/shared/components/Transaction/PaymentChannelCreate/Description.tsx
index 813389254..1880c1c5e 100644
--- a/src/containers/shared/components/Transaction/PaymentChannelCreate/Description.tsx
+++ b/src/containers/shared/components/Transaction/PaymentChannelCreate/Description.tsx
@@ -22,26 +22,26 @@ export const Description = ({
return (
<>
-
+
{`${t('the_account')} `}
{` ${t('create_payment_channel')} `}
{node && (
-
+
{t('the_channel_id_is')}
{node.LedgerIndex}
)}
-
+
{t('the_channel_amount_is')}{' '}
{tx.SettleDelay && (
-
+
{t('channel_settle_delay')}{' '}
{localizeNumber(tx.SettleDelay, language)} {t('seconds')}
@@ -49,7 +49,7 @@ export const Description = ({
)}
{tx.CancelAfter && (
-
+
{t('describe_cancel_after')}
{` ${cancelAfter} ${DATE_OPTIONS.timeZone}`}
diff --git a/src/containers/shared/components/Transaction/PaymentChannelCreate/Simple.tsx b/src/containers/shared/components/Transaction/PaymentChannelCreate/Simple.tsx
index f4fd4949c..ab3a8717f 100644
--- a/src/containers/shared/components/Transaction/PaymentChannelCreate/Simple.tsx
+++ b/src/containers/shared/components/Transaction/PaymentChannelCreate/Simple.tsx
@@ -18,22 +18,22 @@ export const Simple = ({
return (
<>
-
+
-
+
-
+
{delay && (
-
+
{localizeNumber(delay, language)} {t('seconds_short')}
)}
{cancelAfter && (
-
+
{localizeDate(new Date(cancelAfter), language, DATE_OPTIONS)}{' '}
{DATE_OPTIONS.timeZone}
diff --git a/src/containers/shared/components/Transaction/PaymentChannelCreate/TableDetail.tsx b/src/containers/shared/components/Transaction/PaymentChannelCreate/TableDetail.tsx
index f94fc73f9..bca200507 100644
--- a/src/containers/shared/components/Transaction/PaymentChannelCreate/TableDetail.tsx
+++ b/src/containers/shared/components/Transaction/PaymentChannelCreate/TableDetail.tsx
@@ -12,15 +12,15 @@ export const TableDetail = ({
return (
-
+
-
+
-
+
diff --git a/src/containers/shared/components/Transaction/PaymentChannelCreate/test/PaymentChannelCreateDescription.test.tsx b/src/containers/shared/components/Transaction/PaymentChannelCreate/test/PaymentChannelCreateDescription.test.tsx
index 0142fd73f..bba8fc3b9 100644
--- a/src/containers/shared/components/Transaction/PaymentChannelCreate/test/PaymentChannelCreateDescription.test.tsx
+++ b/src/containers/shared/components/Transaction/PaymentChannelCreate/test/PaymentChannelCreateDescription.test.tsx
@@ -11,53 +11,53 @@ const createWrapper = createDescriptionWrapperFactory(Description, i18n)
describe('PaymentChannelCreate: Description', () => {
it('renders', () => {
const wrapper = createWrapper(mockPaymentChannelCreate)
- expect(wrapper.find('[data-test="accounts-line"]')).toHaveText(
+ expect(wrapper.find('[data-testid="accounts-line"]')).toHaveText(
`The account rJnQrhRTXutuSwtrwxYiTkHn4Dtp8sF2LM:2460331042 will create a payment channel to rUXYat4hW2M87gHoqKK7fC4cqrT9C6V7d7`,
)
- expect(wrapper.find('[data-test="channel-line"]')).toHaveText(
+ expect(wrapper.find('[data-testid="channel-line"]')).toHaveText(
`The channel ID is 15AB9EE9344C42C05164E6A1F2F08B35F35D7B9D66CCB9697452B0995C8F8242`,
)
- expect(wrapper.find('[data-test="amount-line"]')).toHaveText(
+ expect(wrapper.find('[data-testid="amount-line"]')).toHaveText(
`The channel amount is \uE9001.00 XRP`,
)
- expect(wrapper.find('[data-test="delay-line"]')).toHaveText(
+ expect(wrapper.find('[data-testid="delay-line"]')).toHaveText(
`The channel has a settlement delay of 3,600 seconds`,
)
- expect(wrapper.find('[data-test="cancel-line"]')).not.toExist()
+ expect(wrapper.find('[data-testid="cancel-line"]')).not.toExist()
wrapper.unmount()
})
it('renders failed tx', () => {
const wrapper = createWrapper(mockPaymentChannelCreateFailed)
- expect(wrapper.find('[data-test="accounts-line"]')).toHaveText(
+ expect(wrapper.find('[data-testid="accounts-line"]')).toHaveText(
`The account rMphibGfHpLDU4DzVCspzLYVuMNpmzN6n8:2810223114 will create a payment channel to rK6g2UYc4GpQH8DYdPG7wywyQbxkJpQTTN`,
)
- expect(wrapper.find('[data-test="channel-line"]')).not.toExist()
- expect(wrapper.find('[data-test="amount-line"]')).toHaveText(
+ expect(wrapper.find('[data-testid="channel-line"]')).not.toExist()
+ expect(wrapper.find('[data-testid="amount-line"]')).toHaveText(
`The channel amount is \uE90010.00 XRP`,
)
- expect(wrapper.find('[data-test="delay-line"]')).toHaveText(
+ expect(wrapper.find('[data-testid="delay-line"]')).toHaveText(
`The channel has a settlement delay of 3,600 seconds`,
)
- expect(wrapper.find('[data-test="cancel-line"]')).not.toExist()
+ expect(wrapper.find('[data-testid="cancel-line"]')).not.toExist()
wrapper.unmount()
})
it('renders tx with destination tag', () => {
const wrapper = createWrapper(mockPaymentChannelCreateWithDestinationTag)
- expect(wrapper.find('[data-test="accounts-line"]')).toHaveText(
+ expect(wrapper.find('[data-testid="accounts-line"]')).toHaveText(
`The account rN7n7otQDd6FczFgLdSqtcsAUxDkw6fzRH will create a payment channel to rf1BiGeXwwQoi8Z2ueFYTEXSwuJYfV2Jpn:20170428`,
)
- expect(wrapper.find('[data-test="channel-line"]')).toHaveText(
+ expect(wrapper.find('[data-testid="channel-line"]')).toHaveText(
`The channel ID is 5DB01B7FFED6B67E6B0414DED11E051D2EE2B7619CE0EAA6286D67A3A4D5BDB3`,
)
- expect(wrapper.find('[data-test="amount-line"]')).toHaveText(
+ expect(wrapper.find('[data-testid="amount-line"]')).toHaveText(
`The channel amount is \uE900100.00 XRP`,
)
- expect(wrapper.find('[data-test="delay-line"]')).toHaveText(
+ expect(wrapper.find('[data-testid="delay-line"]')).toHaveText(
`The channel has a settlement delay of 86,400 seconds`,
)
- expect(wrapper.find('[data-test="cancel-line"]')).not.toExist()
+ expect(wrapper.find('[data-testid="cancel-line"]')).not.toExist()
wrapper.unmount()
})
})
diff --git a/src/containers/shared/components/Transaction/PaymentChannelCreate/test/PaymentChannelCreateTableDetail.test.tsx b/src/containers/shared/components/Transaction/PaymentChannelCreate/test/PaymentChannelCreateTableDetail.test.tsx
index 5a32bf7f1..bef431ba4 100644
--- a/src/containers/shared/components/Transaction/PaymentChannelCreate/test/PaymentChannelCreateTableDetail.test.tsx
+++ b/src/containers/shared/components/Transaction/PaymentChannelCreate/test/PaymentChannelCreateTableDetail.test.tsx
@@ -11,42 +11,38 @@ const createWrapper = createTableDetailWrapperFactory(TableDetail, i18n)
describe('PaymentChannelCreate: TableDetail', () => {
it('renders', () => {
const wrapper = createWrapper(mockPaymentChannelCreate)
- expect(wrapper.find('[data-test="source"]')).toHaveText(
+ expect(wrapper.find('[data-testid="source"]')).toHaveText(
'sourcerJnQrhRTXutuSwtrwxYiTkHn4Dtp8sF2LM:2460331042',
)
- expect(wrapper.find('[data-test="destination"]')).toHaveText(
+ expect(wrapper.find('[data-testid="destination"]')).toHaveText(
'destinationrUXYat4hW2M87gHoqKK7fC4cqrT9C6V7d7',
)
- expect(wrapper.find('[data-test="amount"]')).toHaveText(
- 'channel amount\uE9001.00 XRP',
- )
+ expect(wrapper.find('[data-testid="amount"]')).toHaveText('\uE9001.00 XRP')
wrapper.unmount()
})
it('renders failed tx', () => {
const wrapper = createWrapper(mockPaymentChannelCreateFailed)
- expect(wrapper.find('[data-test="source"]')).toHaveText(
+ expect(wrapper.find('[data-testid="source"]')).toHaveText(
'sourcerMphibGfHpLDU4DzVCspzLYVuMNpmzN6n8:2810223114',
)
- expect(wrapper.find('[data-test="destination"]')).toHaveText(
+ expect(wrapper.find('[data-testid="destination"]')).toHaveText(
'destinationrK6g2UYc4GpQH8DYdPG7wywyQbxkJpQTTN',
)
- expect(wrapper.find('[data-test="amount"]')).toHaveText(
- 'channel amount\uE90010.00 XRP',
- )
+ expect(wrapper.find('[data-testid="amount"]')).toHaveText('\uE90010.00 XRP')
wrapper.unmount()
})
it('renders tx with destination tag', () => {
const wrapper = createWrapper(mockPaymentChannelCreateWithDestinationTag)
- expect(wrapper.find('[data-test="source"]')).toHaveText(
+ expect(wrapper.find('[data-testid="source"]')).toHaveText(
'sourcerN7n7otQDd6FczFgLdSqtcsAUxDkw6fzRH',
)
- expect(wrapper.find('[data-test="destination"]')).toHaveText(
+ expect(wrapper.find('[data-testid="destination"]')).toHaveText(
'destinationrf1BiGeXwwQoi8Z2ueFYTEXSwuJYfV2Jpn:20170428',
)
- expect(wrapper.find('[data-test="amount"]')).toHaveText(
- 'channel amount\uE900100.00 XRP',
+ expect(wrapper.find('[data-testid="amount"]')).toHaveText(
+ '\uE900100.00 XRP',
)
wrapper.unmount()
})
diff --git a/src/containers/shared/components/Transaction/PaymentChannelFund/Description.tsx b/src/containers/shared/components/Transaction/PaymentChannelFund/Description.tsx
index 6a3fbb5c6..8e9d7c9d1 100644
--- a/src/containers/shared/components/Transaction/PaymentChannelFund/Description.tsx
+++ b/src/containers/shared/components/Transaction/PaymentChannelFund/Description.tsx
@@ -12,12 +12,12 @@ export const Description = ({
return (
<>
-
+
{t('update_payment_channel')}{' '}
{data.tx.Channel}
{data.tx.Amount && (
-
+
{t('increase_channel_amount_by')}{' '}
diff --git a/src/containers/shared/components/Transaction/PaymentChannelFund/Simple.tsx b/src/containers/shared/components/Transaction/PaymentChannelFund/Simple.tsx
index 31edafd4e..a1111c43c 100644
--- a/src/containers/shared/components/Transaction/PaymentChannelFund/Simple.tsx
+++ b/src/containers/shared/components/Transaction/PaymentChannelFund/Simple.tsx
@@ -21,27 +21,27 @@ export const Simple = ({
return (
<>
{increase && (
-
+
)}
{channelAmount && (
-
+
)}
{totalClaimed && (
-
+
)}
{source && (
-
+
)}
{destination && (
-
+
)}
diff --git a/src/containers/shared/components/Transaction/PaymentChannelFund/test/PaymentChannelFundDescription.test.tsx b/src/containers/shared/components/Transaction/PaymentChannelFund/test/PaymentChannelFundDescription.test.tsx
index 9139a1935..ae1fdc448 100644
--- a/src/containers/shared/components/Transaction/PaymentChannelFund/test/PaymentChannelFundDescription.test.tsx
+++ b/src/containers/shared/components/Transaction/PaymentChannelFund/test/PaymentChannelFundDescription.test.tsx
@@ -10,10 +10,10 @@ const createWrapper = createDescriptionWrapperFactory(Description, i18n)
describe('PaymentChannelFund: Description', () => {
it('renders a Fund', () => {
const wrapper = createWrapper(mockPaymentChannelFund)
- expect(wrapper.find('[data-test="channel-line"]')).toHaveText(
+ expect(wrapper.find('[data-testid="channel-line"]')).toHaveText(
`It will update the payment channel 4BEAC9E4C10674AB698EAC0F2D78A4FF507428370578A59B04883E7EB8D82260`,
)
- expect(wrapper.find('[data-test="amount-line"]')).toHaveText(
+ expect(wrapper.find('[data-testid="amount-line"]')).toHaveText(
`It will increase the channel amount by \uE9001.00 XRP from \uE90074.00 XRP to \uE90075.00 XRP`,
)
wrapper.unmount()
@@ -21,10 +21,10 @@ describe('PaymentChannelFund: Description', () => {
it('renders failed tx', () => {
const wrapper = createWrapper(mockPaymentChannelFundFailed)
- expect(wrapper.find('[data-test="channel-line"]')).toHaveText(
+ expect(wrapper.find('[data-testid="channel-line"]')).toHaveText(
`It will update the payment channel 933F93F7113A2F94B7838D64D0D2A244C57EFD6411C16FFF5FA293D200EF5876`,
)
- expect(wrapper.find('[data-test="amount-line"]')).toHaveText(
+ expect(wrapper.find('[data-testid="amount-line"]')).toHaveText(
`It will increase the channel amount by \uE90020.00 XRP`,
)
wrapper.unmount()
diff --git a/src/containers/shared/components/Transaction/PaymentChannelFund/test/PaymentChannelFundSimple.test.tsx b/src/containers/shared/components/Transaction/PaymentChannelFund/test/PaymentChannelFundSimple.test.tsx
index 743ca5a69..a9b884ad6 100644
--- a/src/containers/shared/components/Transaction/PaymentChannelFund/test/PaymentChannelFundSimple.test.tsx
+++ b/src/containers/shared/components/Transaction/PaymentChannelFund/test/PaymentChannelFundSimple.test.tsx
@@ -17,8 +17,8 @@ describe('PaymentChannelFund: Simple', () => {
const wrapper = createWrapper(mockPaymentChannelFund)
expectSimpleRowLabel(wrapper, 'increase', 'channel amount increase')
expectSimpleRowText(wrapper, 'increase', '+\uE9001.00 XRP')
- expectSimpleRowLabel(wrapper, 'amount', 'channel amount')
- expectSimpleRowText(wrapper, 'amount', '\uE90075.00 XRP')
+ expectSimpleRowLabel(wrapper, 'channel-amount', 'channel amount')
+ expectSimpleRowText(wrapper, 'channel-amount', '\uE90075.00 XRP')
expectSimpleRowLabel(wrapper, 'total', 'total claimed')
expectSimpleRowText(wrapper, 'total', '\uE90061.859345 XRP')
expectSimpleRowLabel(wrapper, 'source', 'source')
@@ -46,7 +46,7 @@ describe('PaymentChannelFund: Simple', () => {
const wrapper = createWrapper(mockPaymentChannelFundFailed)
expectSimpleRowLabel(wrapper, 'increase', 'channel amount increase')
expectSimpleRowText(wrapper, 'increase', '+\uE90020.00 XRP')
- expectSimpleRowNotToExist(wrapper, 'amount')
+ expectSimpleRowNotToExist(wrapper, 'channel-amount')
expectSimpleRowNotToExist(wrapper, 'total')
expectSimpleRowNotToExist(wrapper, 'source')
expectSimpleRowNotToExist(wrapper, 'destination')
diff --git a/src/containers/shared/components/Transaction/SetFee/Description.tsx b/src/containers/shared/components/Transaction/SetFee/Description.tsx
index 874cb16d7..3f496771c 100644
--- a/src/containers/shared/components/Transaction/SetFee/Description.tsx
+++ b/src/containers/shared/components/Transaction/SetFee/Description.tsx
@@ -8,7 +8,7 @@ export const Description = ({ data }: TransactionDescriptionProps) => {
return (
<>
-
+
{
}}
/>
-
+
{
/>
-
+
Fees]}
diff --git a/src/containers/shared/components/Transaction/SetFee/Simple.tsx b/src/containers/shared/components/Transaction/SetFee/Simple.tsx
index 207ad1c3d..f1be9f246 100644
--- a/src/containers/shared/components/Transaction/SetFee/Simple.tsx
+++ b/src/containers/shared/components/Transaction/SetFee/Simple.tsx
@@ -12,15 +12,15 @@ export const Simple = ({
return (
<>
-
+
-
+
diff --git a/src/containers/shared/components/Transaction/SetFee/test/SetFeeDescription.test.tsx b/src/containers/shared/components/Transaction/SetFee/test/SetFeeDescription.test.tsx
index 6ccbff053..db2c1c14b 100644
--- a/src/containers/shared/components/Transaction/SetFee/test/SetFeeDescription.test.tsx
+++ b/src/containers/shared/components/Transaction/SetFee/test/SetFeeDescription.test.tsx
@@ -11,13 +11,13 @@ const createWrapper = createDescriptionWrapperFactory(
)
function testDescription(wrapper) {
- expect(wrapper.find('[data-test="fees-line"]')).toHaveText(
+ expect(wrapper.find('[data-testid="fees-line"]')).toHaveText(
`Future transactions will require a minimum fee of \uE9000.00001 XRP.`,
)
- expect(wrapper.find('[data-test="reserves-line"]')).toHaveText(
+ expect(wrapper.find('[data-testid="reserves-line"]')).toHaveText(
`Accounts must now hold a base of \uE90010.00 XRP and an additional \uE9002.00 XRP for each additional object that account owns.`,
)
- expect(wrapper.find('[data-test="documentation-line"]')).toHaveText(
+ expect(wrapper.find('[data-testid="documentation-line"]')).toHaveText(
`Visit the docs: Fees`,
)
}
diff --git a/src/containers/shared/components/Transaction/SetHook/Simple.tsx b/src/containers/shared/components/Transaction/SetHook/Simple.tsx
index 0e69821f8..b4c38dfe1 100644
--- a/src/containers/shared/components/Transaction/SetHook/Simple.tsx
+++ b/src/containers/shared/components/Transaction/SetHook/Simple.tsx
@@ -15,17 +15,17 @@ export const Simple = ({
const renderHook = (hook: HookData) => (
-
+
{hook.HookHash ?? 'undefined'}
{hook.HookOn && (
-
+
{/* // TODO: use the transaction badges here instead of just text */}
{hookOnToTxList(hook.HookOn)?.join(', ') ?? None}
)}
{hook.HookGrants && (
-
+
{hook.HookGrants.map((hookGrant) => {
const grant = hookGrant.HookGrant
return (
@@ -38,17 +38,17 @@ export const Simple = ({
)}
{hook.HookNamespace && (
-
+
{hook.HookNamespace}
)}
{hook.Flags && (
-
+
{buildHookFlags(hook.Flags).join(', ')}
)}
{hook.HookApiVersion != null && (
-
+
{hook.HookApiVersion}
)}
diff --git a/src/containers/shared/components/Transaction/SignerListSet/Simple.tsx b/src/containers/shared/components/Transaction/SignerListSet/Simple.tsx
index d91afe70b..eeab19230 100644
--- a/src/containers/shared/components/Transaction/SignerListSet/Simple.tsx
+++ b/src/containers/shared/components/Transaction/SignerListSet/Simple.tsx
@@ -12,7 +12,7 @@ export const Simple = ({
return signers?.length ? (
<>
-
+
{signers.map((d) => (
-
@@ -23,7 +23,7 @@ export const Simple = ({
))}
-
+
{quorum}
{t('out_of')}
{maxSigners}
diff --git a/src/containers/shared/components/Transaction/SignerListSet/test/SignerListSetSimple.test.tsx b/src/containers/shared/components/Transaction/SignerListSet/test/SignerListSetSimple.test.tsx
index 46b434de8..4330dc059 100644
--- a/src/containers/shared/components/Transaction/SignerListSet/test/SignerListSetSimple.test.tsx
+++ b/src/containers/shared/components/Transaction/SignerListSet/test/SignerListSetSimple.test.tsx
@@ -10,11 +10,11 @@ describe('SignerListSet: Simple', () => {
it('renders', () => {
const wrapper = createWrapper(mockSignerListSet)
- expect(wrapper.find('[data-test="quorum"] .value').text()).toEqual(
+ expect(wrapper.find('[data-testid="quorum"] .value').text()).toEqual(
'3 out_of 4',
)
- const signers = wrapper.find('[data-test="signers"] .value li')
+ const signers = wrapper.find('[data-testid="signers"] .value li')
expect(signers.at(0)).toHaveText(
'rK8MWkYVgHR6VmPH6WpWcvVce9evvMpKSv weight: 2',
)
diff --git a/src/containers/shared/components/Transaction/SimpleGroup.tsx b/src/containers/shared/components/Transaction/SimpleGroup.tsx
index 7fc0a40a3..76d443c8a 100644
--- a/src/containers/shared/components/Transaction/SimpleGroup.tsx
+++ b/src/containers/shared/components/Transaction/SimpleGroup.tsx
@@ -4,7 +4,7 @@ export type SimpleGroupProps = React.PropsWithChildren<{
}>
export const SimpleGroup = ({ children, title }: SimpleGroupProps) => (
-
+
{title &&
{title}
}
{children}
diff --git a/src/containers/shared/components/Transaction/TicketCreate/Simple.tsx b/src/containers/shared/components/Transaction/TicketCreate/Simple.tsx
index f84766083..dd9d502ba 100644
--- a/src/containers/shared/components/Transaction/TicketCreate/Simple.tsx
+++ b/src/containers/shared/components/Transaction/TicketCreate/Simple.tsx
@@ -11,7 +11,7 @@ const Simple: TransactionSimpleComponent = (
const { TicketCount } = data.instructions
return (
-
+
{TicketCount}
)
diff --git a/src/containers/shared/components/Transaction/TrustSet/Simple.tsx b/src/containers/shared/components/Transaction/TrustSet/Simple.tsx
index 4f7fa0015..af9b743d4 100644
--- a/src/containers/shared/components/Transaction/TrustSet/Simple.tsx
+++ b/src/containers/shared/components/Transaction/TrustSet/Simple.tsx
@@ -10,7 +10,7 @@ export const Simple = ({ data }: TransactionSimpleProps) => {
const { LimitAmount } = data.instructions
return (
-
+
)
diff --git a/src/containers/shared/components/Transaction/UNLModify/Simple.tsx b/src/containers/shared/components/Transaction/UNLModify/Simple.tsx
index 57629787d..86e9680bf 100644
--- a/src/containers/shared/components/Transaction/UNLModify/Simple.tsx
+++ b/src/containers/shared/components/Transaction/UNLModify/Simple.tsx
@@ -16,12 +16,12 @@ export const Simple = ({ data }: TransactionSimpleProps) => {
return (
<>
-
+
{encoded}
-
+
{tx.UNLModifyDisabling ? 'DISABLE' : 'ENABLE'}
>
diff --git a/src/containers/shared/components/Transaction/UNLModify/test/UNLModifySimple.test.tsx b/src/containers/shared/components/Transaction/UNLModify/test/UNLModifySimple.test.tsx
index 89cab8f69..6a17eaffb 100644
--- a/src/containers/shared/components/Transaction/UNLModify/test/UNLModifySimple.test.tsx
+++ b/src/containers/shared/components/Transaction/UNLModify/test/UNLModifySimple.test.tsx
@@ -51,7 +51,7 @@ describe('UNLModify: Simple', () => {
/>
,
)
- expect(wrapper.find('[data-test="account"]')).not.toExist()
+ expect(wrapper.find('[data-testid="account"]')).not.toExist()
expectSimpleRowLabel(wrapper, 'sequence', 'Sequence Number')
expectSimpleRowText(wrapper, 'sequence', '0')
diff --git a/src/containers/shared/components/Transaction/XChainAccountCreateCommit/Simple.tsx b/src/containers/shared/components/Transaction/XChainAccountCreateCommit/Simple.tsx
index 2d7edc199..b9dfdd898 100644
--- a/src/containers/shared/components/Transaction/XChainAccountCreateCommit/Simple.tsx
+++ b/src/containers/shared/components/Transaction/XChainAccountCreateCommit/Simple.tsx
@@ -25,7 +25,7 @@ export const Simple: TransactionSimpleComponent = (
return (
<>
-
+
-
+
>
diff --git a/src/containers/shared/components/Transaction/XChainAccountCreateCommit/test/XChainAccountCreateCommitSimple.test.tsx b/src/containers/shared/components/Transaction/XChainAccountCreateCommit/test/XChainAccountCreateCommitSimple.test.tsx
index 93fe0f163..f21484912 100644
--- a/src/containers/shared/components/Transaction/XChainAccountCreateCommit/test/XChainAccountCreateCommitSimple.test.tsx
+++ b/src/containers/shared/components/Transaction/XChainAccountCreateCommit/test/XChainAccountCreateCommitSimple.test.tsx
@@ -16,14 +16,14 @@ describe('XChainAccountCreateCommitSimple', () => {
'locking-chain-door',
'rGQLcxzT3Po9PsCk5Lj9uK7S1juThii9cR',
)
- expect(wrapper.find(`[data-test="locking-chain-door"] a`)).toExist()
+ expect(wrapper.find(`[data-testid="locking-chain-door"] a`)).toExist()
expectSimpleRowText(wrapper, 'locking-chain-issue', '\uE900 XRP')
expectSimpleRowText(
wrapper,
'issuing-chain-door',
'rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh',
)
- expect(wrapper.find(`[data-test="issuing-chain-door"] a`)).not.toExist()
+ expect(wrapper.find(`[data-testid="issuing-chain-door"] a`)).not.toExist()
expectSimpleRowText(wrapper, 'issuing-chain-issue', '\uE900 XRP')
expectSimpleRowText(wrapper, 'send', '\uE90010.00 XRP')
@@ -32,7 +32,7 @@ describe('XChainAccountCreateCommitSimple', () => {
'destination',
'raFcdz1g8LWJDJWJE2ZKLRGdmUmsTyxaym',
)
- expect(wrapper.find(`[data-test="destination"] a`)).not.toExist()
+ expect(wrapper.find(`[data-testid="destination"] a`)).not.toExist()
})
it('renders failed transaction', () => {
@@ -46,14 +46,14 @@ describe('XChainAccountCreateCommitSimple', () => {
'locking-chain-door',
'rGQLcxzT3Po9PsCk5Lj9uK7S1juThii9cR',
)
- expect(wrapper.find(`[data-test="locking-chain-door"] a`)).not.toExist()
+ expect(wrapper.find(`[data-testid="locking-chain-door"] a`)).not.toExist()
expectSimpleRowText(wrapper, 'locking-chain-issue', '\uE900 XRP')
expectSimpleRowText(
wrapper,
'issuing-chain-door',
'rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh',
)
- expect(wrapper.find(`[data-test="issuing-chain-door"] a`)).not.toExist()
+ expect(wrapper.find(`[data-testid="issuing-chain-door"] a`)).not.toExist()
expectSimpleRowText(wrapper, 'issuing-chain-issue', '\uE900 XRP')
expectSimpleRowText(wrapper, 'send', '\uE9001,000.00 XRP')
@@ -62,6 +62,6 @@ describe('XChainAccountCreateCommitSimple', () => {
'destination',
'raFcdz1g8LWJDJWJE2ZKLRGdmUmsTyxaym',
)
- expect(wrapper.find(`[data-test="destination"] a`)).not.toExist()
+ expect(wrapper.find(`[data-testid="destination"] a`)).not.toExist()
})
})
diff --git a/src/containers/shared/components/Transaction/XChainAddAccountCreateAttestation/Simple.tsx b/src/containers/shared/components/Transaction/XChainAddAccountCreateAttestation/Simple.tsx
index 153c46410..75dcf96c3 100644
--- a/src/containers/shared/components/Transaction/XChainAddAccountCreateAttestation/Simple.tsx
+++ b/src/containers/shared/components/Transaction/XChainAddAccountCreateAttestation/Simple.tsx
@@ -32,13 +32,16 @@ export const Simple: TransactionSimpleComponent = (
issuingIssue={issuingIssue}
bridgeOwner=""
/>
-
+
-
+
-
+
>
diff --git a/src/containers/shared/components/Transaction/XChainAddAccountCreateAttestation/test/XChainAddAccountCreateAttestationSimple.test.tsx b/src/containers/shared/components/Transaction/XChainAddAccountCreateAttestation/test/XChainAddAccountCreateAttestationSimple.test.tsx
index bd638d445..eb6bbca43 100644
--- a/src/containers/shared/components/Transaction/XChainAddAccountCreateAttestation/test/XChainAddAccountCreateAttestationSimple.test.tsx
+++ b/src/containers/shared/components/Transaction/XChainAddAccountCreateAttestation/test/XChainAddAccountCreateAttestationSimple.test.tsx
@@ -16,14 +16,14 @@ describe('XChainAddAccountCreateAttestationSimple', () => {
'locking-chain-door',
'rDPwN6dz3shffxodeUC9Qf5y1mEHYySKLJ',
)
- expect(wrapper.find(`[data-test="locking-chain-door"] a`)).not.toExist()
+ expect(wrapper.find(`[data-testid="locking-chain-door"] a`)).not.toExist()
expectSimpleRowText(wrapper, 'locking-chain-issue', '\uE900 XRP')
expectSimpleRowText(
wrapper,
'issuing-chain-door',
'rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh',
)
- expect(wrapper.find(`[data-test="issuing-chain-door"] a`)).not.toExist()
+ expect(wrapper.find(`[data-testid="issuing-chain-door"] a`)).not.toExist()
expectSimpleRowText(wrapper, 'issuing-chain-issue', '\uE900 XRP')
expectSimpleRowText(wrapper, 'send', '\uE90010.00 XRP')
@@ -37,7 +37,7 @@ describe('XChainAddAccountCreateAttestationSimple', () => {
'destination',
'rLbKhMNskUBYRShdbbQcFm9YhumEeUJfPK',
)
- expect(wrapper.find(`[data-test="destination"] a`)).toExist()
+ expect(wrapper.find(`[data-testid="destination"] a`)).toExist()
})
it('renders failed transaction', () => {
@@ -49,14 +49,14 @@ describe('XChainAddAccountCreateAttestationSimple', () => {
'locking-chain-door',
'rNFrsx478pH42Vy5w4KN9Hcyh8SDrVmCfd',
)
- expect(wrapper.find(`[data-test="locking-chain-door"] a`)).not.toExist()
+ expect(wrapper.find(`[data-testid="locking-chain-door"] a`)).not.toExist()
expectSimpleRowText(wrapper, 'locking-chain-issue', '\uE900 XRP')
expectSimpleRowText(
wrapper,
'issuing-chain-door',
'rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh',
)
- expect(wrapper.find(`[data-test="issuing-chain-door"] a`)).not.toExist()
+ expect(wrapper.find(`[data-testid="issuing-chain-door"] a`)).not.toExist()
expectSimpleRowText(wrapper, 'issuing-chain-issue', '\uE900 XRP')
expectSimpleRowText(wrapper, 'send', '\uE90010.00 XRP')
@@ -70,6 +70,6 @@ describe('XChainAddAccountCreateAttestationSimple', () => {
'destination',
'rPy1F9bQ7dNn2T3QAFRM6dFz6ygHa3MDDi',
)
- expect(wrapper.find(`[data-test="destination"] a`)).toExist()
+ expect(wrapper.find(`[data-testid="destination"] a`)).toExist()
})
})
diff --git a/src/containers/shared/components/Transaction/XChainAddClaimAttestation/Simple.tsx b/src/containers/shared/components/Transaction/XChainAddClaimAttestation/Simple.tsx
index 4dd8cd196..79026c1ec 100644
--- a/src/containers/shared/components/Transaction/XChainAddClaimAttestation/Simple.tsx
+++ b/src/containers/shared/components/Transaction/XChainAddClaimAttestation/Simple.tsx
@@ -33,18 +33,21 @@ export const Simple: TransactionSimpleComponent = (
issuingIssue={issuingIssue}
bridgeOwner=""
/>
-
+
-
+
{destination && (
-
+
)}
-
+
{claimId}
>
diff --git a/src/containers/shared/components/Transaction/XChainAddClaimAttestation/test/XChainAddClaimAttestationSimple.test.tsx b/src/containers/shared/components/Transaction/XChainAddClaimAttestation/test/XChainAddClaimAttestationSimple.test.tsx
index 8a79dfea1..d86c3287f 100644
--- a/src/containers/shared/components/Transaction/XChainAddClaimAttestation/test/XChainAddClaimAttestationSimple.test.tsx
+++ b/src/containers/shared/components/Transaction/XChainAddClaimAttestation/test/XChainAddClaimAttestationSimple.test.tsx
@@ -16,14 +16,14 @@ describe('XChainAddClaimAttestationSimple', () => {
'locking-chain-door',
'r3ZsJYkBao2qiwUCvmjfgEUquKueLAwPxQ',
)
- expect(wrapper.find(`[data-test="locking-chain-door"] a`)).not.toExist()
+ expect(wrapper.find(`[data-testid="locking-chain-door"] a`)).not.toExist()
expectSimpleRowText(wrapper, 'locking-chain-issue', '\uE900 XRP')
expectSimpleRowText(
wrapper,
'issuing-chain-door',
'rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh',
)
- expect(wrapper.find(`[data-test="issuing-chain-door"] a`)).not.toExist()
+ expect(wrapper.find(`[data-testid="issuing-chain-door"] a`)).not.toExist()
expectSimpleRowText(wrapper, 'issuing-chain-issue', '\uE900 XRP')
expectSimpleRowText(wrapper, 'send', '\uE90010.00 XRP')
@@ -37,7 +37,7 @@ describe('XChainAddClaimAttestationSimple', () => {
'destination',
'rJdTJRJZ6GXCCRaamHJgEqVzB7Zy4557Pi',
)
- expect(wrapper.find(`[data-test="destination"] a`)).toExist()
+ expect(wrapper.find(`[data-testid="destination"] a`)).toExist()
expectSimpleRowText(wrapper, 'xchain-claim-id', '1')
})
@@ -50,14 +50,14 @@ describe('XChainAddClaimAttestationSimple', () => {
'locking-chain-door',
'rNFrsx478pH42Vy5w4KN9Hcyh8SDrVmCfd',
)
- expect(wrapper.find(`[data-test="locking-chain-door"] a`)).not.toExist()
+ expect(wrapper.find(`[data-testid="locking-chain-door"] a`)).not.toExist()
expectSimpleRowText(wrapper, 'locking-chain-issue', '\uE900 XRP')
expectSimpleRowText(
wrapper,
'issuing-chain-door',
'rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh',
)
- expect(wrapper.find(`[data-test="issuing-chain-door"] a`)).not.toExist()
+ expect(wrapper.find(`[data-testid="issuing-chain-door"] a`)).not.toExist()
expectSimpleRowText(wrapper, 'issuing-chain-issue', '\uE900 XRP')
expectSimpleRowText(wrapper, 'send', '\uE90010.00 XRP')
@@ -71,7 +71,7 @@ describe('XChainAddClaimAttestationSimple', () => {
'destination',
'rJdTJRJZ6GXCCRaamHJgEqVzB7Zy4557Pi',
)
- expect(wrapper.find(`[data-test="destination"] a`)).toExist()
+ expect(wrapper.find(`[data-testid="destination"] a`)).toExist()
expectSimpleRowText(wrapper, 'xchain-claim-id', '3')
})
})
diff --git a/src/containers/shared/components/Transaction/XChainBridge.tsx b/src/containers/shared/components/Transaction/XChainBridge.tsx
index ba587576a..9452d54bc 100644
--- a/src/containers/shared/components/Transaction/XChainBridge.tsx
+++ b/src/containers/shared/components/Transaction/XChainBridge.tsx
@@ -28,12 +28,15 @@ export const XChainBridge = (props: XChainBridgeProps) => {
return (
-
+
{
link={lockingDoor === bridgeOwner}
/>
-
+
{
/>
{signatureReward && (
-
+
)}
diff --git a/src/containers/shared/components/Transaction/XChainClaim/Simple.tsx b/src/containers/shared/components/Transaction/XChainClaim/Simple.tsx
index c055d57aa..05900b4f8 100644
--- a/src/containers/shared/components/Transaction/XChainClaim/Simple.tsx
+++ b/src/containers/shared/components/Transaction/XChainClaim/Simple.tsx
@@ -30,13 +30,13 @@ export const Simple: TransactionSimpleComponent = (
issuingIssue={issuingIssue}
bridgeOwner={bridgeOwner}
/>
-
+
{claimId}
-
+