mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-04 04:16:17 +01:00 
			
		
		
		
	
		
			
	
	
		
			18 lines
		
	
	
		
			592 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
		
		
			
		
	
	
			18 lines
		
	
	
		
			592 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
| 
								 | 
							
								import { test, expect } from '@playwright/test';
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								const ROOT_URL = "http://localhost:8080";
							 | 
						||
| 
								 | 
							
								const LOGIN_PASSWORD = "eliandoran";
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								test("Can insert equations", async ({ page }) => {
							 | 
						||
| 
								 | 
							
								    await page.setDefaultTimeout(60_000);
							 | 
						||
| 
								 | 
							
								    await page.setDefaultNavigationTimeout(60_000);
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								    // Create a new note
							 | 
						||
| 
								 | 
							
								    // await page.locator("button.button-widget.bx-file-blank")
							 | 
						||
| 
								 | 
							
								    //     .click();    
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								    const activeNote = page.locator(".component.note-split:visible");
							 | 
						||
| 
								 | 
							
								    const noteContent = activeNote
							 | 
						||
| 
								 | 
							
								        .locator(".note-detail-editable-text-editor")
							 | 
						||
| 
								 | 
							
								    await noteContent.press("Ctrl+M");
							 | 
						||
| 
								 | 
							
								});
							 |