mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-10-31 21:11:30 +08:00 
			
		
		
		
	chore(e2e): add basic test for highlights list
This commit is contained in:
		
							parent
							
								
									1530a09dc8
								
							
						
					
					
						commit
						09f36cac00
					
				| @ -35,3 +35,17 @@ test("Table of contents is displayed", async ({ page }) => { | ||||
|     await expect(rootList.locator("> ol").nth(1).locator("> ol > ol")).toHaveCount(1); | ||||
|     await expect(rootList.locator("> ol").nth(1).locator("> ol > ol > ol")).toHaveCount(1); | ||||
| }); | ||||
| 
 | ||||
| test("Highlights list is displayed", async ({ page }) => { | ||||
|     const app = new App(page); | ||||
|     await app.goto(); | ||||
|     await app.closeAllTabs(); | ||||
|     await app.goToNoteInNewTab("Highlights list"); | ||||
| 
 | ||||
|     await expect(app.sidebar).toContainText("Highlights List"); | ||||
|     const rootList = app.sidebar.locator(".highlights-list ol"); | ||||
|     let index=0; | ||||
|     for (const highlightedEl of [ "Bold 1", "Italic 1", "Underline 1", "Colored text 1", "Background text 1", "Bold 2", "Italic 2", "Underline 2", "Colored text 2", "Background text 2" ]) { | ||||
|         await expect(rootList.locator("li").nth(index++)).toContainText(highlightedEl); | ||||
|     } | ||||
| }); | ||||
|  | ||||
										
											Binary file not shown.
										
									
								
							
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Elian Doran
						Elian Doran