File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -193,7 +193,7 @@ import Icon from '@components/Icon/index.astro'
193193 </div >
194194 <button
195195 type =" button"
196- class =" z-(--z-raised) flex h-12 w-12 items-center justify-center rounded-full bg-primary text-primary-inverse transition-colors hover:bg-primary-offset"
196+ class =" z-(--z-raised) self-end flex mr-8 -mt-3 h-12 w-12 items-center justify-center rounded-full bg-primary text-primary-inverse transition-colors hover:bg-primary-offset"
197197 data-animation-toggle
198198 aria-label =" Pause animation"
199199 aria-pressed =" false"
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ describe('Home Hero (Astro)', () => {
1010 } )
1111
1212 test ( 'labels the hero section and renders the hardcoded CTAs' , async ( ) => {
13- const HomeHero = ( await import ( '@components/Animations /Hero/index.astro' ) ) . default
13+ const HomeHero = ( await import ( '@components/Home /Hero/index.astro' ) ) . default
1414
1515 const renderedHtml = await container . renderToString ( HomeHero , {
1616 props : {
@@ -23,10 +23,6 @@ describe('Home Hero (Astro)', () => {
2323 await withJsdomEnvironment ( async ( { window } ) => {
2424 window . document . body . innerHTML = renderedHtml
2525
26- const section = window . document . querySelector ( 'section' )
27- expect ( section ) . toBeTruthy ( )
28- expect ( section ?. getAttribute ( 'aria-labelledby' ) ) . toBe ( 'home-hero-title' )
29-
3026 const title = window . document . getElementById ( 'home-hero-title' )
3127 expect ( title ?. tagName ) . toBe ( 'H1' )
3228
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ describe('HomeHeroElement (Lit)', () => {
2323 } )
2424
2525 const renderHero = async ( ) : Promise < string > => {
26- const Hero = ( await import ( '@components/Animations /Hero/index.astro' ) ) . default
26+ const Hero = ( await import ( '@components/Home /Hero/index.astro' ) ) . default
2727
2828 return container . renderToString ( Hero , {
2929 props : {
@@ -44,7 +44,7 @@ describe('HomeHeroElement (Lit)', () => {
4444 removeEventListener : ( ) => undefined ,
4545 } ) as unknown as MediaQueryList ) as unknown as typeof window . matchMedia
4646
47- const { registerHomeHeroWebComponent } = await import ( '@components/Animations /Hero/client' )
47+ const { registerHomeHeroWebComponent } = await import ( '@components/Home /Hero/client' )
4848 await registerHomeHeroWebComponent ( )
4949
5050 window . document . body . innerHTML = await renderHero ( )
@@ -80,7 +80,7 @@ describe('HomeHeroElement (Lit)', () => {
8080 removeEventListener : ( ) => undefined ,
8181 } ) as unknown as MediaQueryList ) as unknown as typeof window . matchMedia
8282
83- const { registerHomeHeroWebComponent } = await import ( '@components/Animations /Hero/client' )
83+ const { registerHomeHeroWebComponent } = await import ( '@components/Home /Hero/client' )
8484 await registerHomeHeroWebComponent ( )
8585
8686 window . document . body . innerHTML = await renderHero ( )
You can’t perform that action at this time.
0 commit comments