File tree Expand file tree Collapse file tree 1 file changed +3
-10
lines changed
test/benchmarks/material/tabs Expand file tree Collapse file tree 1 file changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -48,21 +48,14 @@ describe('tabs performance benchmarks', () => {
48
48
} ) ;
49
49
50
50
it ( 'switches between tabs' , async ( ) => {
51
- let tabs : any [ ] ;
52
- let tabToClick = 0 ;
53
51
await runBenchmark ( {
54
52
id : 'tab-switching' ,
55
53
url : '' ,
56
54
ignoreBrowserSynchronization : true ,
57
55
params : [ ] ,
58
- setup : async ( ) => {
59
- await $ ( '#show-three-tabs' ) . click ( ) ;
60
- tabs = await $$ ( '.mat-tab-label' ) ;
61
- } ,
62
- prepare : async ( ) => {
63
- tabToClick = tabToClick < tabs . length - 1 ? tabToClick + 1 : 0 ;
64
- } ,
65
- work : async ( ) => await tabs [ tabToClick ] . click ( ) ,
56
+ setup : async ( ) => await $ ( '#show-three-tabs' ) . click ( ) ,
57
+ prepare : async ( ) => await $ ( '#mat-tab-label-0-0' ) . click ( ) ,
58
+ work : async ( ) => await $ ( '#mat-tab-label-0-1' ) . click ( ) ,
66
59
} ) ;
67
60
} ) ;
68
61
You can’t perform that action at this time.
0 commit comments