@@ -14,12 +14,10 @@ test.describe('benchmark', () => {
1414 // Heavy dashboard interaction - multiple searches
1515 const topbarSearchInput = page . locator ( '.topbar .search-input' )
1616 await topbarSearchInput . click ( )
17- await topbarSearchInput . fill ( 'test' )
17+ await topbarSearchInput . pressSequentially ( 'test' )
1818 await page . waitForTimeout ( 300 )
1919 await topbarSearchInput . clear ( )
2020 await page . waitForTimeout ( 200 )
21- await topbarSearchInput . fill ( 'test super' )
22- await page . waitForTimeout ( 300 )
2321
2422 // Scroll to trigger events and view charts
2523 await page . evaluate ( ( ) => window . scrollBy ( 0 , 300 ) )
@@ -35,24 +33,21 @@ test.describe('benchmark', () => {
3533 await page . waitForTimeout ( 200 )
3634 await page . locator ( '.notification-button' ) . click ( )
3735 await page . waitForTimeout ( 200 )
38- await page . locator ( '.notification-button' ) . click ( )
39- await page . waitForTimeout ( 200 )
40- await page . locator ( '.notification-button' ) . click ( )
4136
4237 // Heavy logs interaction - multiple searches and filters
4338 await page . getByRole ( 'link' , { name : '📝 Logs' } ) . click ( )
4439 await page . waitForTimeout ( 300 )
4540
4641 const logsSearchInput = page . locator ( '.logs-explorer .search-input' )
4742 await logsSearchInput . click ( )
48- await logsSearchInput . fill ( 'er' )
43+ await logsSearchInput . pressSequentially ( 'er' )
4944 await page . waitForTimeout ( 400 )
50- await logsSearchInput . fill ( 'error' )
45+ await logsSearchInput . pressSequentially ( 'error' )
5146 await page . waitForTimeout ( 400 )
5247 await page . locator ( '.logs-explorer .search-clear' ) . click ( )
5348
5449 await logsSearchInput . click ( )
55- await logsSearchInput . fill ( 'war' )
50+ await logsSearchInput . pressSequentially ( 'war' )
5651 await page . waitForTimeout ( 400 )
5752 await page . locator ( '.logs-explorer .search-clear' ) . click ( )
5853
@@ -61,8 +56,6 @@ test.describe('benchmark', () => {
6156 await page . waitForTimeout ( 200 )
6257 await page . locator ( 'label' ) . filter ( { hasText : 'WARN' } ) . click ( )
6358 await page . waitForTimeout ( 200 )
64- await page . locator ( 'label' ) . filter ( { hasText : 'WARN' } ) . click ( )
65- await page . waitForTimeout ( 200 )
6659
6760 // Log inspection with scrolling
6861 await page . evaluate ( ( ) => window . scrollBy ( 0 , 400 ) )
@@ -87,31 +80,15 @@ test.describe('benchmark', () => {
8780 // Search hosts
8881 const hostSearch = page . locator ( '.host-search' )
8982 await hostSearch . click ( )
90- await hostSearch . fill ( 'prod' )
83+ await hostSearch . pressSequentially ( 'prod' )
9184 await page . waitForTimeout ( 300 )
9285 await hostSearch . clear ( )
9386 await page . waitForTimeout ( 400 )
9487
95- // Multiple host clicks in map view - wait for host cells to be visible
88+ // Click in map view - wait for host cells to be visible
9689 await page . waitForSelector ( '.host-cell' , { state : 'visible' } )
9790 await page . locator ( '.host-cell' ) . nth ( 0 ) . click ( )
9891 await page . waitForTimeout ( 300 )
99-
100- // Close host details before selecting another
101- await page . locator ( '.host-details .close-btn' ) . click ( )
102- await page . waitForTimeout ( 200 )
103-
104- await page . locator ( '.host-cell' ) . nth ( 1 ) . click ( )
105- await page . waitForTimeout ( 300 )
106-
107- // Close host details before selecting another
108- await page . locator ( '.host-details .close-btn' ) . click ( )
109- await page . waitForTimeout ( 200 )
110-
111- await page . locator ( '.host-cell' ) . nth ( 2 ) . click ( )
112- await page . waitForTimeout ( 300 )
113-
114- // Close host details
11592 await page . locator ( '.host-details .close-btn' ) . click ( )
11693 await page . waitForTimeout ( 200 )
11794
@@ -131,12 +108,6 @@ test.describe('benchmark', () => {
131108 await page . waitForTimeout ( 300 )
132109 await hostRows . nth ( 2 ) . click ( )
133110 await page . waitForTimeout ( 300 )
134- await hostRows . nth ( 1 ) . click ( )
135- await page . waitForTimeout ( 300 )
136-
137- // Switch back to map view
138- await page . locator ( '.toggle-btn' ) . filter ( { hasText : 'Map' } ) . click ( )
139- await page . waitForTimeout ( 400 )
140111
141112 // Heavy settings interaction with multiple form edits
142113 await page . getByRole ( 'link' , { name : '⚙️ Settings' } ) . click ( )
@@ -145,17 +116,7 @@ test.describe('benchmark', () => {
145116 // Edit user settings form with multiple incremental changes
146117 const nameInput = page . locator ( '#name' )
147118 await nameInput . click ( )
148- await nameInput . fill ( 'J' )
149- await page . waitForTimeout ( 100 )
150- await nameInput . fill ( 'Jo' )
151- await page . waitForTimeout ( 100 )
152- await nameInput . fill ( 'John Do' )
153- await page . waitForTimeout ( 200 )
154- await nameInput . press ( 'ControlOrMeta+a' )
155- await nameInput . fill ( 'Jane' )
156- await page . waitForTimeout ( 200 )
157- await nameInput . press ( 'ControlOrMeta+a' )
158- await nameInput . fill ( 'John Smith' )
119+ await nameInput . pressSequentially ( 'John Do' )
159120 await page . waitForTimeout ( 200 )
160121
161122 // Change role dropdown
@@ -171,21 +132,5 @@ test.describe('benchmark', () => {
171132 await page . waitForTimeout ( 400 )
172133 await page . locator ( '.tab-button' ) . filter ( { hasText : 'User Settings' } ) . click ( )
173134 await page . waitForTimeout ( 400 )
174- await page . locator ( '.tab-button' ) . filter ( { hasText : 'Team' } ) . click ( )
175- await page . waitForTimeout ( 400 )
176- await page . locator ( '.tab-button' ) . filter ( { hasText : 'Integrations' } ) . click ( )
177- await page . waitForTimeout ( 400 )
178-
179- // Return to dashboard for final heavy interactions
180- await page . getByRole ( 'link' , { name : '📊 Dashboard' } ) . click ( )
181- await page . waitForTimeout ( 300 )
182-
183- const topbarSearch = page . locator ( '.topbar .search-input' )
184- await topbarSearch . click ( )
185- await topbarSearch . fill ( 'final' )
186- await page . waitForTimeout ( 300 )
187- await page . evaluate ( ( ) => window . scrollBy ( 0 , 500 ) )
188- await page . waitForTimeout ( 200 )
189- await page . evaluate ( ( ) => window . scrollBy ( 0 , - 500 ) )
190135 } )
191136} )
0 commit comments