Skip to content

Commit 68d80f5

Browse files
authored
Merge branch 'main' into refactor--deprecate-ktheme-usages-(3)
2 parents b998eac + 207ccf0 commit 68d80f5

9 files changed

+5
-5
lines changed

components/gallery/useGalleryItem.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,10 @@ export const useGalleryItem = (nftId?: string): GalleryItem => {
9696
nftAnimationMimeType.value.includes('video')
9797
|| nftMimeType.value.includes('video')
9898
) {
99-
// fallback to nftStorage for ios & safari while video is still processing to cf-stream
99+
// fallback to dweb for ios & safari while video is still processing to cf-stream
100100
if (isIos || isSafari) {
101-
nftImage.value = sanitizeIpfsUrl(metadata.image, 'nftStorage')
102-
nftAnimation.value = sanitizeIpfsUrl(metadata.animation_url, 'nftStorage')
101+
nftImage.value = sanitizeIpfsUrl(metadata.image, 'dweb')
102+
nftAnimation.value = sanitizeIpfsUrl(metadata.animation_url, 'dweb')
103103
}
104104

105105
// serve video from cloudflare stream

public/bsx-logo.png

-3.44 KB
Binary file not shown.

public/k_card.png

-59.6 KB
Loading

public/k_card_collections.png

-1.58 MB
Binary file not shown.

public/k_card_gallery.png

-1.58 MB
Binary file not shown.

public/k_card_mint.png

-1.64 MB
Binary file not shown.

public/k_card_series.png

-1.58 MB
Binary file not shown.

public/k_card_spotlight.png

-1.58 MB
Binary file not shown.

tests/e2e/collection.spec.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ test('Collection interactions', async ({ page, Commands }) => {
2828
await page.getByTestId('filter-checkbox-buynow').nth(1).click()
2929
await Commands.scrollDownAndStop()
3030
for (const el of await page
31-
.locator('[class="infinite-scroll-item"]')
31+
.locator('.infinite-scroll-item .nft-name')
3232
.all()) {
3333
await expect(el).toContainText('DOT')
3434
}
@@ -78,7 +78,7 @@ test('Collection interactions', async ({ page, Commands }) => {
7878
await expect(
7979
page.locator('[class="infinite-scroll-item"]').first(),
8080
).toBeVisible()
81-
await expect(page.getByTestId('nft-name')).toHaveText(COLLECTION_SEARCH_RESULT)
81+
await expect(page.locator(`[title="${COLLECTION_SEARCH_RESULT}"]`)).toHaveText(COLLECTION_SEARCH_RESULT)
8282
})
8383

8484
// art view

0 commit comments

Comments
 (0)