Skip to content

Commit

Permalink
updated e2e tests for nfts
Browse files Browse the repository at this point in the history
  • Loading branch information
NidhiKJha committed Jul 27, 2023
1 parent 2260627 commit c7badf4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions test/e2e/nft/erc721-interaction.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ describe('ERC721 NFTs testdapp interaction', function () {
await driver.clickElement({ text: 'NFTs', tag: 'button' });
await driver.findElement({ text: 'TestDappNFTs (3)' });
const nftsListItemsFirstCheck = await driver.findElements(
'.nft-item__item',
'.nft-item__container',
);
assert.equal(nftsListItemsFirstCheck.length, 3);

Expand All @@ -119,7 +119,7 @@ describe('ERC721 NFTs testdapp interaction', function () {
await driver.clickElement({ text: 'NFTs', tag: 'button' });
await driver.findElement({ text: 'TestDappNFTs (6)' });
const nftsListItemsSecondCheck = await driver.findElements(
'.nft-item__item',
'.nft-item__container',
);
assert.equal(nftsListItemsSecondCheck.length, 6);
},
Expand Down Expand Up @@ -215,7 +215,7 @@ describe('ERC721 NFTs testdapp interaction', function () {
await driver.clickElement({ text: 'NFTs', tag: 'button' });
await driver.findElement({ text: 'TestDappNFTs (5)' });
const nftsListItemsSecondCheck = await driver.findElements(
'.nft-item__item',
'.nft-item__container',
);

assert.equal(nftsListItemsSecondCheck.length, 5);
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/nft/import-erc1155.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ describe('Import ERC1155 NFT', function () {
assert.equal(await importedERC1155.isDisplayed(), true);

const importedERC1155Image = await driver.findVisibleElement(
'.nft-item__item',
'.nft-item__container',
);
assert.equal(await importedERC1155Image.isDisplayed(), true);
},
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/nft/remove-erc1155.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ describe('Remove ERC1155 NFT', function () {
// Open the details page and click remove nft button
await driver.clickElement('[data-testid="home__nfts-tab"]');
const importedNftImage = await driver.findVisibleElement(
'.nft-item__item',
'.nft-item__container',
);
await importedNftImage.click();
await driver.clickElement('[data-testid="nft-options__button"]');
Expand Down

0 comments on commit c7badf4

Please sign in to comment.