@@ -4,7 +4,7 @@ import type { Page } from '@playwright/test'
44type AnimationPlayState = 'playing' | 'paused' | null
55
66const selectors = {
7- host : 'computers -animation' ,
7+ host : 'terraform -animation' ,
88 toggle : '[data-animation-toggle]' ,
99}
1010
@@ -19,10 +19,10 @@ const isMobileProject = (projectName: string): boolean => {
1919 return projectName . startsWith ( 'mobile-' )
2020}
2121
22- async function loadComputersFixture ( playwrightPage : Page , options : FixtureOptions = { } ) : Promise < BasePage > {
22+ async function loadTerraformFixture ( playwrightPage : Page , options : FixtureOptions = { } ) : Promise < BasePage > {
2323 const page = await BasePage . init ( playwrightPage )
2424 await page . page . emulateMedia ( { reducedMotion : options . reducedMotion ?? 'no-preference' } )
25- await page . goto ( '/testing/animations-computers ' )
25+ await page . goto ( '/testing/animations-terraform ' )
2626 // NOTE: The component is intentionally `hidden lg:flex` in production markup.
2727 // On mobile projects it will remain hidden, so waiting for "visible" will hang.
2828 await page . waitForSelector ( selectors . host , { state : 'attached' } )
@@ -32,7 +32,7 @@ async function loadComputersFixture(playwrightPage: Page, options: FixtureOption
3232
3333async function getAnimationState ( page : BasePage ) : Promise < AnimationPlayState > {
3434 return await page . evaluate ( ( ) => {
35- return document . querySelector ( 'computers -animation' ) ?. getAttribute ( 'data-animation-state' ) as AnimationPlayState
35+ return document . querySelector ( 'terraform -animation' ) ?. getAttribute ( 'data-animation-state' ) as AnimationPlayState
3636 } )
3737}
3838
@@ -56,9 +56,9 @@ async function setOverlayPause(page: BasePage, isPaused: boolean): Promise<void>
5656 } , { paused : isPaused , source : overlaySource } )
5757}
5858
59- test . describe ( 'Computers Animation Component' , ( ) => {
59+ test . describe ( 'Terraform Animation Component' , ( ) => {
6060 test ( 'plays by default when no pause sources exist' , async ( { page : playwrightPage } , testInfo ) => {
61- const page = await loadComputersFixture ( playwrightPage )
61+ const page = await loadTerraformFixture ( playwrightPage )
6262 const host = page . locator ( selectors . host )
6363 const toggle = page . locator ( selectors . toggle )
6464
@@ -77,7 +77,7 @@ test.describe('Computers Animation Component', () => {
7777 } )
7878
7979 test ( 'honors prefers-reduced-motion by starting paused' , async ( { page : playwrightPage } , testInfo ) => {
80- const page = await loadComputersFixture ( playwrightPage , { reducedMotion : 'reduce' } )
80+ const page = await loadTerraformFixture ( playwrightPage , { reducedMotion : 'reduce' } )
8181 const host = page . locator ( selectors . host )
8282
8383 await waitForAnimationState ( page , 'paused' )
@@ -96,7 +96,7 @@ test.describe('Computers Animation Component', () => {
9696 test (
9797 'responds to overlay pause and resume actions from the animation store' ,
9898 async ( { page : playwrightPage } , testInfo ) => {
99- const page = await loadComputersFixture ( playwrightPage )
99+ const page = await loadTerraformFixture ( playwrightPage )
100100 const host = page . locator ( selectors . host )
101101
102102 // On mobile projects the component is intentionally `hidden lg:flex` and must not start.
0 commit comments