mirror of
				https://github.com/microsoft/playwright.git
				synced 2025-06-26 21:40:17 +00:00 
			
		
		
		
	test: unflake "should format JSON request body" (#35708)
This commit is contained in:
		
							parent
							
								
									a98ad6f071
								
							
						
					
					
						commit
						69ffff95e0
					
				| @ -112,7 +112,7 @@ test('should format JSON request body', async ({ runUITest, server }) => { | |||||||
| 
 | 
 | ||||||
|   await page.getByText('post-data-1').click(); |   await page.getByText('post-data-1').click(); | ||||||
| 
 | 
 | ||||||
|   await expect(page.locator('.CodeMirror-code .CodeMirror-line').allInnerTexts()).resolves.toEqual([ |   await expect(page.locator('.CodeMirror-code .CodeMirror-line')).toHaveText([ | ||||||
|     '{', |     '{', | ||||||
|     '  "data": {', |     '  "data": {', | ||||||
|     '    "key": "value",', |     '    "key": "value",', | ||||||
| @ -122,11 +122,11 @@ test('should format JSON request body', async ({ runUITest, server }) => { | |||||||
|     '    ]', |     '    ]', | ||||||
|     '  }', |     '  }', | ||||||
|     '}', |     '}', | ||||||
|   ]); |   ], { useInnerText: true }); | ||||||
| 
 | 
 | ||||||
|   await page.getByText('post-data-2').click(); |   await page.getByText('post-data-2').click(); | ||||||
| 
 | 
 | ||||||
|   await expect(page.locator('.CodeMirror-code .CodeMirror-line').allInnerTexts()).resolves.toEqual([ |   await expect(page.locator('.CodeMirror-code .CodeMirror-line')).toHaveText([ | ||||||
|     '{', |     '{', | ||||||
|     '  "data": {', |     '  "data": {', | ||||||
|     '    "key": "value",', |     '    "key": "value",', | ||||||
| @ -136,7 +136,7 @@ test('should format JSON request body', async ({ runUITest, server }) => { | |||||||
|     '    ]', |     '    ]', | ||||||
|     '  }', |     '  }', | ||||||
|     '}', |     '}', | ||||||
|   ]); |   ], { useInnerText: true }); | ||||||
| }); | }); | ||||||
| 
 | 
 | ||||||
| test('should display list of query parameters (only if present)', async ({ runUITest, server }) => { | test('should display list of query parameters (only if present)', async ({ runUITest, server }) => { | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Dmitry Gozman
						Dmitry Gozman