diff --git a/app/_locales/en/messages.json b/app/_locales/en/messages.json index 4ab689719..2a51f008d 100644 --- a/app/_locales/en/messages.json +++ b/app/_locales/en/messages.json @@ -2054,6 +2054,16 @@ "invalidSeedPhraseCaseSensitive": { "message": "Invalid input! Secret Recovery Phrase is case sensitive." }, + "ipfsToggleModalDescriptionOne": { + "message": "We use third-party services to show images of your NFTs stored on IPFS, display information related to ENS addresses entered in your browser's address bar, and fetch icons for different tokens. Your IP address may be exposed to these services when you’re using them." + }, + "ipfsToggleModalDescriptionTwo": { + "message": "Selecting Confirm turns on IPFS resolution. You can turn it off in $1 at any time.", + "description": "$1 is the method to turn off ipfs" + }, + "ipfsToggleModalSettings": { + "message": "Settings > Security and privacy" + }, "jazzAndBlockies": { "message": "Jazzicons and Blockies are two different styles of unique icons that help you identify an account at a glance." }, @@ -3821,6 +3831,9 @@ "showMore": { "message": "Show more" }, + "showNft": { + "message": "Show NFT" + }, "showPermissions": { "message": "Show permissions" }, diff --git a/app/images/default_nft.png b/app/images/default_nft.png new file mode 100644 index 000000000..a398aeba5 Binary files /dev/null and b/app/images/default_nft.png differ diff --git a/test/e2e/nft/erc721-interaction.spec.js b/test/e2e/nft/erc721-interaction.spec.js index d88f31f64..e979a8530 100644 --- a/test/e2e/nft/erc721-interaction.spec.js +++ b/test/e2e/nft/erc721-interaction.spec.js @@ -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); @@ -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); }, @@ -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); diff --git a/test/e2e/nft/import-erc1155.spec.js b/test/e2e/nft/import-erc1155.spec.js index 516b82aba..b3640f8c4 100644 --- a/test/e2e/nft/import-erc1155.spec.js +++ b/test/e2e/nft/import-erc1155.spec.js @@ -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); }, diff --git a/test/e2e/nft/import-nft.spec.js b/test/e2e/nft/import-nft.spec.js index c0fc22876..e98c9dbb9 100644 --- a/test/e2e/nft/import-nft.spec.js +++ b/test/e2e/nft/import-nft.spec.js @@ -56,7 +56,7 @@ describe('Import NFT', function () { text: 'TestDappNFTs', }); const importedNftImage = await driver.findElement( - '.nft-item__item-image', + '.nft-item__container', ); 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 90f0be7db..377d7a592 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( - '.nft-item__item', + '.nft-item__container', ); 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 6edf681ef..d491f488f 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('.nft-item__item-image'); + await driver.clickElement('.nft-item__container'); 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 9e801ec70..63ff670d3 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('.nft-item__item-image'); + await driver.clickElement('.nft-item__container'); await driver.clickElement({ text: 'Send', tag: 'button' }); await driver.fill( 'input[placeholder="Enter public address (0x) or ENS name"]', diff --git a/test/e2e/nft/view-erc1155-details.spec.js b/test/e2e/nft/view-erc1155-details.spec.js index 65bf128b8..3d811b8bb 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( - '.nft-item__item', + '.nft-item__container', ); 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-item__item-image'); + const nftImage = await driver.findElement('.nft-item__container'); 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 2c3169dbe..07251050a 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('.nft-item__item-image'); + await driver.clickElement('.nft-item__container'); const detailsPageTitle = await driver.findElement('.asset-breadcrumb'); assert.equal( @@ -53,7 +53,7 @@ describe('View NFT details', function () { 'Test Dapp NFTs for testing.', ); - const nftImage = await driver.findElement('.nft-item__item-image'); + const nftImage = await driver.findElement('.nft-item__container'); assert.equal(await nftImage.isDisplayed(), true); const nftImageSource = await driver.findElement( diff --git a/ui/components/app/nft-default-image/__snapshots__/nft-default-image.test.js.snap b/ui/components/app/nft-default-image/__snapshots__/nft-default-image.test.js.snap index 7fd606daa..ad5821e56 100644 --- a/ui/components/app/nft-default-image/__snapshots__/nft-default-image.test.js.snap +++ b/ui/components/app/nft-default-image/__snapshots__/nft-default-image.test.js.snap @@ -3,58 +3,29 @@ exports[`NFT Default Image should match snapshot with all provided props 1`] = `