--- a/tests/src/whiteLists.test.ts +++ b/tests/src/whiteLists.test.ts @@ -36,7 +36,7 @@ let Bob: IKeyringPair; let Charlie: IKeyringPair; -describe.only('Integration Test ext. White list tests', () => { +describe('Integration Test ext. White list tests', () => { before(async () => { await usingApi(async () => { @@ -67,7 +67,7 @@ await addToWhiteListExpectFail(Alice, collectionId, Bob.address); }); - it('Nobody can add address to white list of non-existing collection', async () => { + it('Nobody can add address to white list of destroyed collection', async () => { const collectionId = await createCollectionExpectSuccess(); await destroyCollectionExpectSuccess(collectionId, '//Alice'); await addToWhiteListExpectFail(Alice, collectionId, Bob.address); @@ -85,7 +85,7 @@ await removeFromWhiteListExpectSuccess(Alice, collectionId, normalizeAccountId(Bob)); }); - it('Owner can remove address from white list', async () => { + it('Admin can remove address from white list', async () => { const collectionId = await createCollectionExpectSuccess(); await addCollectionAdminExpectSuccess(Alice, collectionId, Bob); await addToWhiteListExpectSuccess(Alice, collectionId, Charlie.address); @@ -156,7 +156,7 @@ const collectionId = await createCollectionExpectSuccess(); const itemId = await createItemExpectSuccess(Alice, collectionId, 'NFT', Alice.address); await enableWhiteListExpectSuccess(Alice, collectionId); - await addToWhiteListExpectSuccess(Alice, collectionId, Charlie.address); + await addToWhiteListExpectSuccess(Alice, collectionId, Alice.address); await transferExpectFailure( collectionId, @@ -174,7 +174,7 @@ await addToWhiteListExpectSuccess(Alice, collectionId, Alice.address); await addToWhiteListExpectSuccess(Alice, collectionId, Charlie.address); await approveExpectSuccess(collectionId, itemId, Alice, Charlie); - await removeFromWhiteListExpectSuccess(Alice, collectionId, normalizeAccountId(Charlie)); + await removeFromWhiteListExpectSuccess(Alice, collectionId, normalizeAccountId(Alice)); await transferExpectFailure( collectionId, @@ -191,7 +191,7 @@ await enableWhiteListExpectSuccess(Alice, collectionId); await usingApi(async (api) => { - const tx = api.tx.nft.burnItem(collectionId, itemId, normalizeAccountId(Alice.address), 11); + const tx = api.tx.nft.burnItem(collectionId, itemId, /*normalizeAccountId(Alice.address),*/ 11); const badTransaction = async function () { await submitTransactionExpectFailAsync(Alice, tx); }; @@ -259,7 +259,7 @@ await createItemExpectSuccess(Bob, collectionId, 'NFT', Bob.address); }); - it('If Public Access mode is set to WhiteList, and Mint Permission is set to false, tokens cannot be created by non-privileged and white listed address', async () => { + it('If Public Access mode is set to WhiteList, and Mint Permission is set to false, tokens cannot be created by non-privileged and white-listed address', async () => { const collectionId = await createCollectionExpectSuccess(); await enableWhiteListExpectSuccess(Alice, collectionId); await setMintPermissionExpectSuccess(Alice, collectionId, false);