mirror of https://github.com/vector-im/riot-web
				
				
				
			Update tests for new unsupported browser view (#12836)
* Update tests for new unsupported browser view Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Add new desktop_builds config options Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Iterate Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --------- Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>pull/24763/head
							parent
							
								
									b0392b8fc3
								
							
						
					
					
						commit
						66a89d8a84
					
				| 
						 | 
					@ -35,7 +35,7 @@ test(`shows error page if browser lacks WebAssembly support`, async ({ page }) =
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    // Lack of WebAssembly support doesn't cause the bundle to fail loading, so we get
 | 
					    // Lack of WebAssembly support doesn't cause the bundle to fail loading, so we get
 | 
				
			||||||
    // CompatibilityView, i.e. no iframes.
 | 
					    // CompatibilityView, i.e. no iframes.
 | 
				
			||||||
    const header = page.getByText("Unsupported browser");
 | 
					    const header = page.getByText("Element does not support this browser");
 | 
				
			||||||
    await expect(header).toBeVisible();
 | 
					    await expect(header).toBeVisible();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    await expect(page).toMatchScreenshot("unsupported-browser-CompatibilityView.png");
 | 
					    await expect(page).toMatchScreenshot("unsupported-browser-CompatibilityView.png");
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
										
											Binary file not shown.
										
									
								
							| 
		 Before Width: | Height: | Size: 94 KiB After Width: | Height: | Size: 215 KiB  | 
| 
						 | 
					@ -75,6 +75,10 @@ export interface IConfigOptions {
 | 
				
			||||||
        available: boolean;
 | 
					        available: boolean;
 | 
				
			||||||
        logo: string; // url
 | 
					        logo: string; // url
 | 
				
			||||||
        url: string; // download url
 | 
					        url: string; // download url
 | 
				
			||||||
 | 
					        url_macos?: string;
 | 
				
			||||||
 | 
					        url_win64?: string;
 | 
				
			||||||
 | 
					        url_win32?: string;
 | 
				
			||||||
 | 
					        url_linux?: string;
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
    mobile_builds: {
 | 
					    mobile_builds: {
 | 
				
			||||||
        ios: string | null; // download url
 | 
					        ios: string | null; // download url
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -67,6 +67,10 @@ export const DEFAULTS: DeepReadonly<IConfigOptions> = {
 | 
				
			||||||
        available: true,
 | 
					        available: true,
 | 
				
			||||||
        logo: "vector-icons/1024.png",
 | 
					        logo: "vector-icons/1024.png",
 | 
				
			||||||
        url: "https://element.io/download",
 | 
					        url: "https://element.io/download",
 | 
				
			||||||
 | 
					        url_macos: "https://packages.element.io/desktop/install/macos/Element.dmg",
 | 
				
			||||||
 | 
					        url_win64: "https://packages.element.io/desktop/install/win32/x64/Element%20Setup.exe",
 | 
				
			||||||
 | 
					        url_win32: "https://packages.element.io/desktop/install/win32/ia32/Element%20Setup.exe",
 | 
				
			||||||
 | 
					        url_linux: "https://element.io/download#linux",
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    mobile_builds: {
 | 
					    mobile_builds: {
 | 
				
			||||||
        ios: "https://apps.apple.com/app/vector/id1083446067",
 | 
					        ios: "https://apps.apple.com/app/vector/id1083446067",
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue