refactor(private-room): rename default cover image
This commit is contained in:
@@ -9,7 +9,7 @@ import {
|
||||
|
||||
import { PrivateAlbumCard } from "../private-album-card";
|
||||
|
||||
const COVER_URL = "/images/private-room/banner.png";
|
||||
const COVER_URL = "/images/private-room/banner/elio.png";
|
||||
|
||||
function makeAlbum(overrides: Partial<PrivateAlbumInput> = {}): PrivateAlbum {
|
||||
return PrivateAlbumSchema.parse({
|
||||
@@ -58,7 +58,7 @@ describe("PrivateAlbumCard", () => {
|
||||
}),
|
||||
);
|
||||
|
||||
expect(html).toContain("banner.png");
|
||||
expect(html).toContain("elio.png");
|
||||
expect(html).not.toContain("pic-bg-home.png");
|
||||
expect(html).toContain("8 photos");
|
||||
expect(html).toContain("A quiet morning by the water.");
|
||||
@@ -77,7 +77,7 @@ describe("PrivateAlbumCard", () => {
|
||||
}),
|
||||
);
|
||||
|
||||
expect(html).toContain("banner.png");
|
||||
expect(html).toContain("elio.png");
|
||||
expect(html).toContain(
|
||||
'aria-label="Unlock 8 private room photos from Elio Silvestri"',
|
||||
);
|
||||
|
||||
@@ -152,7 +152,7 @@ export function PrivateRoomScreen() {
|
||||
<section className={styles.hero} aria-label={title}>
|
||||
<div className={styles.heroCover}>
|
||||
<Image
|
||||
src="/images/private-room/banner.png"
|
||||
src="/images/private-room/banner/elio.png"
|
||||
alt=""
|
||||
width={2048}
|
||||
height={1152}
|
||||
|
||||
Reference in New Issue
Block a user