@@ -3,8 +3,6 @@ import { expect, test } from "@playwright/test";
33import { installMockBridge } from "../helpers/bridge" ;
44import { openSettings } from "../helpers/settings" ;
55
6- const SHOTS = "test-results/animated-avatar" ;
7-
86/**
97 * Stub getUserMedia with a canvas-generated stream (animated gradient with a
108 * moving circle) so the camera phases work headless and deterministically —
@@ -118,8 +116,7 @@ function installFakeCamera(
118116}
119117
120118// The review editor (preview + framing + poster strip + backdrop panel) is
121- // taller than the default 720px viewport — raise it so element screenshots
122- // capture the whole editor.
119+ // taller than the default 720px viewport — raise it so the whole editor remains visible.
123120test . use ( { viewport : { height : 1280 , width : 1280 } } ) ;
124121
125122const UPLOADED_PNG_DESCRIPTOR = {
@@ -147,7 +144,7 @@ async function openAnimatedTab(
147144 await page . waitForTimeout ( 400 ) ;
148145}
149146
150- test . describe ( "animated avatar screenshots " , ( ) => {
147+ test . describe ( "animated avatar" , ( ) => {
151148 test ( "01 — animated tab idle state" , async ( { page } ) => {
152149 await openAnimatedTab ( page ) ;
153150 await expect (
@@ -169,9 +166,6 @@ test.describe("animated avatar screenshots", () => {
169166 page . getByTestId ( "profile-avatar-animated-camera-select" ) ,
170167 ) . toHaveCount ( 0 ) ;
171168 await expect ( page . getByTestId ( "profile-avatar-done" ) ) . toHaveCount ( 0 ) ;
172- await page
173- . getByTestId ( "settings-profile" )
174- . screenshot ( { path : `${ SHOTS } /01-animated-tab-idle.png` } ) ;
175169 } ) ;
176170
177171 test ( "02 — live camera preview" , async ( { page } ) => {
@@ -247,9 +241,6 @@ test.describe("animated avatar screenshots", () => {
247241 ) ;
248242 await expect ( page . getByTestId ( "profile-avatar-done" ) ) . toHaveCount ( 0 ) ;
249243 await page . waitForTimeout ( 500 ) ;
250- await page
251- . getByTestId ( "settings-profile" )
252- . screenshot ( { path : `${ SHOTS } /02-live-camera.png` } ) ;
253244
254245 await page . getByTestId ( "profile-avatar-animated-record" ) . click ( ) ;
255246 await expect (
@@ -276,10 +267,6 @@ test.describe("animated avatar screenshots", () => {
276267 page . getByTestId ( "profile-avatar-animated-timer-ring" ) ,
277268 ) . toBeVisible ( ) ;
278269 await page . waitForTimeout ( 1500 ) ;
279- await page . getByTestId ( "settings-profile" ) . screenshot ( {
280- animations : "allow" ,
281- path : `${ SHOTS } /03-recording-ring.png` ,
282- } ) ;
283270
284271 // Review: the section icon row appears once processing finishes.
285272 await expect (
@@ -340,10 +327,6 @@ test.describe("animated avatar screenshots", () => {
340327 } ,
341328 } ) ;
342329 await expect ( scrubber ) . not . toHaveAttribute ( "aria-valuenow" , "0" ) ;
343- await page . getByTestId ( "settings-profile" ) . screenshot ( {
344- animations : "allow" ,
345- path : `${ SHOTS } /06-poster-picker.png` ,
346- } ) ;
347330
348331 // The Circle tool stays implemented, but it is hidden in the review row for now.
349332 await expect (
@@ -379,13 +362,9 @@ test.describe("animated avatar screenshots", () => {
379362 "aria-valuenow" ,
380363 initialSizeValue ?? "" ,
381364 ) ;
382- // Restore defaults so the screenshot shows the standard framing.
365+ // Restore defaults so the standard framing remains covered .
383366 await page . getByTestId ( "profile-avatar-animated-reset-framing" ) . click ( ) ;
384367 await page . waitForTimeout ( 400 ) ;
385- await page . getByTestId ( "settings-profile" ) . screenshot ( {
386- animations : "allow" ,
387- path : `${ SHOTS } /04-review-popout-backdrop.png` ,
388- } ) ;
389368
390369 // Custom backdrop color panel (shared HSV picker).
391370 await page . getByTestId ( "profile-avatar-animated-section-color" ) . click ( ) ;
@@ -413,10 +392,6 @@ test.describe("animated avatar screenshots", () => {
413392 await page . waitForTimeout ( 400 ) ;
414393 const customColorPreview = await previewSnapshot ( ) ;
415394 expect ( customColorPreview ) . not . toEqual ( beforeCustomColor ) ;
416- await page . getByTestId ( "settings-profile" ) . screenshot ( {
417- animations : "allow" ,
418- path : `${ SHOTS } /05-custom-backdrop-color.png` ,
419- } ) ;
420395 await page . getByTestId ( "profile-avatar-animated-custom-color-done" ) . click ( ) ;
421396 await expect (
422397 page . getByTestId ( "profile-avatar-animated-backdrop-custom" ) ,
0 commit comments