mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-10-31 13:01:31 +08:00 
			
		
		
		
	chore(e2e): check katex is rendered in ToC
This commit is contained in:
		
							parent
							
								
									b44f4e0f74
								
							
						
					
					
						commit
						1530a09dc8
					
				| @ -25,6 +25,10 @@ test("Table of contents is displayed", async ({ page }) => { | ||||
|     await expect(rootList.locator("> ol").first().locator("> li").first()).toHaveText("Heading 1.1"); | ||||
|     await expect(rootList.locator("> ol").first().locator("> li").nth(1)).toHaveText("Heading 1.2"); | ||||
| 
 | ||||
|     // Heading 2 has a Katex equation, check if it's rendered.
 | ||||
|     await expect(rootList.locator("> li").nth(1)).toContainText("Heading 2"); | ||||
|     await expect(rootList.locator("> li").nth(1).locator(".katex")).toBeAttached(); | ||||
| 
 | ||||
|     await expect(rootList.locator("> ol")).toHaveCount(2); | ||||
|     await expect(rootList.locator("> ol").nth(1).locator("> li")).toHaveCount(2); | ||||
|     await expect(rootList.locator("> ol").nth(1).locator("> ol")).toHaveCount(1); | ||||
|  | ||||
										
											Binary file not shown.
										
									
								
							
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Elian Doran
						Elian Doran