@@ -25,24 +25,28 @@ function setupTest(
2525 } ) ;
2626}
2727
28- describe ( 'ButtonDropdown' , ( ) => {
29- test (
30- 'Emits a single mark' ,
31- setupTest ( 'main-action' , async ( { getMarks, getElementPerformanceMarkText } ) => {
32- const marks = await getMarks ( ) ;
28+ for ( let i = 0 ; i < 100 ; i ++ ) {
29+ describe ( 'ButtonDropdown' , ( ) => {
30+ test (
31+ 'Emits a single mark' ,
32+ setupTest ( 'main-action' , async ( { getMarks, getElementPerformanceMarkText } ) => {
33+ const marks = await getMarks ( ) ;
3334
34- expect ( marks ) . toHaveLength ( 1 ) ;
35- expect ( marks [ 0 ] . name ) . toBe ( 'primaryButtonRendered' ) ;
36- expect ( marks [ 0 ] . detail ) . toMatchObject ( {
37- source : 'awsui' ,
38- instanceIdentifier : expect . any ( String ) ,
39- loading : false ,
40- disabled : false ,
41- inViewport : true ,
42- text : 'Launch instance' ,
43- } ) ;
35+ expect ( marks ) . toHaveLength ( 1 ) ;
36+ expect ( marks [ 0 ] . name ) . toBe ( 'primaryButtonRendered' ) ;
37+ expect ( marks [ 0 ] . detail ) . toMatchObject ( {
38+ source : 'awsui' ,
39+ instanceIdentifier : expect . any ( String ) ,
40+ loading : false ,
41+ disabled : false ,
42+ inViewport : true ,
43+ text : 'Launch instance' ,
44+ } ) ;
4445
45- await expect ( getElementPerformanceMarkText ( marks [ 0 ] . detail . instanceIdentifier ) ) . resolves . toBe ( 'Launch instance' ) ;
46- } )
47- ) ;
48- } ) ;
46+ await expect ( getElementPerformanceMarkText ( marks [ 0 ] . detail . instanceIdentifier ) ) . resolves . toBe (
47+ 'Launch instance'
48+ ) ;
49+ } )
50+ ) ;
51+ } ) ;
52+ }
0 commit comments