mirror of
				https://github.com/microsoft/playwright.git
				synced 2025-06-26 21:40:17 +00:00 
			
		
		
		
	
		
			
	
	
		
			7 lines
		
	
	
		
			220 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
		
		
			
		
	
	
			7 lines
		
	
	
		
			220 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| 
								 | 
							
								const { test, expect } = require('@playwright/test');
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								test('sample test', async ({ page }) => {
							 | 
						||
| 
								 | 
							
								  await page.setContent(`<div>hello</div><span>world</span>`);
							 | 
						||
| 
								 | 
							
								  expect(await page.textContent('span')).toBe('world');
							 | 
						||
| 
								 | 
							
								});
							 |