Fix console screenshot tests flakiness (#2590)
@@ -150,6 +150,11 @@ public class ConsoleScreenshotTest extends WebDriverTestCase {
|
||||
private void loadHomePage() throws InterruptedException {
|
||||
driver.get(server.getUrl("/console/index.html"));
|
||||
driver.waitForElementToNotExist(By.tagName("mat-progress-bar"));
|
||||
// Script that set cursor to transparent to prevent blanking cursor flakiness when comparing
|
||||
// screenshots
|
||||
String script =
|
||||
"document.styleSheets[0].insertRule(\"html * {caret-color: transparent !important;}\")";
|
||||
driver.executeScript(script);
|
||||
}
|
||||
|
||||
private void selectRegistrar() throws InterruptedException {
|
||||
|
||||
|
Before Width: | Height: | Size: 49 KiB After Width: | Height: | Size: 49 KiB |
|
Before Width: | Height: | Size: 35 KiB After Width: | Height: | Size: 35 KiB |
|
Before Width: | Height: | Size: 133 KiB After Width: | Height: | Size: 133 KiB |
|
Before Width: | Height: | Size: 35 KiB After Width: | Height: | Size: 35 KiB |
|
Before Width: | Height: | Size: 41 KiB After Width: | Height: | Size: 41 KiB |
|
Before Width: | Height: | Size: 42 KiB After Width: | Height: | Size: 42 KiB |
|
Before Width: | Height: | Size: 51 KiB After Width: | Height: | Size: 51 KiB |
|
Before Width: | Height: | Size: 39 KiB After Width: | Height: | Size: 39 KiB |