From c298efe6cb198b1347f944b3b2571e3c81250292 Mon Sep 17 00:00:00 2001 From: Razvan Tomegea Date: Thu, 4 Jul 2024 16:34:35 +0300 Subject: [PATCH] Update tests (#32) * Update tests * Updated password --- src/__mocks__/data/constants.ts | 2 +- .../data/testKeystoreWallet/account.json | 2 +- .../testKeystoreWallet/keystoreAccount.ts | 2 +- .../testKeystoreWallet/keystoreWalletNfts.ts | 100 +++++++++--------- .../keystoreWalletTokens.ts | 24 +++-- .../data/testPemWallet/pemWalletNfts.ts | 4 +- .../LoginHook/tests/LoginWithToken.e2e.ts | 2 +- ...actions.e2e.ts => SignTransactions.e2e.ts} | 2 +- .../SignMessageHook/tests/SignMessage.e2e.ts | 2 +- .../Send/tests/PrivateKeyCheckSend.e2e.ts | 4 +- .../helpers/tests/decodeMessage.test.ts | 4 +- .../testUtils/puppeteer/loginWithKeystore.ts | 25 ++--- 12 files changed, 88 insertions(+), 85 deletions(-) rename src/pages/Hook/SignHook/tests/{SingTransactions.e2e.ts => SignTransactions.e2e.ts} (84%) diff --git a/src/__mocks__/data/constants.ts b/src/__mocks__/data/constants.ts index 4c8c5152..4d34793b 100644 --- a/src/__mocks__/data/constants.ts +++ b/src/__mocks__/data/constants.ts @@ -3,4 +3,4 @@ export const WALLET_SOURCE_ORIGIN = 'https://localhost:3002'; export const MAIN_REFERRER = 'https://localhost:3001/'; export const DEFAULT_PAGE_LOAD_DELAY_MS = 1000; export const DEFAULT_DELAY_MS = 100; -export const DEFAULT_PASSWORD = 'P@ssw0rd123'; +export const DEFAULT_PASSWORD = 'Zxcv789)'; diff --git a/src/__mocks__/data/testKeystoreWallet/account.json b/src/__mocks__/data/testKeystoreWallet/account.json index 7e96441d..2efbc130 100644 --- a/src/__mocks__/data/testKeystoreWallet/account.json +++ b/src/__mocks__/data/testKeystoreWallet/account.json @@ -1 +1 @@ -{"version":4,"id":"a1bb46ff-102e-4a00-8122-3ff9908b85f8","address":"75cb87c24351a67b892f57dcec0eb2b2a07aafab2f1aab741a10fc61059f2fe8","bech32":"erd1wh9c0sjr2xn8hzf02lwwcr4jk2s84tat9ud2kaq6zr7xzpvl9l5q8awmex","crypto":{"ciphertext":"18d9bd1bb62add7c7077a721a61412ddb27fefabff1129866a28d4f0079100ed89b23ba6bf652355000ff2578e667f5c13416776857ca938d7e7b005248a9965","cipherparams":{"iv":"595827fb024b75120f758d05a54bf1d4"},"cipher":"aes-128-ctr","kdf":"scrypt","kdfparams":{"dklen":32,"salt":"f7c840869099fb8f2f0a3c3f6dcf3982ef8996edc8aeb696961f3d93bf78c9c3","n":4096,"r":8,"p":1},"mac":"c0bb428eb44092a812b5f32e5821beabb7a92d6c0c9f84109920955b1ddd56d0"}} \ No newline at end of file +{"version":4,"id":"b099dee4-dae9-45c0-8763-3e338fc3c4f6","kind":"mnemonic","crypto":{"ciphertext":"a766ef765c5b69becba2cbbb42f93098a935ad2e828dce8b4b15c9d4b030bfbaca79c93fe5645aba7dd8a8614798a10acef059ffb01a2af3d356bf8421fa324efea8b6738bd1b38562ca7ffe46d3e77155a10f6f9ebe9f91336790aea93c32dc0bab110446c20995a5e07bddaf13e44b8d27cfbd18038f11b94040fe3a92aa4545aba6a61b79bb6fc925c058a1414f","cipherparams":{"iv":"a822947894c67743944bbd94ca6ecc96"},"cipher":"aes-128-ctr","kdf":"scrypt","kdfparams":{"dklen":32,"salt":"76bbd4f7148471e0247a598bb297148e84fad4cc157fa79423db1146fb9e9f66","n":4096,"r":8,"p":1},"mac":"8874b66efaf6b04964779db2e4eba4fef9aef3afa0fdad71ac094f2c67b95b82"}} \ No newline at end of file diff --git a/src/__mocks__/data/testKeystoreWallet/keystoreAccount.ts b/src/__mocks__/data/testKeystoreWallet/keystoreAccount.ts index a38adac9..a0655561 100644 --- a/src/__mocks__/data/testKeystoreWallet/keystoreAccount.ts +++ b/src/__mocks__/data/testKeystoreWallet/keystoreAccount.ts @@ -1,5 +1,5 @@ export const keystoreAccount = { - address: 'erd1wh9c0sjr2xn8hzf02lwwcr4jk2s84tat9ud2kaq6zr7xzpvl9l5q8awmex', + address: 'erd1q4teee5c32dw6dk2wg5hgcr356u0vqlewqjlzhk3d3chtzm2mnvsdmhppa', balance: '31455422924671253900800', developerReward: '0', nonce: 2529, diff --git a/src/__mocks__/data/testKeystoreWallet/keystoreWalletNfts.ts b/src/__mocks__/data/testKeystoreWallet/keystoreWalletNfts.ts index 6953cff0..1fa6ab40 100644 --- a/src/__mocks__/data/testKeystoreWallet/keystoreWalletNfts.ts +++ b/src/__mocks__/data/testKeystoreWallet/keystoreWalletNfts.ts @@ -1,3 +1,5 @@ +import { keystoreAccount } from './keystoreAccount'; + export const keystoreWalletNfts = [ { identifier: 'CHRISTMAS-27d3e2-01', @@ -6,7 +8,7 @@ export const keystoreWalletNfts = [ nonce: 1, type: 'SemiFungibleESDT', name: 'Day One', - creator: 'erd1wh9c0sjr2xn8hzf02lwwcr4jk2s84tat9ud2kaq6zr7xzpvl9l5q8awmex', + creator: keystoreAccount.address, royalties: 6, uris: [ 'aHR0cHM6Ly9pcGZzLmlvL2lwZnMvUW1iZkd4d1dER25VTmNXNHIxRHdQdkU5aFJtMTl2azZQdmtGSG1pQnJjSEsyVw==' @@ -38,7 +40,7 @@ export const keystoreWalletNfts = [ nonce: 1, type: 'SemiFungibleESDT', name: 'CONDA', - creator: 'erd1wh9c0sjr2xn8hzf02lwwcr4jk2s84tat9ud2kaq6zr7xzpvl9l5q8awmex', + creator: keystoreAccount.address, royalties: 5, uris: [ 'aHR0cHM6Ly9pcGZzLmlvL2lwZnMvUW1hdHE3MlE3VURlb2ZvY0xhZFlRRVRzRjUyU1VRMVVxTHBpRVp1U1dkWTNVeQ==' @@ -72,7 +74,7 @@ export const keystoreWalletNfts = [ nonce: 5, type: 'SemiFungibleESDT', name: 'minnie', - creator: 'erd1wh9c0sjr2xn8hzf02lwwcr4jk2s84tat9ud2kaq6zr7xzpvl9l5q8awmex', + creator: keystoreAccount.address, royalties: 0.05, uris: [ 'aHR0cHM6Ly9pcGZzLmlvL2lwZnMvUW1hdHE3MlE3VURlb2ZvY0xhZFlRRVRzRjUyU1VRMVVxTHBpRVp1U1dkWTNVeQ==' @@ -106,7 +108,7 @@ export const keystoreWalletNfts = [ nonce: 11, type: 'SemiFungibleESDT', name: 'jimmi', - creator: 'erd1wh9c0sjr2xn8hzf02lwwcr4jk2s84tat9ud2kaq6zr7xzpvl9l5q8awmex', + creator: keystoreAccount.address, royalties: 0.01, uris: [ 'aHR0cHM6Ly9pcGZzLmlvL2lwZnMvUW1hdHE3MlE3VURlb2ZvY0xhZFlRRVRzRjUyU1VRMVVxTHBpRVp1U1dkWTNVeQ==' @@ -139,7 +141,7 @@ export const keystoreWalletNfts = [ nonce: 1, type: 'SemiFungibleESDT', name: 'super', - creator: 'erd1wh9c0sjr2xn8hzf02lwwcr4jk2s84tat9ud2kaq6zr7xzpvl9l5q8awmex', + creator: keystoreAccount.address, royalties: 0.05, uris: [ 'aHR0cHM6Ly9pcGZzLmlvL2lwZnMvUW1hdHE3MlE3VURlb2ZvY0xhZFlRRVRzRjUyU1VRMVVxTHBpRVp1U1dkWTNVeQ==' @@ -177,7 +179,7 @@ export const keystoreWalletNfts = [ nonce: 1, type: 'SemiFungibleESDT', name: 'super', - creator: 'erd1wh9c0sjr2xn8hzf02lwwcr4jk2s84tat9ud2kaq6zr7xzpvl9l5q8awmex', + creator: keystoreAccount.address, royalties: 0.05, uris: [ 'aHR0cHM6Ly9pcGZzLmlvL2lwZnMvUW1hdHE3MlE3VURlb2ZvY0xhZFlRRVRzRjUyU1VRMVVxTHBpRVp1U1dkWTNVeQ==' @@ -215,7 +217,7 @@ export const keystoreWalletNfts = [ nonce: 1, type: 'SemiFungibleESDT', name: 'super', - creator: 'erd1wh9c0sjr2xn8hzf02lwwcr4jk2s84tat9ud2kaq6zr7xzpvl9l5q8awmex', + creator: keystoreAccount.address, royalties: 0.05, uris: [ 'aHR0cHM6Ly9pcGZzLmlvL2lwZnMvUW1hdHE3MlE3VURlb2ZvY0xhZFlRRVRzRjUyU1VRMVVxTHBpRVp1U1dkWTNVeQ==' @@ -253,7 +255,7 @@ export const keystoreWalletNfts = [ nonce: 1, type: 'NonFungibleESDT', name: 'super', - creator: 'erd1wh9c0sjr2xn8hzf02lwwcr4jk2s84tat9ud2kaq6zr7xzpvl9l5q8awmex', + creator: keystoreAccount.address, royalties: 0.05, uris: [ 'aHR0cHM6Ly9pcGZzLmlvL2lwZnMvUW1hdHE3MlE3VURlb2ZvY0xhZFlRRVRzRjUyU1VRMVVxTHBpRVp1U1dkWTNVeQ==' @@ -290,7 +292,7 @@ export const keystoreWalletNfts = [ nonce: 1, type: 'SemiFungibleESDT', name: 'super', - creator: 'erd1wh9c0sjr2xn8hzf02lwwcr4jk2s84tat9ud2kaq6zr7xzpvl9l5q8awmex', + creator: keystoreAccount.address, royalties: 0.05, uris: [ 'aHR0cHM6Ly9pcGZzLmlvL2lwZnMvUW1hdHE3MlE3VURlb2ZvY0xhZFlRRVRzRjUyU1VRMVVxTHBpRVp1U1dkWTNVeQ==' @@ -328,7 +330,7 @@ export const keystoreWalletNfts = [ nonce: 1, type: 'SemiFungibleESDT', name: 'super', - creator: 'erd1wh9c0sjr2xn8hzf02lwwcr4jk2s84tat9ud2kaq6zr7xzpvl9l5q8awmex', + creator: keystoreAccount.address, royalties: 0.05, uris: [ 'aHR0cHM6Ly9pcGZzLmlvL2lwZnMvUW1hdHE3MlE3VURlb2ZvY0xhZFlRRVRzRjUyU1VRMVVxTHBpRVp1U1dkWTNVeQ==' @@ -366,7 +368,7 @@ export const keystoreWalletNfts = [ nonce: 1, type: 'SemiFungibleESDT', name: 'super', - creator: 'erd1wh9c0sjr2xn8hzf02lwwcr4jk2s84tat9ud2kaq6zr7xzpvl9l5q8awmex', + creator: keystoreAccount.address, royalties: 0.05, uris: [ 'aHR0cHM6Ly9pcGZzLmlvL2lwZnMvUW1hdHE3MlE3VURlb2ZvY0xhZFlRRVRzRjUyU1VRMVVxTHBpRVp1U1dkWTNVeQ==' @@ -404,7 +406,7 @@ export const keystoreWalletNfts = [ nonce: 1, type: 'SemiFungibleESDT', name: 'super', - creator: 'erd1wh9c0sjr2xn8hzf02lwwcr4jk2s84tat9ud2kaq6zr7xzpvl9l5q8awmex', + creator: keystoreAccount.address, royalties: 0.05, uris: [ 'aHR0cHM6Ly9pcGZzLmlvL2lwZnMvUW1hdHE3MlE3VURlb2ZvY0xhZFlRRVRzRjUyU1VRMVVxTHBpRVp1U1dkWTNVeQ==' @@ -442,7 +444,7 @@ export const keystoreWalletNfts = [ nonce: 1, type: 'SemiFungibleESDT', name: 'super', - creator: 'erd1wh9c0sjr2xn8hzf02lwwcr4jk2s84tat9ud2kaq6zr7xzpvl9l5q8awmex', + creator: keystoreAccount.address, royalties: 0.05, uris: [ 'aHR0cHM6Ly9pcGZzLmlvL2lwZnMvUW1hdHE3MlE3VURlb2ZvY0xhZFlRRVRzRjUyU1VRMVVxTHBpRVp1U1dkWTNVeQ==' @@ -480,7 +482,7 @@ export const keystoreWalletNfts = [ nonce: 1, type: 'NonFungibleESDT', name: 'super', - creator: 'erd1wh9c0sjr2xn8hzf02lwwcr4jk2s84tat9ud2kaq6zr7xzpvl9l5q8awmex', + creator: keystoreAccount.address, royalties: 0.05, uris: [ 'aHR0cHM6Ly9pcGZzLmlvL2lwZnMvUW1hdHE3MlE3VURlb2ZvY0xhZFlRRVRzRjUyU1VRMVVxTHBpRVp1U1dkWTNVeQ==' @@ -517,7 +519,7 @@ export const keystoreWalletNfts = [ nonce: 1, type: 'SemiFungibleESDT', name: 'Ticket v2', - creator: 'erd1wh9c0sjr2xn8hzf02lwwcr4jk2s84tat9ud2kaq6zr7xzpvl9l5q8awmex', + creator: keystoreAccount.address, royalties: 6, uris: [ 'aHR0cHM6Ly9pcGZzLmlvL2lwZnMvUW1hdHE3MlE3VURlb2ZvY0xhZFlRRVRzRjUyU1VRMVVxTHBpRVp1U1dkWTNVeQ==' @@ -548,7 +550,7 @@ export const keystoreWalletNfts = [ nonce: 1, type: 'SemiFungibleESDT', name: 'dyor', - creator: 'erd1wh9c0sjr2xn8hzf02lwwcr4jk2s84tat9ud2kaq6zr7xzpvl9l5q8awmex', + creator: keystoreAccount.address, royalties: 6, uris: [ 'aHR0cHM6Ly9pcGZzLmlvL2lwZnMvUW1hdHE3MlE3VURlb2ZvY0xhZFlRRVRzRjUyU1VRMVVxTHBpRVp1U1dkWTNVeQ==' @@ -580,7 +582,7 @@ export const keystoreWalletNfts = [ nonce: 1, type: 'SemiFungibleESDT', name: 'asdasd', - creator: 'erd1wh9c0sjr2xn8hzf02lwwcr4jk2s84tat9ud2kaq6zr7xzpvl9l5q8awmex', + creator: keystoreAccount.address, royalties: 0.05, uris: [ 'aHR0cHM6Ly9pcGZzLmlvL2lwZnMvUW1hdHE3MlE3VURlb2ZvY0xhZFlRRVRzRjUyU1VRMVVxTHBpRVp1U1dkWTNVeQ==' @@ -658,7 +660,7 @@ export const keystoreWalletNfts = [ nonce: 1, type: 'SemiFungibleESDT', name: 'General Access', - creator: 'erd1wh9c0sjr2xn8hzf02lwwcr4jk2s84tat9ud2kaq6zr7xzpvl9l5q8awmex', + creator: keystoreAccount.address, royalties: 1, uris: [ 'aHR0cHM6Ly9pcGZzLmlvL2lwZnMvUW1hdHE3MlE3VURlb2ZvY0xhZFlRRVRzRjUyU1VRMVVxTHBpRVp1U1dkWTNVeQ==' @@ -690,7 +692,7 @@ export const keystoreWalletNfts = [ nonce: 1, type: 'SemiFungibleESDT', name: 'dsa', - creator: 'erd1wh9c0sjr2xn8hzf02lwwcr4jk2s84tat9ud2kaq6zr7xzpvl9l5q8awmex', + creator: keystoreAccount.address, royalties: 5, uris: [ 'aHR0cHM6Ly9pcGZzLmlvL2lwZnMvUW1hdHE3MlE3VURlb2ZvY0xhZFlRRVRzRjUyU1VRMVVxTHBpRVp1U1dkWTNVeQ==' @@ -722,7 +724,7 @@ export const keystoreWalletNfts = [ nonce: 2, type: 'SemiFungibleESDT', name: 'dsadsa', - creator: 'erd1wh9c0sjr2xn8hzf02lwwcr4jk2s84tat9ud2kaq6zr7xzpvl9l5q8awmex', + creator: keystoreAccount.address, royalties: 5, uris: [ 'aHR0cHM6Ly9pcGZzLmlvL2lwZnMvUW1hdHE3MlE3VURlb2ZvY0xhZFlRRVRzRjUyU1VRMVVxTHBpRVp1U1dkWTNVeQ==' @@ -756,7 +758,7 @@ export const keystoreWalletNfts = [ nonce: 3, type: 'SemiFungibleESDT', name: 'dsa', - creator: 'erd1wh9c0sjr2xn8hzf02lwwcr4jk2s84tat9ud2kaq6zr7xzpvl9l5q8awmex', + creator: keystoreAccount.address, royalties: 5, uris: [ 'aHR0cHM6Ly9pcGZzLmlvL2lwZnMvUW1hdHE3MlE3VURlb2ZvY0xhZFlRRVRzRjUyU1VRMVVxTHBpRVp1U1dkWTNVeQ==' @@ -790,7 +792,7 @@ export const keystoreWalletNfts = [ nonce: 4, type: 'SemiFungibleESDT', name: 'das', - creator: 'erd1wh9c0sjr2xn8hzf02lwwcr4jk2s84tat9ud2kaq6zr7xzpvl9l5q8awmex', + creator: keystoreAccount.address, royalties: 5, uris: [ 'aHR0cHM6Ly9pcGZzLmlvL2lwZnMvUW1hdHE3MlE3VURlb2ZvY0xhZFlRRVRzRjUyU1VRMVVxTHBpRVp1U1dkWTNVeQ==' @@ -839,7 +841,7 @@ export const keystoreWalletNfts = [ nonce: 2, type: 'SemiFungibleESDT', name: 'February', - creator: 'erd1wh9c0sjr2xn8hzf02lwwcr4jk2s84tat9ud2kaq6zr7xzpvl9l5q8awmex', + creator: keystoreAccount.address, royalties: 6, uris: [ 'aHR0cHM6Ly9pcGZzLmlvL2lwZnMvUW1iZkd4d1dER25VTmNXNHIxRHdQdkU5aFJtMTl2azZQdmtGSG1pQnJjSEsyVw==' @@ -870,7 +872,7 @@ export const keystoreWalletNfts = [ nonce: 1, type: 'SemiFungibleESDT', name: 'General', - creator: 'erd1wh9c0sjr2xn8hzf02lwwcr4jk2s84tat9ud2kaq6zr7xzpvl9l5q8awmex', + creator: keystoreAccount.address, royalties: 0, uris: [ 'aHR0cHM6Ly9pcGZzLmlvL2lwZnMvUW1hdHE3MlE3VURlb2ZvY0xhZFlRRVRzRjUyU1VRMVVxTHBpRVp1U1dkWTNVeQ==' @@ -998,7 +1000,7 @@ export const keystoreWalletNfts = [ nonce: 2, type: 'SemiFungibleESDT', name: 'Active', - creator: 'erd1wh9c0sjr2xn8hzf02lwwcr4jk2s84tat9ud2kaq6zr7xzpvl9l5q8awmex', + creator: keystoreAccount.address, royalties: 6, uris: [ 'aHR0cHM6Ly9pcGZzLmlvL2lwZnMvUW1iZkd4d1dER25VTmNXNHIxRHdQdkU5aFJtMTl2azZQdmtGSG1pQnJjSEsyVw==' @@ -1029,7 +1031,7 @@ export const keystoreWalletNfts = [ nonce: 3, type: 'SemiFungibleESDT', name: 'details', - creator: 'erd1wh9c0sjr2xn8hzf02lwwcr4jk2s84tat9ud2kaq6zr7xzpvl9l5q8awmex', + creator: keystoreAccount.address, royalties: 6, uris: [ 'aHR0cHM6Ly9pcGZzLmlvL2lwZnMvUW1hdHE3MlE3VURlb2ZvY0xhZFlRRVRzRjUyU1VRMVVxTHBpRVp1U1dkWTNVeQ==' @@ -1060,7 +1062,7 @@ export const keystoreWalletNfts = [ nonce: 4, type: 'SemiFungibleESDT', name: 'details', - creator: 'erd1wh9c0sjr2xn8hzf02lwwcr4jk2s84tat9ud2kaq6zr7xzpvl9l5q8awmex', + creator: keystoreAccount.address, royalties: 6, uris: [ 'aHR0cHM6Ly9pcGZzLmlvL2lwZnMvUW1hdHE3MlE3VURlb2ZvY0xhZFlRRVRzRjUyU1VRMVVxTHBpRVp1U1dkWTNVeQ==' @@ -1091,7 +1093,7 @@ export const keystoreWalletNfts = [ nonce: 4, type: 'SemiFungibleESDT', name: 'Tino', - creator: 'erd1wh9c0sjr2xn8hzf02lwwcr4jk2s84tat9ud2kaq6zr7xzpvl9l5q8awmex', + creator: keystoreAccount.address, royalties: 6, uris: [ 'aHR0cHM6Ly9pcGZzLmlvL2lwZnMvUW1hdHE3MlE3VURlb2ZvY0xhZFlRRVRzRjUyU1VRMVVxTHBpRVp1U1dkWTNVeQ==' @@ -1122,7 +1124,7 @@ export const keystoreWalletNfts = [ nonce: 1, type: 'SemiFungibleESDT', name: 'hometicket', - creator: 'erd1wh9c0sjr2xn8hzf02lwwcr4jk2s84tat9ud2kaq6zr7xzpvl9l5q8awmex', + creator: keystoreAccount.address, royalties: 1, uris: [ 'aHR0cHM6Ly9pcGZzLmlvL2lwZnMvUW1hdHE3MlE3VURlb2ZvY0xhZFlRRVRzRjUyU1VRMVVxTHBpRVp1U1dkWTNVeQ==' @@ -1166,7 +1168,7 @@ export const keystoreWalletNfts = [ nonce: 4, type: 'SemiFungibleESDT', name: 'WWW', - creator: 'erd1wh9c0sjr2xn8hzf02lwwcr4jk2s84tat9ud2kaq6zr7xzpvl9l5q8awmex', + creator: keystoreAccount.address, royalties: 6, uris: [ 'aHR0cHM6Ly9pcGZzLmlvL2lwZnMvUW1hdHE3MlE3VURlb2ZvY0xhZFlRRVRzRjUyU1VRMVVxTHBpRVp1U1dkWTNVeQ==' @@ -1198,7 +1200,7 @@ export const keystoreWalletNfts = [ nonce: 5, type: 'SemiFungibleESDT', name: 'Test123$%^', - creator: 'erd1wh9c0sjr2xn8hzf02lwwcr4jk2s84tat9ud2kaq6zr7xzpvl9l5q8awmex', + creator: keystoreAccount.address, royalties: 25, uris: [ 'aHR0cHM6Ly9pcGZzLmlvL2lwZnMvUW1OblJuMXdMTTZBVHRyWnh6eGtwTTd0RjN5MUVmRzJxdksxOVA3MnI5U3pTbw==' @@ -1276,7 +1278,7 @@ export const keystoreWalletNfts = [ nonce: 1, type: 'MetaESDT', name: 'Burn me', - creator: 'erd1wh9c0sjr2xn8hzf02lwwcr4jk2s84tat9ud2kaq6zr7xzpvl9l5q8awmex', + creator: keystoreAccount.address, isWhitelistedStorage: false, balance: '100000', decimals: 3, @@ -1288,7 +1290,7 @@ export const keystoreWalletNfts = [ nonce: 1, type: 'MetaESDT', name: 'META', - creator: 'erd1wh9c0sjr2xn8hzf02lwwcr4jk2s84tat9ud2kaq6zr7xzpvl9l5q8awmex', + creator: keystoreAccount.address, isWhitelistedStorage: false, balance: '10', decimals: 1, @@ -1327,7 +1329,7 @@ export const keystoreWalletNfts = [ nonce: 1, type: 'SemiFungibleESDT', name: 'access', - creator: 'erd1wh9c0sjr2xn8hzf02lwwcr4jk2s84tat9ud2kaq6zr7xzpvl9l5q8awmex', + creator: keystoreAccount.address, royalties: 6, uris: [ 'aHR0cHM6Ly9pcGZzLmlvL2lwZnMvUW1hdHE3MlE3VURlb2ZvY0xhZFlRRVRzRjUyU1VRMVVxTHBpRVp1U1dkWTNVeQ==' @@ -1358,7 +1360,7 @@ export const keystoreWalletNfts = [ nonce: 1, type: 'SemiFungibleESDT', name: 'general access', - creator: 'erd1wh9c0sjr2xn8hzf02lwwcr4jk2s84tat9ud2kaq6zr7xzpvl9l5q8awmex', + creator: keystoreAccount.address, royalties: 0.04, uris: [ 'aHR0cHM6Ly9pcGZzLmlvL2lwZnMvUW1hdHE3MlE3VURlb2ZvY0xhZFlRRVRzRjUyU1VRMVVxTHBpRVp1U1dkWTNVeQ==' @@ -1396,7 +1398,7 @@ export const keystoreWalletNfts = [ nonce: 1, type: 'SemiFungibleESDT', name: 'general access', - creator: 'erd1wh9c0sjr2xn8hzf02lwwcr4jk2s84tat9ud2kaq6zr7xzpvl9l5q8awmex', + creator: keystoreAccount.address, royalties: 0.04, uris: [ 'aHR0cHM6Ly9pcGZzLmlvL2lwZnMvUW1hdHE3MlE3VURlb2ZvY0xhZFlRRVRzRjUyU1VRMVVxTHBpRVp1U1dkWTNVeQ==' @@ -1434,7 +1436,7 @@ export const keystoreWalletNfts = [ nonce: 1, type: 'SemiFungibleESDT', name: 'general access', - creator: 'erd1wh9c0sjr2xn8hzf02lwwcr4jk2s84tat9ud2kaq6zr7xzpvl9l5q8awmex', + creator: keystoreAccount.address, royalties: 0.04, uris: [ 'aHR0cHM6Ly9pcGZzLmlvL2lwZnMvUW1hdHE3MlE3VURlb2ZvY0xhZFlRRVRzRjUyU1VRMVVxTHBpRVp1U1dkWTNVeQ==' @@ -1472,7 +1474,7 @@ export const keystoreWalletNfts = [ nonce: 1, type: 'SemiFungibleESDT', name: 'general access', - creator: 'erd1wh9c0sjr2xn8hzf02lwwcr4jk2s84tat9ud2kaq6zr7xzpvl9l5q8awmex', + creator: keystoreAccount.address, royalties: 0.04, uris: [ 'aHR0cHM6Ly9pcGZzLmlvL2lwZnMvUW1hdHE3MlE3VURlb2ZvY0xhZFlRRVRzRjUyU1VRMVVxTHBpRVp1U1dkWTNVeQ==' @@ -1510,7 +1512,7 @@ export const keystoreWalletNfts = [ nonce: 1, type: 'SemiFungibleESDT', name: 'general access', - creator: 'erd1wh9c0sjr2xn8hzf02lwwcr4jk2s84tat9ud2kaq6zr7xzpvl9l5q8awmex', + creator: keystoreAccount.address, royalties: 0.04, uris: [ 'aHR0cHM6Ly9pcGZzLmlvL2lwZnMvUW1hdHE3MlE3VURlb2ZvY0xhZFlRRVRzRjUyU1VRMVVxTHBpRVp1U1dkWTNVeQ==' @@ -1548,7 +1550,7 @@ export const keystoreWalletNfts = [ nonce: 1, type: 'SemiFungibleESDT', name: 'general access', - creator: 'erd1wh9c0sjr2xn8hzf02lwwcr4jk2s84tat9ud2kaq6zr7xzpvl9l5q8awmex', + creator: keystoreAccount.address, royalties: 0.04, uris: [ 'aHR0cHM6Ly9pcGZzLmlvL2lwZnMvUW1hdHE3MlE3VURlb2ZvY0xhZFlRRVRzRjUyU1VRMVVxTHBpRVp1U1dkWTNVeQ==' @@ -1586,7 +1588,7 @@ export const keystoreWalletNfts = [ nonce: 1, type: 'SemiFungibleESDT', name: 'general access', - creator: 'erd1wh9c0sjr2xn8hzf02lwwcr4jk2s84tat9ud2kaq6zr7xzpvl9l5q8awmex', + creator: keystoreAccount.address, royalties: 0.04, uris: [ 'aHR0cHM6Ly9pcGZzLmlvL2lwZnMvUW1hdHE3MlE3VURlb2ZvY0xhZFlRRVRzRjUyU1VRMVVxTHBpRVp1U1dkWTNVeQ==' @@ -1624,7 +1626,7 @@ export const keystoreWalletNfts = [ nonce: 1, type: 'SemiFungibleESDT', name: 'general access', - creator: 'erd1wh9c0sjr2xn8hzf02lwwcr4jk2s84tat9ud2kaq6zr7xzpvl9l5q8awmex', + creator: keystoreAccount.address, royalties: 0.04, uris: [ 'aHR0cHM6Ly9pcGZzLmlvL2lwZnMvUW1hdHE3MlE3VURlb2ZvY0xhZFlRRVRzRjUyU1VRMVVxTHBpRVp1U1dkWTNVeQ==' @@ -1662,7 +1664,7 @@ export const keystoreWalletNfts = [ nonce: 1, type: 'SemiFungibleESDT', name: 'Ticket1', - creator: 'erd1wh9c0sjr2xn8hzf02lwwcr4jk2s84tat9ud2kaq6zr7xzpvl9l5q8awmex', + creator: keystoreAccount.address, royalties: 6, uris: [ 'aHR0cHM6Ly9pcGZzLmlvL2lwZnMvUW1hdHE3MlE3VURlb2ZvY0xhZFlRRVRzRjUyU1VRMVVxTHBpRVp1U1dkWTNVeQ==' @@ -1693,7 +1695,7 @@ export const keystoreWalletNfts = [ nonce: 2, type: 'SemiFungibleESDT', name: 'dsadsa', - creator: 'erd1wh9c0sjr2xn8hzf02lwwcr4jk2s84tat9ud2kaq6zr7xzpvl9l5q8awmex', + creator: keystoreAccount.address, royalties: 6, uris: [ 'aHR0cHM6Ly9pcGZzLmlvL2lwZnMvUW1hdHE3MlE3VURlb2ZvY0xhZFlRRVRzRjUyU1VRMVVxTHBpRVp1U1dkWTNVeQ==' @@ -1724,7 +1726,7 @@ export const keystoreWalletNfts = [ nonce: 3, type: 'SemiFungibleESDT', name: 'ion', - creator: 'erd1wh9c0sjr2xn8hzf02lwwcr4jk2s84tat9ud2kaq6zr7xzpvl9l5q8awmex', + creator: keystoreAccount.address, royalties: 6, uris: [ 'aHR0cHM6Ly9pcGZzLmlvL2lwZnMvUW1hdHE3MlE3VURlb2ZvY0xhZFlRRVRzRjUyU1VRMVVxTHBpRVp1U1dkWTNVeQ==' @@ -1755,7 +1757,7 @@ export const keystoreWalletNfts = [ nonce: 4, type: 'SemiFungibleESDT', name: 'new unsold', - creator: 'erd1wh9c0sjr2xn8hzf02lwwcr4jk2s84tat9ud2kaq6zr7xzpvl9l5q8awmex', + creator: keystoreAccount.address, royalties: 6, uris: [ 'aHR0cHM6Ly9pcGZzLmlvL2lwZnMvUW1hdHE3MlE3VURlb2ZvY0xhZFlRRVRzRjUyU1VRMVVxTHBpRVp1U1dkWTNVeQ==' @@ -1786,7 +1788,7 @@ export const keystoreWalletNfts = [ nonce: 14, type: 'SemiFungibleESDT', name: 'published', - creator: 'erd1wh9c0sjr2xn8hzf02lwwcr4jk2s84tat9ud2kaq6zr7xzpvl9l5q8awmex', + creator: keystoreAccount.address, royalties: 6, uris: [ 'aHR0cHM6Ly9pcGZzLmlvL2lwZnMvUW1iZkd4d1dER25VTmNXNHIxRHdQdkU5aFJtMTl2azZQdmtGSG1pQnJjSEsyVw==' @@ -1817,7 +1819,7 @@ export const keystoreWalletNfts = [ nonce: 1, type: 'SemiFungibleESDT', name: 'mirio', - creator: 'erd1wh9c0sjr2xn8hzf02lwwcr4jk2s84tat9ud2kaq6zr7xzpvl9l5q8awmex', + creator: keystoreAccount.address, royalties: 6, uris: [ 'aHR0cHM6Ly9pcGZzLmlvL2lwZnMvUW1hdHE3MlE3VURlb2ZvY0xhZFlRRVRzRjUyU1VRMVVxTHBpRVp1U1dkWTNVeQ==' @@ -1881,7 +1883,7 @@ export const keystoreWalletNfts = [ nonce: 1, type: 'NonFungibleESDT', name: 'dsadsa', - creator: 'erd1wh9c0sjr2xn8hzf02lwwcr4jk2s84tat9ud2kaq6zr7xzpvl9l5q8awmex', + creator: keystoreAccount.address, royalties: 20, uris: [ 'aHR0cHM6Ly9pcGZzLmlvL2lwZnMvUW1hdHE3MlE3VURlb2ZvY0xhZFlRRVRzRjUyU1VRMVVxTHBpRVp1U1dkWTNVeQ==' diff --git a/src/__mocks__/data/testKeystoreWallet/keystoreWalletTokens.ts b/src/__mocks__/data/testKeystoreWallet/keystoreWalletTokens.ts index cb2d7081..3ed78c1c 100644 --- a/src/__mocks__/data/testKeystoreWallet/keystoreWalletTokens.ts +++ b/src/__mocks__/data/testKeystoreWallet/keystoreWalletTokens.ts @@ -1,10 +1,12 @@ +import { keystoreAccount } from './keystoreAccount'; + export const keystoreWalletTokens = [ { type: 'FungibleESDT', identifier: '123-067f32', name: '123', ticker: '123-067f32', - owner: 'erd1wh9c0sjr2xn8hzf02lwwcr4jk2s84tat9ud2kaq6zr7xzpvl9l5q8awmex', + owner: keystoreAccount.address, decimals: 1, isPaused: false, transactions: 0, @@ -29,7 +31,7 @@ export const keystoreWalletTokens = [ identifier: '123-30aa2c', name: 'superTiken', ticker: '123-30aa2c', - owner: 'erd1wh9c0sjr2xn8hzf02lwwcr4jk2s84tat9ud2kaq6zr7xzpvl9l5q8awmex', + owner: keystoreAccount.address, decimals: 12, isPaused: false, transactions: 0, @@ -120,7 +122,7 @@ export const keystoreWalletTokens = [ identifier: 'BTST-1154c2', name: 'BurnTest', ticker: 'BTST-1154c2', - owner: 'erd1wh9c0sjr2xn8hzf02lwwcr4jk2s84tat9ud2kaq6zr7xzpvl9l5q8awmex', + owner: keystoreAccount.address, decimals: 0, isPaused: false, transactions: 1, @@ -207,7 +209,7 @@ export const keystoreWalletTokens = [ identifier: 'DISABLED-04f49c', name: 'DISABLED', ticker: 'DISABLED-04f49c', - owner: 'erd1wh9c0sjr2xn8hzf02lwwcr4jk2s84tat9ud2kaq6zr7xzpvl9l5q8awmex', + owner: keystoreAccount.address, decimals: 1, isPaused: false, transactions: 0, @@ -232,7 +234,7 @@ export const keystoreWalletTokens = [ identifier: 'DUMB-125033', name: 'DUMB', ticker: 'DUMB-125033', - owner: 'erd1wh9c0sjr2xn8hzf02lwwcr4jk2s84tat9ud2kaq6zr7xzpvl9l5q8awmex', + owner: keystoreAccount.address, decimals: 1, isPaused: false, transactions: 0, @@ -360,7 +362,7 @@ export const keystoreWalletTokens = [ identifier: 'ESDT1-a01551', name: 'ESDT1', ticker: 'ESDT1-a01551', - owner: 'erd1wh9c0sjr2xn8hzf02lwwcr4jk2s84tat9ud2kaq6zr7xzpvl9l5q8awmex', + owner: keystoreAccount.address, decimals: 4, isPaused: false, transactions: 0, @@ -468,7 +470,7 @@ export const keystoreWalletTokens = [ nonce: 1, name: 'Burn me', ticker: 'META-0af1d8-01', - owner: 'erd1wh9c0sjr2xn8hzf02lwwcr4jk2s84tat9ud2kaq6zr7xzpvl9l5q8awmex', + owner: keystoreAccount.address, decimals: 3, isPaused: false, transactions: 1, @@ -495,7 +497,7 @@ export const keystoreWalletTokens = [ nonce: 1, name: 'META', ticker: 'META1-d7901f-01', - owner: 'erd1wh9c0sjr2xn8hzf02lwwcr4jk2s84tat9ud2kaq6zr7xzpvl9l5q8awmex', + owner: keystoreAccount.address, decimals: 1, isPaused: false, transactions: 1, @@ -731,7 +733,7 @@ export const keystoreWalletTokens = [ nonce: 1, name: 'META', ticker: 'TEST-290a2c-01', - owner: 'erd1wh9c0sjr2xn8hzf02lwwcr4jk2s84tat9ud2kaq6zr7xzpvl9l5q8awmex', + owner: keystoreAccount.address, decimals: 1, isPaused: false, transactions: 1, @@ -781,7 +783,7 @@ export const keystoreWalletTokens = [ identifier: 'TST-18c4d8', name: 'TST', ticker: 'TST-18c4d8', - owner: 'erd1wh9c0sjr2xn8hzf02lwwcr4jk2s84tat9ud2kaq6zr7xzpvl9l5q8awmex', + owner: keystoreAccount.address, decimals: 10, isPaused: false, transactions: 0, @@ -806,7 +808,7 @@ export const keystoreWalletTokens = [ identifier: 'TST-eab6ed', name: 'TST', ticker: 'TST-eab6ed', - owner: 'erd1wh9c0sjr2xn8hzf02lwwcr4jk2s84tat9ud2kaq6zr7xzpvl9l5q8awmex', + owner: keystoreAccount.address, decimals: 2, isPaused: false, transactions: 0, diff --git a/src/__mocks__/data/testPemWallet/pemWalletNfts.ts b/src/__mocks__/data/testPemWallet/pemWalletNfts.ts index 1ee81988..c1c12272 100644 --- a/src/__mocks__/data/testPemWallet/pemWalletNfts.ts +++ b/src/__mocks__/data/testPemWallet/pemWalletNfts.ts @@ -1,3 +1,5 @@ +import { keystoreAccount } from '../testKeystoreWallet'; + export const pemWalletNfts = [ { identifier: 'CHRISTMAS-27d3e2-01', @@ -6,7 +8,7 @@ export const pemWalletNfts = [ nonce: 1, type: 'SemiFungibleESDT', name: 'Day One', - creator: 'erd1wh9c0sjr2xn8hzf02lwwcr4jk2s84tat9ud2kaq6zr7xzpvl9l5q8awmex', + creator: keystoreAccount.address, royalties: 6, uris: [ 'aHR0cHM6Ly9pcGZzLmlvL2lwZnMvUW1iZkd4d1dER25VTmNXNHIxRHdQdkU5aFJtMTl2azZQdmtGSG1pQnJjSEsyVw==' diff --git a/src/pages/Hook/LoginHook/tests/LoginWithToken.e2e.ts b/src/pages/Hook/LoginHook/tests/LoginWithToken.e2e.ts index eebc3b5a..b0b345f1 100644 --- a/src/pages/Hook/LoginHook/tests/LoginWithToken.e2e.ts +++ b/src/pages/Hook/LoginHook/tests/LoginWithToken.e2e.ts @@ -18,7 +18,7 @@ describe('Login hook with token test', () => { await sleep(DEFAULT_PAGE_LOAD_DELAY_MS); expect(page.url()).toMatch( - `https://devnet.xexchange.com/dashboard?address=${keystoreAccount.address}&signature=80f88acd3326b54d69613a56a50cd1aa74ad6485d4031d92ec2e661253491fc1d933da672251333b2a88f0a18cb486a97764816459953e84dc72700048da0c05` + `https://devnet.xexchange.com/dashboard?address=${keystoreAccount.address}&signature=5c68b59538a80f7eaf0b581cd5541dd698c83569c31b4eaa90ba9a17358ada57805f24ad7391d9018b1d5d1b69f890746a69686621b8bdbea33f77836f9b370b` ); }); }); diff --git a/src/pages/Hook/SignHook/tests/SingTransactions.e2e.ts b/src/pages/Hook/SignHook/tests/SignTransactions.e2e.ts similarity index 84% rename from src/pages/Hook/SignHook/tests/SingTransactions.e2e.ts rename to src/pages/Hook/SignHook/tests/SignTransactions.e2e.ts index fb866249..2feaa63c 100644 --- a/src/pages/Hook/SignHook/tests/SingTransactions.e2e.ts +++ b/src/pages/Hook/SignHook/tests/SignTransactions.e2e.ts @@ -86,7 +86,7 @@ describe('Sign hook test', () => { await page.click(getByDataTestId(DataTestIdsEnum.signBtn)); expect(page.url()).toMatch( - 'https://devnet.xexchange.com/?nonce[0]=786&value[0]=0&receiver[0]=erd1wh9c0sjr2xn8hzf02lwwcr4jk2s84tat9ud2kaq6zr7xzpvl9l5q8awmex&sender[0]=erd1wh9c0sjr2xn8hzf02lwwcr4jk2s84tat9ud2kaq6zr7xzpvl9l5q8awmex&gasPrice[0]=1000000000&gasLimit[0]=7000000&data[0]=MultiESDTNFTTransfer@000000000000000005006704c51b25a956ddbc643189ba7945b413890d4f0fd6@02@444d452d626465326238@01@01@444d452d626465326238@01@01@6e6674446973747269627574696f6e@ee62513ef30aede25b3366b6e3219ee18084026f36d6105299ee9963b1338f09@ee62513ef30aede25b3366b6e3219ee18084026f36d6105299ee9963b1338f09&chainID[0]=D&version[0]=1&signature[0]=ace585162fb0e8b81eb2e96d6f5e94a7a7ede9aba5197026ea9b6290bc73970fabf3d86d933a7f56298bb413fcd2529b7207e697be5e7b33ba4e916beebd630c&walletProviderStatus=transactionsSigned' + `https://devnet.xexchange.com/?nonce[0]=786&value[0]=0&receiver[0]=${keystoreAccount.address}&sender[0]=${keystoreAccount.address}&gasPrice[0]=1000000000&gasLimit[0]=7000000&data[0]=MultiESDTNFTTransfer@000000000000000005006704c51b25a956ddbc643189ba7945b413890d4f0fd6@02@444d452d626465326238@01@01@444d452d626465326238@01@01@6e6674446973747269627574696f6e@ee62513ef30aede25b3366b6e3219ee18084026f36d6105299ee9963b1338f09@ee62513ef30aede25b3366b6e3219ee18084026f36d6105299ee9963b1338f09&chainID[0]=D&version[0]=1&signature[0]=40d593538628a874ae0ec101e33aeb68e42b88f2fbcd0f436ed9721f390b4d163ba93ad362aba86d4eab98874e61e325838457bf4769bf45c5476256e777c30c&walletProviderStatus=transactionsSigned` ); }); }); diff --git a/src/pages/Hook/SignMessageHook/tests/SignMessage.e2e.ts b/src/pages/Hook/SignMessageHook/tests/SignMessage.e2e.ts index afa94c81..f4d26919 100644 --- a/src/pages/Hook/SignMessageHook/tests/SignMessage.e2e.ts +++ b/src/pages/Hook/SignMessageHook/tests/SignMessage.e2e.ts @@ -20,7 +20,7 @@ describe('Cancel sign message tests', () => { await page.click(getByDataTestId(DataTestIdsEnum.signMessageBtn)); expect(page.url()).toMatch( - 'https://devnet.xexchange.com/?status=signed&signature=1f0e1b40b1d83dcde5a62271c676f0d541adf4fbfa55daac4885911ae59c435d313179fab5ba5dc50918dae31909f1d4bf28bd2b68f47a1301c0745c6e039506' + 'https://devnet.xexchange.com/?status=signed&signature=87ff670447448bdd1fa93c70b04627514b2ea220c8f98d0cc8e5be6113b47cef922fb6339b67aba7c292ab3ac73edc019aeb8da74880250390d7f9eb4f1d5f09' ); }); }); diff --git a/src/pages/Send/tests/PrivateKeyCheckSend.e2e.ts b/src/pages/Send/tests/PrivateKeyCheckSend.e2e.ts index ae83e386..aa87b612 100644 --- a/src/pages/Send/tests/PrivateKeyCheckSend.e2e.ts +++ b/src/pages/Send/tests/PrivateKeyCheckSend.e2e.ts @@ -1,4 +1,4 @@ -import { WALLET_SOURCE_ORIGIN } from '__mocks__'; +import { DEFAULT_PASSWORD, WALLET_SOURCE_ORIGIN } from '__mocks__'; import { DataTestIdsEnum } from 'localConstants/dataTestIds.enum'; import { changeInputText, @@ -22,7 +22,7 @@ describe('Send NFT tests', () => { await changeInputText({ dataTestId: DataTestIdsEnum.accessPass, - text: 'P@ssw0rd123' + text: DEFAULT_PASSWORD }); await page.click(getByDataTestId(DataTestIdsEnum.submitButton)); diff --git a/src/pages/SignMessage/helpers/tests/decodeMessage.test.ts b/src/pages/SignMessage/helpers/tests/decodeMessage.test.ts index 5a1ea056..d6c4641d 100644 --- a/src/pages/SignMessage/helpers/tests/decodeMessage.test.ts +++ b/src/pages/SignMessage/helpers/tests/decodeMessage.test.ts @@ -1,7 +1,7 @@ import { decodeMessage } from '../decodeMessage'; +import { keystoreAccount } from '__mocks__'; -const address = - 'erd1wh9c0sjr2xn8hzf02lwwcr4jk2s84tat9ud2kaq6zr7xzpvl9l5q8awmex'; +const address = keystoreAccount.address; const signature = '0x079da60c478e32d5ddd2fba135708f025db08a6e0c3c440edac664ab151f0bb7c7efc303d96c4b290ff29aaf02f121e986bacbc33fe735fe2b49e7ba911fc608'; const rawMessage = 'hello world'; diff --git a/src/utils/testUtils/puppeteer/loginWithKeystore.ts b/src/utils/testUtils/puppeteer/loginWithKeystore.ts index 00eaa58d..2367f232 100644 --- a/src/utils/testUtils/puppeteer/loginWithKeystore.ts +++ b/src/utils/testUtils/puppeteer/loginWithKeystore.ts @@ -1,4 +1,4 @@ -import { keystoreAccount } from '__mocks__'; +import { DEFAULT_PASSWORD, keystoreAccount } from '__mocks__'; import { DataTestIdsEnum } from 'localConstants/dataTestIds.enum'; import { changeInputText } from './changeInputText'; import { expectElementToContainText } from './expectElementToContainText'; @@ -9,14 +9,13 @@ import { uploadFile } from './uploadFile'; export const loginWithKeystore = async (props?: { address?: string; filePath?: string; - hasAddressSelection?: boolean; parent?: any; password?: string; skipLoggedInCheck?: boolean; }) => { const address = props?.address ?? keystoreAccount.address; const parent = props?.parent ?? page; - const password = props?.password ?? 'P@ssw0rd123'; + const password = props?.password ?? DEFAULT_PASSWORD; const filePath = props?.filePath ?? 'src/__mocks__/data/testKeystoreWallet/account.json'; @@ -35,19 +34,17 @@ export const loginWithKeystore = async (props?: { }); await parent.click(getByDataTestId(DataTestIdsEnum.submitButton)); + const dataTestId = `check_${address}`; + await parent.waitForSelector(getByDataTestId(dataTestId)); + await parent.click(getByDataTestId(dataTestId)); - if (props?.hasAddressSelection) { - const dataTestId = `check_${address}`; - await parent.click(getByDataTestId(dataTestId)); - - await expectToBeChecked({ - dataTestId, - isChecked: true, - parent - }); + await expectToBeChecked({ + dataTestId, + isChecked: true, + parent + }); - await parent.click(getByDataTestId(DataTestIdsEnum.confirmBtn)); - } + await parent.click(getByDataTestId(DataTestIdsEnum.confirmBtn)); if (props?.skipLoggedInCheck) { return;