mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-10-31 04:51:31 +08:00 
			
		
		
		
	test(i18n): add refresh button click after language change
This commit is contained in:
		
							parent
							
								
									e85b7f5e79
								
							
						
					
					
						commit
						fd0018677c
					
				| @ -47,6 +47,10 @@ test("User can change language from settings", async ({ page, context }) => { | |||||||
| 
 | 
 | ||||||
|     // Select Chinese and ensure the translation is set.
 |     // Select Chinese and ensure the translation is set.
 | ||||||
|     await languageCombobox.selectOption("cn"); |     await languageCombobox.selectOption("cn"); | ||||||
|  | 
 | ||||||
|  |     // Press the refresh button.
 | ||||||
|  |     await app.currentNoteSplit.getByRole("button", { name: "Restart the application" }).click(); | ||||||
|  | 
 | ||||||
|     await expect(app.currentNoteSplit).toContainText("一周的第一天", { timeout: 15000 }); |     await expect(app.currentNoteSplit).toContainText("一周的第一天", { timeout: 15000 }); | ||||||
|     await expect(languageCombobox).toHaveValue("cn"); |     await expect(languageCombobox).toHaveValue("cn"); | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 --global
						--global