@@ -171,13 +171,23 @@ for (const design of DESIGNS) {
171171
172172test ( "pet: an egg is an egg, a grown pet with nothing switched on says so" , ( ) => {
173173 const egg = render ( petCard ( { adopted : true , name : "E" , species : "cat" , stage : "egg" , chores : 0 , xp : 0 , goal : { kind : "stage" , from : 0 , at : 30 } , mood : "happy" , accessories : [ ] } ) . card . render ( ) ) . markup ;
174- assert . match ( egg , / t m - e g g - c a t / ) ;
174+ assert . match ( egg , / c l a s s = " p t - s t a g e [ ^ " ] * s t a g e - e g g / ) ;
175+ assert . match ( egg , / # f 3 9 b 3 d / , "the cat egg's shell colour" ) ;
175176 const grown = render ( petCard ( { adopted : true , name : "G" , species : "dog" , stage : "grown" , chores : 120 , xp : 1700 , mood : "proud" , accessories : [ "bow" , "top_hat" , "scarf" , "crown" ] } ) . card . render ( ) ) . markup ;
176177 assert . ok ( grown . includes ( localize ( "pet.fully_grown" , { name : "G" } ) ) ) ;
177178 assert . match ( grown , / 👑 / ) ;
178179 assert . doesNotMatch ( grown , / r o l e = " p r o g r e s s b a r " / ) ;
179180} ) ;
180181
182+ test ( "pet: the egg has no clipPath, which froze iOS 15 Safari inside the wobble (#1113)" , ( ) => {
183+ const { petScene, petArt } = ( petMod . window ? petMod . window . __taskmate_pet_art : sandbox . window ?. __taskmate_pet_art ) || { } ;
184+ for ( const species of [ "dragon" , "cat" , "dog" , "bunny" , "dino" , "unicorn" ] ) {
185+ for ( const markup of [ petScene ( species , "egg" ) , petArt ( species , "egg" ) ] ) {
186+ assert . doesNotMatch ( markup , / c l i p P a t h | c l i p - p a t h / , species ) ;
187+ }
188+ }
189+ } ) ;
190+
181191test ( "pet: each stage looks different, and legendary turns it gold" , ( ) => {
182192 const art = petMod . window ? petMod . window . __taskmate_pet_art : sandbox . window ?. __taskmate_pet_art ;
183193 const { petArt } = art || { } ;
0 commit comments