diff --git a/test/e2e/nft/import-erc1155.spec.js b/test/e2e/nft/import-erc1155.spec.js index 95992d770..598b70182 100644 --- a/test/e2e/nft/import-erc1155.spec.js +++ b/test/e2e/nft/import-erc1155.spec.js @@ -56,7 +56,7 @@ describe('Import ERC1155 NFT', function () { assert.equal(await importedERC1155.isDisplayed(), true); const importedERC1155Image = await driver.findVisibleElement( - '.nfts-items__item img', + '.nft-item__item', ); assert.equal(await importedERC1155Image.isDisplayed(), true); }, diff --git a/test/e2e/nft/import-nft.spec.js b/test/e2e/nft/import-nft.spec.js index b0985e7dd..bfb038b56 100644 --- a/test/e2e/nft/import-nft.spec.js +++ b/test/e2e/nft/import-nft.spec.js @@ -54,7 +54,7 @@ describe('Import NFT', function () { text: 'TestDappCollectibles', }); const importedNftImage = await driver.findElement( - '.nfts-items__item-image', + '.nft-item__item-image', ); assert.equal(await importedNft.isDisplayed(), true); assert.equal(await importedNftImage.isDisplayed(), true); diff --git a/test/e2e/nft/remove-erc1155.spec.js b/test/e2e/nft/remove-erc1155.spec.js index b2b52812c..90f0be7db 100644 --- a/test/e2e/nft/remove-erc1155.spec.js +++ b/test/e2e/nft/remove-erc1155.spec.js @@ -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( - '.nfts-items__item img', + '.nft-item__item', ); await importedNftImage.click(); await driver.clickElement('[data-testid="nft-options__button"]'); diff --git a/test/e2e/nft/remove-nft.spec.js b/test/e2e/nft/remove-nft.spec.js index 3999d16fb..6edf681ef 100644 --- a/test/e2e/nft/remove-nft.spec.js +++ b/test/e2e/nft/remove-nft.spec.js @@ -31,7 +31,7 @@ describe('Remove NFT', function () { // Open the details and click remove nft button await driver.clickElement('[data-testid="home__nfts-tab"]'); - await driver.clickElement('.nfts-items__item-image'); + await driver.clickElement('.nft-item__item-image'); await driver.clickElement('[data-testid="nft-options__button"]'); await driver.clickElement('[data-testid="nft-item-remove"]'); diff --git a/test/e2e/nft/send-nft.spec.js b/test/e2e/nft/send-nft.spec.js index 2c58af6c5..f9fcbb221 100644 --- a/test/e2e/nft/send-nft.spec.js +++ b/test/e2e/nft/send-nft.spec.js @@ -31,7 +31,7 @@ describe('Send NFT', function () { // Fill the send NFT form and confirm the transaction await driver.clickElement('[data-testid="home__nfts-tab"]'); - await driver.clickElement('.nfts-items__item-image'); + await driver.clickElement('.nft-item__item-image'); await driver.clickElement({ text: 'Send', tag: 'button' }); await driver.fill( 'input[placeholder="Search, public address (0x), or ENS"]', diff --git a/test/e2e/nft/view-erc1155-details.spec.js b/test/e2e/nft/view-erc1155-details.spec.js index 3a1167728..65bf128b8 100644 --- a/test/e2e/nft/view-erc1155-details.spec.js +++ b/test/e2e/nft/view-erc1155-details.spec.js @@ -34,7 +34,7 @@ describe('View ERC1155 NFT details', function () { // Click to open the NFT details page and check displayed account await driver.clickElement('[data-testid="home__nfts-tab"]'); const importedNftImage = await driver.findVisibleElement( - '.nfts-items__item img', + '.nft-item__item', ); await importedNftImage.click(); const detailsPageAccount = await driver.findElement( @@ -54,7 +54,7 @@ describe('View ERC1155 NFT details', function () { 'This is a collection of Rock NFTs.', ); - const nftImage = await driver.findElement('.nft-details__image'); + const nftImage = await driver.findElement('.nft-item__item-image'); assert.equal(await nftImage.isDisplayed(), true); const nftImageSource = await driver.findElement( diff --git a/test/e2e/nft/view-nft-details.spec.js b/test/e2e/nft/view-nft-details.spec.js index 7ca84b14b..890cc72e2 100644 --- a/test/e2e/nft/view-nft-details.spec.js +++ b/test/e2e/nft/view-nft-details.spec.js @@ -33,7 +33,7 @@ describe('View NFT details', function () { // Click to open the NFT details page and check title await driver.clickElement('[data-testid="home__nfts-tab"]'); - await driver.clickElement('.nfts-items__item-image'); + await driver.clickElement('.nft-item__item-image'); const detailsPageTitle = await driver.findElement('.asset-breadcrumb'); assert.equal( @@ -53,7 +53,7 @@ describe('View NFT details', function () { 'Test Dapp Collectibles for testing.', ); - const nftImage = await driver.findElement('.nft-details__image'); + const nftImage = await driver.findElement('.nft-item__item-image'); assert.equal(await nftImage.isDisplayed(), true); const nftImageSource = await driver.findElement( diff --git a/ui/components/app/nft-details/__snapshots__/nft-details.test.js.snap b/ui/components/app/nft-details/__snapshots__/nft-details.test.js.snap index 67777d09a..152b24ab7 100644 --- a/ui/components/app/nft-details/__snapshots__/nft-details.test.js.snap +++ b/ui/components/app/nft-details/__snapshots__/nft-details.test.js.snap @@ -40,16 +40,37 @@ exports[`NFT Details should match minimal props and state snapshot 1`] = ` class="box nft-details box--flex-direction-row" >
- MUNK #1 1 +
- ) : ( - - )} - - )} + ); })}