+
{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..67754651d 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="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="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="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="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..f40968708 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..b31e4c8fe 100644
--- a/src/containers/shared/components/Transaction/PaymentChannelCreate/test/PaymentChannelCreateTableDetail.test.tsx
+++ b/src/containers/shared/components/Transaction/PaymentChannelCreate/test/PaymentChannelCreateTableDetail.test.tsx
@@ -11,13 +11,13 @@ 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(
+ expect(wrapper.find('[data-testid="amount"]')).toHaveText(
'channel amount\uE9001.00 XRP',
)
wrapper.unmount()
@@ -25,13 +25,13 @@ describe('PaymentChannelCreate: TableDetail', () => {
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(
+ expect(wrapper.find('[data-testid="amount"]')).toHaveText(
'channel amount\uE90010.00 XRP',
)
wrapper.unmount()
@@ -39,13 +39,13 @@ describe('PaymentChannelCreate: TableDetail', () => {
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(
+ expect(wrapper.find('[data-testid="amount"]')).toHaveText(
'channel amount\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..3cc50f12b 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/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 f3558c8ef..bdd03bbf9 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}
-
+
-
+
>
diff --git a/src/containers/shared/components/Transaction/XChainClaim/test/XChainClaimSimple.test.tsx b/src/containers/shared/components/Transaction/XChainClaim/test/XChainClaimSimple.test.tsx
index 62fed18d1..9147d645b 100644
--- a/src/containers/shared/components/Transaction/XChainClaim/test/XChainClaimSimple.test.tsx
+++ b/src/containers/shared/components/Transaction/XChainClaim/test/XChainClaimSimple.test.tsx
@@ -15,14 +15,14 @@ describe('XChainClaimSimple', () => {
'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`)).toExist()
+ expect(wrapper.find(`[data-testid="issuing-chain-door"] a`)).toExist()
expectSimpleRowText(wrapper, 'issuing-chain-issue', '\uE900 XRP')
expectSimpleRowText(wrapper, 'amount', '\uE90010.00 XRP')
@@ -43,14 +43,14 @@ describe('XChainClaimSimple', () => {
'locking-chain-door',
'rMAXACCrp3Y8PpswXcg3bKggHX76V3F8M4',
)
- 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, 'amount', '\uE9000.01 XRP')
diff --git a/src/containers/shared/components/Transaction/XChainCommit/Simple.tsx b/src/containers/shared/components/Transaction/XChainCommit/Simple.tsx
index a761a14b5..3371b6774 100644
--- a/src/containers/shared/components/Transaction/XChainCommit/Simple.tsx
+++ b/src/containers/shared/components/Transaction/XChainCommit/Simple.tsx
@@ -26,7 +26,7 @@ export const Simple: TransactionSimpleComponent = (
return (
<>
-
+
-
+
{xchainClaimId}
{otherChainDestination && (
-
+
)}
diff --git a/src/containers/shared/components/Transaction/XChainCommit/test/XChainCommitSimple.test.tsx b/src/containers/shared/components/Transaction/XChainCommit/test/XChainCommitSimple.test.tsx
index 6a7857113..c57575d6d 100644
--- a/src/containers/shared/components/Transaction/XChainCommit/test/XChainCommitSimple.test.tsx
+++ b/src/containers/shared/components/Transaction/XChainCommit/test/XChainCommitSimple.test.tsx
@@ -16,19 +16,19 @@ describe('XChainCommitSimple', () => {
'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')
expectSimpleRowText(wrapper, 'claim-id', '4')
- expect(wrapper.find(`[data-test="destination"]`)).not.toExist()
+ expect(wrapper.find(`[data-testid="destination"]`)).not.toExist()
})
it('renders failed tx', () => {
@@ -40,14 +40,14 @@ describe('XChainCommitSimple', () => {
'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', '\uE90010,000.00 XRP')
diff --git a/src/containers/shared/components/Transaction/XChainCreateBridge/Simple.tsx b/src/containers/shared/components/Transaction/XChainCreateBridge/Simple.tsx
index f4a1c2b25..4baa1a42b 100644
--- a/src/containers/shared/components/Transaction/XChainCreateBridge/Simple.tsx
+++ b/src/containers/shared/components/Transaction/XChainCreateBridge/Simple.tsx
@@ -35,7 +35,7 @@ export const Simple: TransactionSimpleComponent = (
{minAccountCreateAmount && (
diff --git a/src/containers/shared/components/Transaction/XChainCreateBridge/test/XChainCreateBridgeSimple.test.tsx b/src/containers/shared/components/Transaction/XChainCreateBridge/test/XChainCreateBridgeSimple.test.tsx
index dd53e4652..d7a837909 100644
--- a/src/containers/shared/components/Transaction/XChainCreateBridge/test/XChainCreateBridgeSimple.test.tsx
+++ b/src/containers/shared/components/Transaction/XChainCreateBridge/test/XChainCreateBridgeSimple.test.tsx
@@ -16,19 +16,19 @@ describe('XChainCreateBridgeSimple', () => {
'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`)).toExist()
+ expect(wrapper.find(`[data-testid="issuing-chain-door"] a`)).toExist()
expectSimpleRowText(wrapper, 'issuing-chain-issue', '\uE900 XRP')
expectSimpleRowText(wrapper, 'signature-reward', '\uE9000.0001 XRP')
expect(
- wrapper.find(`[data-test="min-create-account-amount"]`),
+ wrapper.find(`[data-testid="min-create-account-amount"]`),
).not.toExist()
})
@@ -41,7 +41,7 @@ describe('XChainCreateBridgeSimple', () => {
'locking-chain-door',
'ratAutb3katzezbXX3LsX4sk4vmvhNucac',
)
- 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',
@@ -52,7 +52,7 @@ describe('XChainCreateBridgeSimple', () => {
'issuing-chain-door',
'rBkRN2VHVWJVKqfnh1TovLkXo7vLP7oBcq',
)
- expect(wrapper.find(`[data-test="issuing-chain-door"] a`)).toExist()
+ expect(wrapper.find(`[data-testid="issuing-chain-door"] a`)).toExist()
expectSimpleRowText(
wrapper,
'issuing-chain-issue',
@@ -72,14 +72,14 @@ describe('XChainCreateBridgeSimple', () => {
'locking-chain-door',
'rNFrsx478pH42Vy5w4KN9Hcyh8SDrVmCfd',
)
- 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, 'signature-reward', '\uE9000.0001 XRP')
diff --git a/src/containers/shared/components/Transaction/XChainCreateClaimID/Simple.tsx b/src/containers/shared/components/Transaction/XChainCreateClaimID/Simple.tsx
index a36535c9a..997d42f0f 100644
--- a/src/containers/shared/components/Transaction/XChainCreateClaimID/Simple.tsx
+++ b/src/containers/shared/components/Transaction/XChainCreateClaimID/Simple.tsx
@@ -33,11 +33,14 @@ export const Simple: TransactionSimpleComponent = (
signatureReward={signatureReward}
bridgeOwner={bridgeOwner}
/>
-
+
{claimID && (
-
+
{claimID}
)}
diff --git a/src/containers/shared/components/Transaction/XChainCreateClaimID/test/XChainCreateClaimIDSimple.test.tsx b/src/containers/shared/components/Transaction/XChainCreateClaimID/test/XChainCreateClaimIDSimple.test.tsx
index 28030e097..ff6d62f6f 100644
--- a/src/containers/shared/components/Transaction/XChainCreateClaimID/test/XChainCreateClaimIDSimple.test.tsx
+++ b/src/containers/shared/components/Transaction/XChainCreateClaimID/test/XChainCreateClaimIDSimple.test.tsx
@@ -15,14 +15,14 @@ describe('XChainCreateClaimIDSimple', () => {
'locking-chain-door',
'rNe5NbD1hqCSZPz9KM5PHm5Bf8jjHfezPE',
)
- 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`)).toExist()
+ expect(wrapper.find(`[data-testid="issuing-chain-door"] a`)).toExist()
expectSimpleRowText(wrapper, 'issuing-chain-issue', '\uE900 XRP')
expectSimpleRowText(wrapper, 'signature-reward', '\uE9000.0001 XRP')
@@ -43,14 +43,14 @@ describe('XChainCreateClaimIDSimple', () => {
'locking-chain-door',
'r3rhWeE31Jt5sWmi4QiGLMZnY3ENgqw96W',
)
- 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',
'rhub8VRN55s94qWKDv6jmDy1pUykJzF3wq',
)
- 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, 'signature-reward', '\uE9000.0001 XRP')
@@ -59,6 +59,6 @@ describe('XChainCreateClaimIDSimple', () => {
'other-chain-source',
'r3rhWeE31Jt5sWmi4QiGLMZnY3ENgqw96W',
)
- expect(wrapper.find(`[data-test="claim-id"]`)).not.toExist()
+ expect(wrapper.find(`[data-testid="claim-id"]`)).not.toExist()
})
})
diff --git a/src/containers/shared/components/Transaction/XChainModifyBridge/Simple.tsx b/src/containers/shared/components/Transaction/XChainModifyBridge/Simple.tsx
index f4a1c2b25..4baa1a42b 100644
--- a/src/containers/shared/components/Transaction/XChainModifyBridge/Simple.tsx
+++ b/src/containers/shared/components/Transaction/XChainModifyBridge/Simple.tsx
@@ -35,7 +35,7 @@ export const Simple: TransactionSimpleComponent = (
{minAccountCreateAmount && (
diff --git a/src/containers/shared/components/Transaction/XChainModifyBridge/test/XChainModifyBridgeSimple.test.tsx b/src/containers/shared/components/Transaction/XChainModifyBridge/test/XChainModifyBridgeSimple.test.tsx
index 57bafb85b..215580a71 100644
--- a/src/containers/shared/components/Transaction/XChainModifyBridge/test/XChainModifyBridgeSimple.test.tsx
+++ b/src/containers/shared/components/Transaction/XChainModifyBridge/test/XChainModifyBridgeSimple.test.tsx
@@ -16,14 +16,14 @@ describe('XChainModifyBridgeSimple', () => {
'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`)).toExist()
+ expect(wrapper.find(`[data-testid="issuing-chain-door"] a`)).toExist()
expectSimpleRowText(wrapper, 'issuing-chain-issue', '\uE900 XRP')
expectSimpleRowText(wrapper, 'signature-reward', '\uE9000.01 XRP')
@@ -38,14 +38,14 @@ describe('XChainModifyBridgeSimple', () => {
'locking-chain-door',
'rnBnyot2gCJywLxLzfHQX2dUJqZ6oghUFp',
)
- 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(
@@ -64,14 +64,14 @@ describe('XChainModifyBridgeSimple', () => {
'locking-chain-door',
'r3rhWeE31Jt5sWmi4QiGLMZnY3ENgqw96W',
)
- 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`)).toExist()
+ expect(wrapper.find(`[data-testid="issuing-chain-door"] a`)).toExist()
expectSimpleRowText(wrapper, 'issuing-chain-issue', '\uE900 XRP')
expectSimpleRowText(wrapper, 'signature-reward', '\uE9000.0001 XRP')
diff --git a/src/containers/shared/components/Transaction/test/DefaultSimple.test.tsx b/src/containers/shared/components/Transaction/test/DefaultSimple.test.tsx
index df9eb1296..f80c0b5dc 100644
--- a/src/containers/shared/components/Transaction/test/DefaultSimple.test.tsx
+++ b/src/containers/shared/components/Transaction/test/DefaultSimple.test.tsx
@@ -22,7 +22,7 @@ describe('DefaultSimple', () => {
'Destination',
'rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh',
)
- expect(wrapper.find(`[data-test="Destination"] a`)).toExist()
+ expect(wrapper.find(`[data-testid="Destination"] a`)).toExist()
expectSimpleRowText(wrapper, 'Amount', '\uE9001.00 XRP')
expectSimpleRowText(wrapper, 'FinishAfter', '736447590')
wrapper.unmount()
@@ -30,27 +30,29 @@ describe('DefaultSimple', () => {
it('renders Simple for more complex transaction', () => {
const wrapper = createWrapper(SetHook)
- expect(wrapper.find(`[data-test="group"]`).length).toEqual(10)
- expect(wrapper.find(`[data-test="CreateCode"]`).length).toEqual(10)
- expect(wrapper.find(`[data-test="Flags"]`).length).toEqual(10)
- expect(wrapper.find(`[data-test="HookApiVersion"]`).length).toEqual(2)
- expect(wrapper.find(`[data-test="HookNamespace"]`).length).toEqual(2)
- expect(wrapper.find(`[data-test="HookOn"]`).length).toEqual(2)
+ expect(wrapper.find(`[data-testid="group"]`).length).toEqual(10)
+ expect(wrapper.find(`[data-testid="CreateCode"]`).length).toEqual(10)
+ expect(wrapper.find(`[data-testid="Flags"]`).length).toEqual(10)
+ expect(wrapper.find(`[data-testid="HookApiVersion"]`).length).toEqual(2)
+ expect(wrapper.find(`[data-testid="HookNamespace"]`).length).toEqual(2)
+ expect(wrapper.find(`[data-testid="HookOn"]`).length).toEqual(2)
- expect(wrapper.find(`[data-test="CreateCode"] .value`).at(0)).toHaveText(
+ expect(wrapper.find(`[data-testid="CreateCode"] .value`).at(0)).toHaveText(
'0061736D0100000001420960027F7F017F60037F7F7F017E60037F7F7E017E60027F7F017E60047F' +
'7F7F7F017E60017F017E6000017E60057F7F7F7F7F017E60097F7F7F7F7F7F7F7F7F017E02BC02' +
'1403656E76025F67000003656E760A6F74786E5F6669656C64000103656E760661636365707400' +
'0203656E7608726F6C6C6261636B000203656E760C686F6F6B5F6163636F756E...',
)
- expect(wrapper.find(`[data-test="Flags"] .value`).at(0)).toHaveText('1')
+ expect(wrapper.find(`[data-testid="Flags"] .value`).at(0)).toHaveText('1')
expect(
- wrapper.find(`[data-test="HookApiVersion"] .value`).at(0),
+ wrapper.find(`[data-testid="HookApiVersion"] .value`).at(0),
).toHaveText('0')
- expect(wrapper.find(`[data-test="HookNamespace"] .value`).at(0)).toHaveText(
+ expect(
+ wrapper.find(`[data-testid="HookNamespace"] .value`).at(0),
+ ).toHaveText(
'0000000000000000000000000000000000000000000000000000000000000000',
)
- expect(wrapper.find(`[data-test="HookOn"] .value`).at(0)).toHaveText(
+ expect(wrapper.find(`[data-testid="HookOn"] .value`).at(0)).toHaveText(
'FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF7FFFFFFFFFFFFFFFFFFBFFFFF',
)
@@ -59,38 +61,40 @@ describe('DefaultSimple', () => {
it('renders Simple for more complex transaction', () => {
const wrapper = createWrapper(SetHook2)
- expect(wrapper.find(`[data-test="group"]`).length).toEqual(1)
- expect(wrapper.find(`[data-test="CreateCode"]`).length).toEqual(1)
- expect(wrapper.find(`[data-test="Flags"]`).length).toEqual(1)
- expect(wrapper.find(`[data-test="HookApiVersion"]`).length).toEqual(1)
- expect(wrapper.find(`[data-test="HookNamespace"]`).length).toEqual(1)
- expect(wrapper.find(`[data-test="HookOn"]`).length).toEqual(1)
- expect(wrapper.find(`[data-test="HookParameters"]`).length).toEqual(1)
+ expect(wrapper.find(`[data-testid="group"]`).length).toEqual(1)
+ expect(wrapper.find(`[data-testid="CreateCode"]`).length).toEqual(1)
+ expect(wrapper.find(`[data-testid="Flags"]`).length).toEqual(1)
+ expect(wrapper.find(`[data-testid="HookApiVersion"]`).length).toEqual(1)
+ expect(wrapper.find(`[data-testid="HookNamespace"]`).length).toEqual(1)
+ expect(wrapper.find(`[data-testid="HookOn"]`).length).toEqual(1)
+ expect(wrapper.find(`[data-testid="HookParameters"]`).length).toEqual(1)
- expect(wrapper.find(`[data-test="CreateCode"] .value`).at(0)).toHaveText(
+ expect(wrapper.find(`[data-testid="CreateCode"] .value`).at(0)).toHaveText(
'0061736D01000000011C0460057F7F7F7F7F017E60037F7F7E017E60027F7F017F60017F017E0223' +
'0303656E76057472616365000003656E7606616363657074000103656E76025F6700020302010305' +
'030100020621057F0141B088040B7F0041A6080B7F004180080B7F0041B088040B7F004180080B07' +
'080104686F6F6B00030AC6800001C2800002017F017E230041106B220124...',
)
- expect(wrapper.find(`[data-test="Flags"] .value`).at(0)).toHaveText('1')
+ expect(wrapper.find(`[data-testid="Flags"] .value`).at(0)).toHaveText('1')
expect(
- wrapper.find(`[data-test="HookApiVersion"] .value`).at(0),
+ wrapper.find(`[data-testid="HookApiVersion"] .value`).at(0),
).toHaveText('0')
- expect(wrapper.find(`[data-test="HookNamespace"] .value`).at(0)).toHaveText(
+ expect(
+ wrapper.find(`[data-testid="HookNamespace"] .value`).at(0),
+ ).toHaveText(
'4FF9961269BF7630D32E15276569C94470174A5DA79FA567C0F62251AA9A36B9',
)
- expect(wrapper.find(`[data-test="HookOn"] .value`).at(0)).toHaveText(
+ expect(wrapper.find(`[data-testid="HookOn"] .value`).at(0)).toHaveText(
'FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF7FFFFFFFFFFFFFFFFFFBFFFFF',
)
expect(
wrapper.find(
- `[data-test="HookParameters"] .subgroup [data-test="HookParameterName"]`,
+ `[data-testid="HookParameters"] .subgroup [data-testid="HookParameterName"]`,
),
).toHaveText('HookParameterName: 6E616D6531')
expect(
wrapper.find(
- `[data-test="HookParameters"] .subgroup [data-test="HookParameterValue"]`,
+ `[data-testid="HookParameters"] .subgroup [data-testid="HookParameterValue"]`,
),
).toHaveText('HookParameterValue: 76616C756531')
@@ -104,7 +108,7 @@ describe('DefaultSimple', () => {
'AccountOther',
'rPTScb8m3wq6r3Ys93Ec5at7LYDmWrtndi',
)
- expect(wrapper.find(`[data-test="AccountOther"] a`)).toExist()
+ expect(wrapper.find(`[data-testid="AccountOther"] a`)).toExist()
expectSimpleRowText(
wrapper,
'Amount',
diff --git a/src/containers/shared/components/Transaction/test/expectations.ts b/src/containers/shared/components/Transaction/test/expectations.ts
index 87d47226b..01827b83e 100644
--- a/src/containers/shared/components/Transaction/test/expectations.ts
+++ b/src/containers/shared/components/Transaction/test/expectations.ts
@@ -1,7 +1,7 @@
import { ReactWrapper } from 'enzyme'
const getSelector = (selector: string) =>
- selector.indexOf('.') === 0 ? selector : `[data-test="${selector}"]`
+ selector.indexOf('.') === 0 ? selector : `[data-testid="${selector}"]`
export const expectSimpleRowLabel = (
wrapper: ReactWrapper>,