| 
									
										
										
										
											2025-01-09 18:07:02 +02:00
										 |  |  | import { test, expect } from "@playwright/test"; | 
					
						
							| 
									
										
										
										
											2024-08-07 20:27:04 +03:00
										 |  |  | 
 | 
					
						
							|  |  |  | 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")
 | 
					
						
							| 
									
										
										
										
											2024-12-22 15:45:54 +02:00
										 |  |  |     //     .click();
 | 
					
						
							| 
									
										
										
										
											2024-08-07 20:27:04 +03:00
										 |  |  | 
 | 
					
						
							|  |  |  |     const activeNote = page.locator(".component.note-split:visible"); | 
					
						
							| 
									
										
										
										
											2025-01-09 18:07:02 +02:00
										 |  |  |     const noteContent = activeNote.locator(".note-detail-editable-text-editor"); | 
					
						
							| 
									
										
										
										
											2024-08-07 20:27:04 +03:00
										 |  |  |     await noteContent.press("Ctrl+M"); | 
					
						
							| 
									
										
										
										
											2024-12-22 15:45:54 +02:00
										 |  |  | }); |