--- a/tests/src/eth/tokens/callMethodsERC721.test.ts +++ b/tests/src/eth/tokens/callMethodsERC721.test.ts @@ -105,7 +105,7 @@ {mode: 'rft' as const, requiredPallets: [Pallets.ReFungible]}, // TODO {mode: 'nft' as const, requiredPallets: []}, ].map(testCase => { - itEth(`${testCase.mode.toUpperCase()}: ownerOf after burn`, async ({helper}) => { + itEth.ifWithPallets(`${testCase.mode.toUpperCase()}: ownerOf after burn`, testCase.requiredPallets, async ({helper}) => { const caller = await helper.eth.createAccountWithBalance(donor); const receiver = helper.eth.createAccount(); const {collection, collectionId} = await helper.eth.createCollection(testCase.mode, caller, 'OwnerOf-AfterBurn', '6', '6'); @@ -124,7 +124,7 @@ }); }); - itEth('RFT: ownerOf for partial ownership', async ({helper}) => { + itEth.ifWithPallets('RFT: ownerOf for partial ownership', [Pallets.ReFungible], async ({helper}) => { const caller = await helper.eth.createAccountWithBalance(donor); const receiver = helper.eth.createAccount(); const {collectionId, collectionAddress} = await helper.eth.createRFTCollection(caller, 'Partial-OwnerOf', '6', '6'); --- a/tests/src/eth/tokens/minting.test.ts +++ b/tests/src/eth/tokens/minting.test.ts @@ -35,7 +35,7 @@ {mode: 'rft' as const, requiredPallets: [Pallets.ReFungible]}, {mode: 'ft' as const, requiredPallets: []}, ].map(testCase => { - itEth(`${testCase.mode.toUpperCase()}: Can mint() for Substrate collection`, async ({helper}) => { + itEth.ifWithPallets(`${testCase.mode.toUpperCase()}: Can mint() for Substrate collection`, testCase.requiredPallets, async ({helper}) => { const owner = await helper.eth.createAccountWithBalance(donor); const receiver = helper.eth.createAccount(); const mintingParams = testCase.mode === 'ft' ? [receiver, 100] : [receiver]; @@ -73,7 +73,7 @@ {mode: 'rft' as const, requiredPallets: [Pallets.ReFungible]}, {mode: 'ft' as const, requiredPallets: []}, ].map(testCase => { - itEth(`${testCase.mode.toUpperCase()}: Can mint() for Ethereum collection`, async ({helper}) => { + itEth.ifWithPallets(`${testCase.mode.toUpperCase()}: Can mint() for Ethereum collection`, testCase.requiredPallets, async ({helper}) => { const owner = await helper.eth.createAccountWithBalance(donor); const receiver = helper.eth.createAccount(); const mintingParams = testCase.mode === 'ft' ? [receiver, 100] : [receiver]; @@ -107,7 +107,7 @@ {mode: 'rft' as const, requiredPallets: [Pallets.ReFungible]}, {mode: 'ft' as const, requiredPallets: []}, ].map(testCase => { - itEth(`${testCase.mode.toUpperCase()}: Can mint() for Ethereum collection`, async ({helper}) => { + itEth.ifWithPallets(`${testCase.mode.toUpperCase()}: Can mint() for Ethereum collection`, testCase.requiredPallets, async ({helper}) => { const owner = await helper.eth.createAccountWithBalance(donor); const receiver = helper.eth.createAccount(); const mintingParams = testCase.mode === 'ft' ? [receiver, 100] : [receiver]; @@ -140,7 +140,7 @@ {mode: 'nft' as const, requiredPallets: []}, {mode: 'rft' as const, requiredPallets: [Pallets.ReFungible]}, ].map(testCase => { - itEth(`${testCase.mode.toUpperCase()}: Can mintWithTokenURI() for Ethereum collection`, async ({helper}) => { + itEth.ifWithPallets(`${testCase.mode.toUpperCase()}: Can mintWithTokenURI() for Ethereum collection`, testCase.requiredPallets, async ({helper}) => { const owner = await helper.eth.createAccountWithBalance(donor); const receiver = helper.eth.createAccount();