mirror of
				https://github.com/microsoft/playwright.git
				synced 2025-06-26 21:40:17 +00:00 
			
		
		
		
	types(test-runner): fix access worker fixtures in test.skip (#9447)
This commit is contained in:
		
							parent
							
								
									2210426a6b
								
							
						
					
					
						commit
						ded1e718b5
					
				
							
								
								
									
										2
									
								
								packages/playwright-core/types/test.d.ts
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								packages/playwright-core/types/test.d.ts
									
									
									
									
										vendored
									
									
								
							| @ -1303,7 +1303,7 @@ export interface TestType<TestArgs extends KeyValue, WorkerArgs extends KeyValue | |||||||
|    * @param title Test title. |    * @param title Test title. | ||||||
|    * @param testFunction Test function that takes one or two arguments: an object with fixtures and optional [TestInfo]. |    * @param testFunction Test function that takes one or two arguments: an object with fixtures and optional [TestInfo]. | ||||||
|    */ |    */ | ||||||
|   skip(title: string, testFunction: (args: TestArgs, testInfo: TestInfo) => Promise<void> | void): void; |   skip(title: string, testFunction: (args: TestArgs & WorkerArgs, testInfo: TestInfo) => Promise<void> | void): void; | ||||||
|   /** |   /** | ||||||
|    * Unconditionally skip a test. Test is immediately aborted when you call |    * Unconditionally skip a test. Test is immediately aborted when you call | ||||||
|    * [test.skip()](https://playwright.dev/docs/api/class-test#test-skip-2).
 |    * [test.skip()](https://playwright.dev/docs/api/class-test#test-skip-2).
 | ||||||
|  | |||||||
							
								
								
									
										2
									
								
								utils/generate_types/overrides-test.d.ts
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								utils/generate_types/overrides-test.d.ts
									
									
									
									
										vendored
									
									
								
							| @ -232,7 +232,7 @@ export interface TestType<TestArgs extends KeyValue, WorkerArgs extends KeyValue | |||||||
|       only: SuiteFunction; |       only: SuiteFunction; | ||||||
|     }; |     }; | ||||||
|   }; |   }; | ||||||
|   skip(title: string, testFunction: (args: TestArgs, testInfo: TestInfo) => Promise<void> | void): void; |   skip(title: string, testFunction: (args: TestArgs & WorkerArgs, testInfo: TestInfo) => Promise<void> | void): void; | ||||||
|   skip(): void; |   skip(): void; | ||||||
|   skip(condition: boolean, description?: string): void; |   skip(condition: boolean, description?: string): void; | ||||||
|   skip(callback: (args: TestArgs & WorkerArgs) => boolean, description?: string): void; |   skip(callback: (args: TestArgs & WorkerArgs) => boolean, description?: string): void; | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Max Schmitt
						Max Schmitt