mirror of
				https://github.com/microsoft/playwright.git
				synced 2025-06-26 21:40:17 +00:00 
			
		
		
		
	chore: log formatting for single state (#27351)
Fixes formatting for "waiting for element to be and stable".
This commit is contained in:
		
							parent
							
								
									08e71fec5d
								
							
						
					
					
						commit
						0f14446518
					
				| @ -937,8 +937,8 @@ function compensateHalfIntegerRoundingError(point: types.Point) { | |||||||
| export type SchedulableTask<T> = (injectedScript: js.JSHandle<InjectedScript>) => Promise<js.JSHandle<InjectedScriptPoll<T>>>; | export type SchedulableTask<T> = (injectedScript: js.JSHandle<InjectedScript>) => Promise<js.JSHandle<InjectedScriptPoll<T>>>; | ||||||
| 
 | 
 | ||||||
| function joinWithAnd(strings: string[]): string { | function joinWithAnd(strings: string[]): string { | ||||||
|   if (strings.length < 1) |   if (strings.length <= 1) | ||||||
|     return strings.join(', '); |     return strings.join(''); | ||||||
|   return strings.slice(0, strings.length - 1).join(', ') + ' and ' + strings[strings.length - 1]; |   return strings.slice(0, strings.length - 1).join(', ') + ' and ' + strings[strings.length - 1]; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Yury Semikhatsky
						Yury Semikhatsky