git.delta.rocks / unique-network / refs/commits / 3a46a68b1b97

difftreelog

test remove .only

Yaroslav Bolyukin2023-05-30parent: #38c8f71.patch.diff
in: master

14 files changed

modifiedtests/src/benchmarks/utils/common.tsdiffbeforeafterboth
--- a/tests/src/benchmarks/utils/common.ts
+++ b/tests/src/benchmarks/utils/common.ts
@@ -91,4 +91,4 @@
     await collection.setTokenPropertyPermissions(donor, permissions);
 
   return collection;
-}
\ No newline at end of file
+}
modifiedtests/src/creditFeesToTreasury.seqtest.tsdiffbeforeafterboth
--- a/tests/src/creditFeesToTreasury.seqtest.ts
+++ b/tests/src/creditFeesToTreasury.seqtest.ts
@@ -88,7 +88,7 @@
     expect(treasuryIncrease).to.be.equal(fee);
   });
 
-  itSub.only('Treasury balance increased by failed tx fee', async ({helper}) => {
+  itSub('Treasury balance increased by failed tx fee', async ({helper}) => {
     const api = helper.getApi();
     await helper.wait.newBlocks(1);
 
modifiedtests/src/eth/collectionSponsoring.test.tsdiffbeforeafterboth
--- a/tests/src/eth/collectionSponsoring.test.ts
+++ b/tests/src/eth/collectionSponsoring.test.ts
@@ -18,7 +18,7 @@
 import {Pallets, requirePalletsOrSkip, usingPlaygrounds} from '../util/index';
 import {itEth, expect} from './util';
 
-describe.only('evm nft collection sponsoring', () => {
+describe('evm nft collection sponsoring', () => {
   let donor: IKeyringPair;
   let alice: IKeyringPair;
   let nominal: bigint;
@@ -319,7 +319,7 @@
   });
 });
 
-describe.only('evm RFT collection sponsoring', () => {
+describe('evm RFT collection sponsoring', () => {
   let donor: IKeyringPair;
   let alice: IKeyringPair;
   let nominal: bigint;
modifiedtests/src/eth/createFTCollection.seqtest.tsdiffbeforeafterboth
--- a/tests/src/eth/createFTCollection.seqtest.ts
+++ b/tests/src/eth/createFTCollection.seqtest.ts
@@ -20,7 +20,7 @@
 
 const DECIMALS = 18;
 
-describe.only('Create FT collection from EVM', () => {
+describe('Create FT collection from EVM', () => {
   let donor: IKeyringPair;
 
   before(async function() {
modifiedtests/src/eth/createFTCollection.test.tsdiffbeforeafterboth
--- a/tests/src/eth/createFTCollection.test.ts
+++ b/tests/src/eth/createFTCollection.test.ts
@@ -22,7 +22,7 @@
 
 const DECIMALS = 18;
 
-describe.only('Create FT collection from EVM', () => {
+describe('Create FT collection from EVM', () => {
   let donor: IKeyringPair;
 
   before(async function() {
@@ -129,7 +129,7 @@
   });
 });
 
-describe.only('(!negative tests!) Create FT collection from EVM', () => {
+describe('(!negative tests!) Create FT collection from EVM', () => {
   let donor: IKeyringPair;
   let nominal: bigint;
 
modifiedtests/src/eth/createNFTCollection.test.tsdiffbeforeafterboth
before · tests/src/eth/createNFTCollection.test.ts
1// Copyright 2019-2022 Unique Network (Gibraltar) Ltd.2// This file is part of Unique Network.34// Unique Network is free software: you can redistribute it and/or modify5// it under the terms of the GNU General Public License as published by6// the Free Software Foundation, either version 3 of the License, or7// (at your option) any later version.8//9// Unique Network is distributed in the hope that it will be useful,10// but WITHOUT ANY WARRANTY; without even the implied warranty of11// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the12// GNU General Public License for more details.1314// You should have received a copy of the GNU General Public License15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.1617import {evmToAddress} from '@polkadot/util-crypto';18import {IKeyringPair} from '@polkadot/types/types';19import {expect, itEth, usingEthPlaygrounds} from './util';20import {CollectionLimitField} from './util/playgrounds/types';21import {COLLECTION_HELPER} from '../util';222324describe.only('Create NFT collection from EVM', () => {25  let donor: IKeyringPair;2627  before(async function () {28    await usingEthPlaygrounds(async (_helper, privateKey) => {29      donor = await privateKey({url: import.meta.url});30    });31  });3233  itEth('Create collection with properties & get desctription', async ({helper}) => {34    const owner = await helper.eth.createAccountWithBalance(donor);3536    const name = 'CollectionEVM';37    const description = 'Some description';38    const prefix = 'token prefix';39    const baseUri = 'BaseURI';4041    const {collectionId, collectionAddress, events} = await helper.eth.createERC721MetadataCompatibleNFTCollection(owner, name, description, prefix, baseUri);42    const contract = await helper.ethNativeContract.collection(collectionAddress, 'nft');4344    expect(events).to.be.deep.equal([45      {46        address: '0x6C4E9fE1AE37a41E93CEE429e8E1881aBdcbb54F',47        event: 'CollectionCreated',48        args: {49          owner: owner,50          collectionId: collectionAddress,51        },52      },53    ]);5455    const collection = helper.nft.getCollectionObject(collectionId);56    const data = (await collection.getData())!;5758    expect(data.name).to.be.eq(name);59    expect(data.description).to.be.eq(description);60    expect(data.raw.tokenPrefix).to.be.eq(prefix);61    expect(data.raw.mode).to.be.eq('NFT');6263    expect(await contract.methods.description().call()).to.deep.equal(description);6465    const options = await collection.getOptions();66    expect(options.tokenPropertyPermissions).to.be.deep.equal([67      {68        key: 'URI',69        permission: {mutable: true, collectionAdmin: true, tokenOwner: false},70      },71      {72        key: 'URISuffix',73        permission: {mutable: true, collectionAdmin: true, tokenOwner: false},74      },75    ]);76  });7778  // Soft-deprecated79  itEth('[eth] Set sponsorship', async ({helper}) => {80    const owner = await helper.eth.createAccountWithBalance(donor);81    const sponsor = await helper.eth.createAccountWithBalance(donor);82    const ss58Format = helper.chain.getChainProperties().ss58Format;83    const {collectionId, collectionAddress} = await helper.eth.createNFTCollection(owner, 'Sponsor', 'absolutely anything', 'ROC');8485    const collection = await helper.ethNativeContract.collection(collectionAddress, 'nft', owner, true);86    await collection.methods.setCollectionSponsor(sponsor).send();8788    let data = (await helper.nft.getData(collectionId))!;89    expect(data.raw.sponsorship.Unconfirmed).to.be.equal(evmToAddress(sponsor, Number(ss58Format)));9091    await expect(collection.methods.confirmCollectionSponsorship().call()).to.be.rejectedWith('ConfirmSponsorshipFail');9293    const sponsorCollection = await helper.ethNativeContract.collection(collectionAddress, 'nft', sponsor, true);94    await sponsorCollection.methods.confirmCollectionSponsorship().send();9596    data = (await helper.nft.getData(collectionId))!;97    expect(data.raw.sponsorship.Confirmed).to.be.equal(evmToAddress(sponsor, Number(ss58Format)));98  });99100  itEth('[cross] Set sponsorship & get description', async ({helper}) => {101    const owner = await helper.eth.createAccountWithBalance(donor);102    const sponsor = await helper.eth.createAccountWithBalance(donor);103    const ss58Format = helper.chain.getChainProperties().ss58Format;104    const description = 'absolutely anything';105    const {collectionId, collectionAddress} = await helper.eth.createNFTCollection(owner, 'Sponsor', description, 'ROC');106107    const collection = await helper.ethNativeContract.collection(collectionAddress, 'nft', owner);108    const sponsorCross = helper.ethCrossAccount.fromAddress(sponsor);109    await collection.methods.setCollectionSponsorCross(sponsorCross).send();110111    let data = (await helper.nft.getData(collectionId))!;112    expect(data.raw.sponsorship.Unconfirmed).to.be.equal(evmToAddress(sponsor, Number(ss58Format)));113114    await expect(collection.methods.confirmCollectionSponsorship().call()).to.be.rejectedWith('ConfirmSponsorshipFail');115116    const sponsorCollection = await helper.ethNativeContract.collection(collectionAddress, 'nft', sponsor);117    await sponsorCollection.methods.confirmCollectionSponsorship().send();118119    data = (await helper.nft.getData(collectionId))!;120    expect(data.raw.sponsorship.Confirmed).to.be.equal(evmToAddress(sponsor, Number(ss58Format)));121122    expect(await sponsorCollection.methods.description().call()).to.deep.equal(description);123  });124125  itEth('Collection address exist', async ({helper}) => {126    const owner = await helper.eth.createAccountWithBalance(donor);127    const collectionAddressForNonexistentCollection = '0x17C4E6453CC49AAAAEACA894E6D9683E00112233';128    const collectionHelpers = await helper.ethNativeContract.collectionHelpers(owner);129130    expect(await collectionHelpers131      .methods.isCollectionExist(collectionAddressForNonexistentCollection).call())132      .to.be.false;133134    const {collectionAddress} = await helper.eth.createNFTCollection(owner, 'Exister', 'absolutely anything', 'EVC');135    expect(await collectionHelpers136      .methods.isCollectionExist(collectionAddress).call())137      .to.be.true;138139    // check collectionOwner:140    const collectionEvm = await helper.ethNativeContract.collection(collectionAddress, 'ft', owner, true);141    const collectionOwner = await collectionEvm.methods.collectionOwner().call();142    expect(helper.address.restoreCrossAccountFromBigInt(BigInt(collectionOwner.sub))).to.eq(helper.address.ethToSubstrate(owner, true));143  });144});145146describe.only('(!negative tests!) Create NFT collection from EVM', () => {147  let donor: IKeyringPair;148  let nominal: bigint;149150  before(async function () {151    await usingEthPlaygrounds(async (helper, privateKey) => {152      donor = await privateKey({url: import.meta.url});153      nominal = helper.balance.getOneTokenNominal();154    });155  });156157  itEth('(!negative test!) Create collection (bad lengths)', async ({helper}) => {158    const owner = await helper.eth.createAccountWithBalance(donor);159    const collectionHelper = await helper.ethNativeContract.collectionHelpers(owner);160    {161      const MAX_NAME_LENGTH = 64;162      const collectionName = 'A'.repeat(MAX_NAME_LENGTH + 1);163      const description = 'A';164      const tokenPrefix = 'A';165166      await expect(collectionHelper.methods167        .createNFTCollection(collectionName, description, tokenPrefix)168        .call({value: Number(2n * nominal)})).to.be.rejectedWith('name is too long. Max length is ' + MAX_NAME_LENGTH);169170    }171    {172      const MAX_DESCRIPTION_LENGTH = 256;173      const collectionName = 'A';174      const description = 'A'.repeat(MAX_DESCRIPTION_LENGTH + 1);175      const tokenPrefix = 'A';176      await expect(collectionHelper.methods177        .createNFTCollection(collectionName, description, tokenPrefix)178        .call({value: Number(2n * nominal)})).to.be.rejectedWith('description is too long. Max length is ' + MAX_DESCRIPTION_LENGTH);179    }180    {181      const MAX_TOKEN_PREFIX_LENGTH = 16;182      const collectionName = 'A';183      const description = 'A';184      const tokenPrefix = 'A'.repeat(MAX_TOKEN_PREFIX_LENGTH + 1);185      await expect(collectionHelper.methods186        .createNFTCollection(collectionName, description, tokenPrefix)187        .call({value: Number(2n * nominal)})).to.be.rejectedWith('token_prefix is too long. Max length is ' + MAX_TOKEN_PREFIX_LENGTH);188    }189  });190191  itEth('(!negative test!) Create collection (no funds)', async ({helper}) => {192    const owner = await helper.eth.createAccountWithBalance(donor);193    const collectionHelper = await helper.ethNativeContract.collectionHelpers(owner);194    await expect(collectionHelper.methods195      .createNFTCollection('Peasantry', 'absolutely anything', 'CVE')196      .call({value: Number(1n * nominal)})).to.be.rejectedWith('Sent amount not equals to collection creation price (2000000000000000000)');197  });198199  // Soft-deprecated200  itEth('(!negative test!) [eth] Check owner', async ({helper}) => {201    const owner = await helper.eth.createAccountWithBalance(donor);202    // FIXME: do not give balance203    const malfeasant = await helper.eth.createAccountWithBalance(donor);204    const {collectionAddress} = await helper.eth.createNFTCollection(owner, 'Transgressed', 'absolutely anything', 'COR');205    const malfeasantCollection = await helper.ethNativeContract.collection(collectionAddress, 'nft', malfeasant, true);206    const EXPECTED_ERROR = 'NoPermission';207    {208      const sponsor = await helper.eth.createAccountWithBalance(donor);209      await expect(malfeasantCollection.methods210        .setCollectionSponsor(sponsor)211        .call()).to.be.rejectedWith(EXPECTED_ERROR);212213      const sponsorCollection = await helper.ethNativeContract.collection(collectionAddress, 'nft', sponsor, true);214      await expect(sponsorCollection.methods215        .confirmCollectionSponsorship()216        .call()).to.be.rejectedWith('ConfirmSponsorshipFail');217    }218    {219      await expect(malfeasantCollection.methods220        .setCollectionLimit({field: CollectionLimitField.AccountTokenOwnership, value: {status: true, value: 1000}})221        .call()).to.be.rejectedWith(EXPECTED_ERROR);222    }223  });224225  itEth('(!negative test!) [cross] Check owner', async ({helper}) => {226    const owner = await helper.eth.createAccountWithBalance(donor);227    const malfeasant = helper.eth.createAccount();228    const {collectionAddress} = await helper.eth.createNFTCollection(owner, 'Transgressed', 'absolutely anything', 'COR');229    const malfeasantCollection = await helper.ethNativeContract.collection(collectionAddress, 'nft', malfeasant);230    const EXPECTED_ERROR = 'NoPermission';231    {232      const sponsor = await helper.eth.createAccountWithBalance(donor);233      const sponsorCross = helper.ethCrossAccount.fromAddress(sponsor);234      await expect(malfeasantCollection.methods235        .setCollectionSponsorCross(sponsorCross)236        .call()).to.be.rejectedWith(EXPECTED_ERROR);237238      const sponsorCollection = await helper.ethNativeContract.collection(collectionAddress, 'nft', sponsor);239      await expect(sponsorCollection.methods240        .confirmCollectionSponsorship()241        .call()).to.be.rejectedWith('ConfirmSponsorshipFail');242    }243    {244      await expect(malfeasantCollection.methods245        .setCollectionLimit({field: CollectionLimitField.AccountTokenOwnership, value: {status: true, value: 1000}})246        .call()).to.be.rejectedWith(EXPECTED_ERROR);247    }248  });249250  itEth('destroyCollection', async ({helper}) => {251    const owner = await helper.eth.createAccountWithBalance(donor);252    const {collectionAddress, collectionId} = await helper.eth.createNFTCollection(owner, 'Limits', 'absolutely anything', 'OLF');253    const collectionHelper = await helper.ethNativeContract.collectionHelpers(owner);254255256    const result = await collectionHelper.methods257      .destroyCollection(collectionAddress)258      .send({from: owner});259260    const events = helper.eth.normalizeEvents(result.events);261262    expect(events).to.be.deep.equal([263      {264        address: collectionHelper.options.address,265        event: 'CollectionDestroyed',266        args: {267          collectionId: collectionAddress,268        },269      },270    ]);271272    expect(await collectionHelper.methods273      .isCollectionExist(collectionAddress)274      .call()).to.be.false;275    expect(await helper.collection.getData(collectionId)).to.be.null;276  });277});
after · tests/src/eth/createNFTCollection.test.ts
1// Copyright 2019-2022 Unique Network (Gibraltar) Ltd.2// This file is part of Unique Network.34// Unique Network is free software: you can redistribute it and/or modify5// it under the terms of the GNU General Public License as published by6// the Free Software Foundation, either version 3 of the License, or7// (at your option) any later version.8//9// Unique Network is distributed in the hope that it will be useful,10// but WITHOUT ANY WARRANTY; without even the implied warranty of11// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the12// GNU General Public License for more details.1314// You should have received a copy of the GNU General Public License15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.1617import {evmToAddress} from '@polkadot/util-crypto';18import {IKeyringPair} from '@polkadot/types/types';19import {expect, itEth, usingEthPlaygrounds} from './util';20import {CollectionLimitField} from './util/playgrounds/types';21import {COLLECTION_HELPER} from '../util';222324describe('Create NFT collection from EVM', () => {25  let donor: IKeyringPair;2627  before(async function () {28    await usingEthPlaygrounds(async (_helper, privateKey) => {29      donor = await privateKey({url: import.meta.url});30    });31  });3233  itEth('Create collection with properties & get desctription', async ({helper}) => {34    const owner = await helper.eth.createAccountWithBalance(donor);3536    const name = 'CollectionEVM';37    const description = 'Some description';38    const prefix = 'token prefix';39    const baseUri = 'BaseURI';4041    const {collectionId, collectionAddress, events} = await helper.eth.createERC721MetadataCompatibleNFTCollection(owner, name, description, prefix, baseUri);42    const contract = await helper.ethNativeContract.collection(collectionAddress, 'nft');4344    expect(events).to.be.deep.equal([45      {46        address: '0x6C4E9fE1AE37a41E93CEE429e8E1881aBdcbb54F',47        event: 'CollectionCreated',48        args: {49          owner: owner,50          collectionId: collectionAddress,51        },52      },53    ]);5455    const collection = helper.nft.getCollectionObject(collectionId);56    const data = (await collection.getData())!;5758    expect(data.name).to.be.eq(name);59    expect(data.description).to.be.eq(description);60    expect(data.raw.tokenPrefix).to.be.eq(prefix);61    expect(data.raw.mode).to.be.eq('NFT');6263    expect(await contract.methods.description().call()).to.deep.equal(description);6465    const options = await collection.getOptions();66    expect(options.tokenPropertyPermissions).to.be.deep.equal([67      {68        key: 'URI',69        permission: {mutable: true, collectionAdmin: true, tokenOwner: false},70      },71      {72        key: 'URISuffix',73        permission: {mutable: true, collectionAdmin: true, tokenOwner: false},74      },75    ]);76  });7778  // Soft-deprecated79  itEth('[eth] Set sponsorship', async ({helper}) => {80    const owner = await helper.eth.createAccountWithBalance(donor);81    const sponsor = await helper.eth.createAccountWithBalance(donor);82    const ss58Format = helper.chain.getChainProperties().ss58Format;83    const {collectionId, collectionAddress} = await helper.eth.createNFTCollection(owner, 'Sponsor', 'absolutely anything', 'ROC');8485    const collection = await helper.ethNativeContract.collection(collectionAddress, 'nft', owner, true);86    await collection.methods.setCollectionSponsor(sponsor).send();8788    let data = (await helper.nft.getData(collectionId))!;89    expect(data.raw.sponsorship.Unconfirmed).to.be.equal(evmToAddress(sponsor, Number(ss58Format)));9091    await expect(collection.methods.confirmCollectionSponsorship().call()).to.be.rejectedWith('ConfirmSponsorshipFail');9293    const sponsorCollection = await helper.ethNativeContract.collection(collectionAddress, 'nft', sponsor, true);94    await sponsorCollection.methods.confirmCollectionSponsorship().send();9596    data = (await helper.nft.getData(collectionId))!;97    expect(data.raw.sponsorship.Confirmed).to.be.equal(evmToAddress(sponsor, Number(ss58Format)));98  });99100  itEth('[cross] Set sponsorship & get description', async ({helper}) => {101    const owner = await helper.eth.createAccountWithBalance(donor);102    const sponsor = await helper.eth.createAccountWithBalance(donor);103    const ss58Format = helper.chain.getChainProperties().ss58Format;104    const description = 'absolutely anything';105    const {collectionId, collectionAddress} = await helper.eth.createNFTCollection(owner, 'Sponsor', description, 'ROC');106107    const collection = await helper.ethNativeContract.collection(collectionAddress, 'nft', owner);108    const sponsorCross = helper.ethCrossAccount.fromAddress(sponsor);109    await collection.methods.setCollectionSponsorCross(sponsorCross).send();110111    let data = (await helper.nft.getData(collectionId))!;112    expect(data.raw.sponsorship.Unconfirmed).to.be.equal(evmToAddress(sponsor, Number(ss58Format)));113114    await expect(collection.methods.confirmCollectionSponsorship().call()).to.be.rejectedWith('ConfirmSponsorshipFail');115116    const sponsorCollection = await helper.ethNativeContract.collection(collectionAddress, 'nft', sponsor);117    await sponsorCollection.methods.confirmCollectionSponsorship().send();118119    data = (await helper.nft.getData(collectionId))!;120    expect(data.raw.sponsorship.Confirmed).to.be.equal(evmToAddress(sponsor, Number(ss58Format)));121122    expect(await sponsorCollection.methods.description().call()).to.deep.equal(description);123  });124125  itEth('Collection address exist', async ({helper}) => {126    const owner = await helper.eth.createAccountWithBalance(donor);127    const collectionAddressForNonexistentCollection = '0x17C4E6453CC49AAAAEACA894E6D9683E00112233';128    const collectionHelpers = await helper.ethNativeContract.collectionHelpers(owner);129130    expect(await collectionHelpers131      .methods.isCollectionExist(collectionAddressForNonexistentCollection).call())132      .to.be.false;133134    const {collectionAddress} = await helper.eth.createNFTCollection(owner, 'Exister', 'absolutely anything', 'EVC');135    expect(await collectionHelpers136      .methods.isCollectionExist(collectionAddress).call())137      .to.be.true;138139    // check collectionOwner:140    const collectionEvm = await helper.ethNativeContract.collection(collectionAddress, 'ft', owner, true);141    const collectionOwner = await collectionEvm.methods.collectionOwner().call();142    expect(helper.address.restoreCrossAccountFromBigInt(BigInt(collectionOwner.sub))).to.eq(helper.address.ethToSubstrate(owner, true));143  });144});145146describe('(!negative tests!) Create NFT collection from EVM', () => {147  let donor: IKeyringPair;148  let nominal: bigint;149150  before(async function () {151    await usingEthPlaygrounds(async (helper, privateKey) => {152      donor = await privateKey({url: import.meta.url});153      nominal = helper.balance.getOneTokenNominal();154    });155  });156157  itEth('(!negative test!) Create collection (bad lengths)', async ({helper}) => {158    const owner = await helper.eth.createAccountWithBalance(donor);159    const collectionHelper = await helper.ethNativeContract.collectionHelpers(owner);160    {161      const MAX_NAME_LENGTH = 64;162      const collectionName = 'A'.repeat(MAX_NAME_LENGTH + 1);163      const description = 'A';164      const tokenPrefix = 'A';165166      await expect(collectionHelper.methods167        .createNFTCollection(collectionName, description, tokenPrefix)168        .call({value: Number(2n * nominal)})).to.be.rejectedWith('name is too long. Max length is ' + MAX_NAME_LENGTH);169170    }171    {172      const MAX_DESCRIPTION_LENGTH = 256;173      const collectionName = 'A';174      const description = 'A'.repeat(MAX_DESCRIPTION_LENGTH + 1);175      const tokenPrefix = 'A';176      await expect(collectionHelper.methods177        .createNFTCollection(collectionName, description, tokenPrefix)178        .call({value: Number(2n * nominal)})).to.be.rejectedWith('description is too long. Max length is ' + MAX_DESCRIPTION_LENGTH);179    }180    {181      const MAX_TOKEN_PREFIX_LENGTH = 16;182      const collectionName = 'A';183      const description = 'A';184      const tokenPrefix = 'A'.repeat(MAX_TOKEN_PREFIX_LENGTH + 1);185      await expect(collectionHelper.methods186        .createNFTCollection(collectionName, description, tokenPrefix)187        .call({value: Number(2n * nominal)})).to.be.rejectedWith('token_prefix is too long. Max length is ' + MAX_TOKEN_PREFIX_LENGTH);188    }189  });190191  itEth('(!negative test!) Create collection (no funds)', async ({helper}) => {192    const owner = await helper.eth.createAccountWithBalance(donor);193    const collectionHelper = await helper.ethNativeContract.collectionHelpers(owner);194    await expect(collectionHelper.methods195      .createNFTCollection('Peasantry', 'absolutely anything', 'CVE')196      .call({value: Number(1n * nominal)})).to.be.rejectedWith('Sent amount not equals to collection creation price (2000000000000000000)');197  });198199  // Soft-deprecated200  itEth('(!negative test!) [eth] Check owner', async ({helper}) => {201    const owner = await helper.eth.createAccountWithBalance(donor);202    // FIXME: do not give balance203    const malfeasant = await helper.eth.createAccountWithBalance(donor);204    const {collectionAddress} = await helper.eth.createNFTCollection(owner, 'Transgressed', 'absolutely anything', 'COR');205    const malfeasantCollection = await helper.ethNativeContract.collection(collectionAddress, 'nft', malfeasant, true);206    const EXPECTED_ERROR = 'NoPermission';207    {208      const sponsor = await helper.eth.createAccountWithBalance(donor);209      await expect(malfeasantCollection.methods210        .setCollectionSponsor(sponsor)211        .call()).to.be.rejectedWith(EXPECTED_ERROR);212213      const sponsorCollection = await helper.ethNativeContract.collection(collectionAddress, 'nft', sponsor, true);214      await expect(sponsorCollection.methods215        .confirmCollectionSponsorship()216        .call()).to.be.rejectedWith('ConfirmSponsorshipFail');217    }218    {219      await expect(malfeasantCollection.methods220        .setCollectionLimit({field: CollectionLimitField.AccountTokenOwnership, value: {status: true, value: 1000}})221        .call()).to.be.rejectedWith(EXPECTED_ERROR);222    }223  });224225  itEth('(!negative test!) [cross] Check owner', async ({helper}) => {226    const owner = await helper.eth.createAccountWithBalance(donor);227    const malfeasant = helper.eth.createAccount();228    const {collectionAddress} = await helper.eth.createNFTCollection(owner, 'Transgressed', 'absolutely anything', 'COR');229    const malfeasantCollection = await helper.ethNativeContract.collection(collectionAddress, 'nft', malfeasant);230    const EXPECTED_ERROR = 'NoPermission';231    {232      const sponsor = await helper.eth.createAccountWithBalance(donor);233      const sponsorCross = helper.ethCrossAccount.fromAddress(sponsor);234      await expect(malfeasantCollection.methods235        .setCollectionSponsorCross(sponsorCross)236        .call()).to.be.rejectedWith(EXPECTED_ERROR);237238      const sponsorCollection = await helper.ethNativeContract.collection(collectionAddress, 'nft', sponsor);239      await expect(sponsorCollection.methods240        .confirmCollectionSponsorship()241        .call()).to.be.rejectedWith('ConfirmSponsorshipFail');242    }243    {244      await expect(malfeasantCollection.methods245        .setCollectionLimit({field: CollectionLimitField.AccountTokenOwnership, value: {status: true, value: 1000}})246        .call()).to.be.rejectedWith(EXPECTED_ERROR);247    }248  });249250  itEth('destroyCollection', async ({helper}) => {251    const owner = await helper.eth.createAccountWithBalance(donor);252    const {collectionAddress, collectionId} = await helper.eth.createNFTCollection(owner, 'Limits', 'absolutely anything', 'OLF');253    const collectionHelper = await helper.ethNativeContract.collectionHelpers(owner);254255256    const result = await collectionHelper.methods257      .destroyCollection(collectionAddress)258      .send({from: owner});259260    const events = helper.eth.normalizeEvents(result.events);261262    expect(events).to.be.deep.equal([263      {264        address: collectionHelper.options.address,265        event: 'CollectionDestroyed',266        args: {267          collectionId: collectionAddress,268        },269      },270    ]);271272    expect(await collectionHelper.methods273      .isCollectionExist(collectionAddress)274      .call()).to.be.false;275    expect(await helper.collection.getData(collectionId)).to.be.null;276  });277});
modifiedtests/src/eth/createRFTCollection.test.tsdiffbeforeafterboth
--- a/tests/src/eth/createRFTCollection.test.ts
+++ b/tests/src/eth/createRFTCollection.test.ts
@@ -21,7 +21,7 @@
 import {CollectionLimitField} from './util/playgrounds/types';
 
 
-describe.only('Create RFT collection from EVM', () => {
+describe('Create RFT collection from EVM', () => {
   let donor: IKeyringPair;
 
   before(async function() {
@@ -154,7 +154,7 @@
   });
 });
 
-describe.only('(!negative tests!) Create RFT collection from EVM', () => {
+describe('(!negative tests!) Create RFT collection from EVM', () => {
   let donor: IKeyringPair;
   let nominal: bigint;
 
modifiedtests/src/eth/fractionalizer/fractionalizer.test.tsdiffbeforeafterboth
--- a/tests/src/eth/fractionalizer/fractionalizer.test.ts
+++ b/tests/src/eth/fractionalizer/fractionalizer.test.ts
@@ -80,7 +80,7 @@
 };
 
 
-describe.only('Fractionalizer contract usage', () => {
+describe('Fractionalizer contract usage', () => {
   let donor: IKeyringPair;
 
   before(async function() {
modifiedtests/src/eth/nonFungible.test.tsdiffbeforeafterboth
--- a/tests/src/eth/nonFungible.test.ts
+++ b/tests/src/eth/nonFungible.test.ts
@@ -929,7 +929,7 @@
     });
   });
 
-  itEth.only('Returns collection name', async ({helper}) => {
+  itEth('Returns collection name', async ({helper}) => {
     // FIXME: should not have balance to use .call()
     const caller = await helper.eth.createAccountWithBalance(donor);
     const tokenPropertyPermissions = [{
modifiedtests/src/eth/payable.test.tsdiffbeforeafterboth
--- a/tests/src/eth/payable.test.ts
+++ b/tests/src/eth/payable.test.ts
@@ -41,7 +41,7 @@
     expect(await contract.methods.getCollected().call()).to.be.equal('10000');
   });
 
-  itEth.only('Evm contract can receive wei from substrate account', async ({helper}) => {
+  itEth('Evm contract can receive wei from substrate account', async ({helper}) => {
     const deployer = await helper.eth.createAccountWithBalance(donor);
     const contract = await helper.eth.deployCollectorContract(deployer);
     const [alice] = await helper.arrange.createAccounts([40n], donor);
modifiedtests/src/eth/reFungible.test.tsdiffbeforeafterboth
--- a/tests/src/eth/reFungible.test.ts
+++ b/tests/src/eth/reFungible.test.ts
@@ -679,7 +679,7 @@
     });
   });
 
-  itEth.only('Returns collection name', async ({helper}) => {
+  itEth('Returns collection name', async ({helper}) => {
     // FIXME: should not have balance to use .call()
     const caller = await helper.eth.createAccountWithBalance(alice);
     const tokenPropertyPermissions = [{
modifiedtests/src/eth/tokenProperties.test.tsdiffbeforeafterboth
--- a/tests/src/eth/tokenProperties.test.ts
+++ b/tests/src/eth/tokenProperties.test.ts
@@ -314,7 +314,7 @@
       expect(result.length).to.equal(0);
     }));
 
-  itEth.only('Can be read', async({helper}) => {
+  itEth('Can be read', async({helper}) => {
     // FIXME: User with no balance should be able to call
     const caller = await helper.eth.createAccountWithBalance(alice);
     const collection = await helper.nft.mintCollection(alice, {
modifiedtests/src/maintenance.seqtest.tsdiffbeforeafterboth
--- a/tests/src/maintenance.seqtest.ts
+++ b/tests/src/maintenance.seqtest.ts
@@ -325,7 +325,7 @@
       expect(await helper.preimage.getPreimageInfo(preimageHashes[0])).to.have.property('unrequested');
     });
 
-    itSub.only('Does not allow execution of a preimage that would fail', async ({helper}) => {
+    itSub('Does not allow execution of a preimage that would fail', async ({helper}) => {
       const [zeroAccount] = await helper.arrange.createAccounts([0n], superuser);
 
       const preimage = helper.constructApiCall('api.tx.balances.forceTransfer', [
modifiedtests/src/vesting.test.tsdiffbeforeafterboth
--- a/tests/src/vesting.test.ts
+++ b/tests/src/vesting.test.ts
@@ -103,7 +103,7 @@
     expect(balanceSender.reserved).to.eq(0n);
   });
 
-  itSub.only('cannot send more tokens than have', async ({helper}) => {
+  itSub('cannot send more tokens than have', async ({helper}) => {
     const [sender, receiver] = await helper.arrange.createAccounts([1000n, 1n], donor);
     const schedule = {start: 0n, period: 1n, periodCount: 1n, perPeriod: 100n * nominal};
     const manyPeriodsSchedule = {start: 0n, period: 1n, periodCount: 100n, perPeriod: 10n * nominal};