Skip to content

Commit e558e57

Browse files
Merge pull request #22 from roy-de-kleijn/percy
ignore on different page
2 parents d056e68 + a142e69 commit e558e57

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,22 @@
11
package com.browserstack.test.suites.login;
22

33
import com.browserstack.test.suites.TestBase;
4+
import org.openqa.selenium.By;
45
import org.openqa.selenium.JavascriptExecutor;
6+
import org.openqa.selenium.support.ui.ExpectedConditions;
57
import org.testng.annotations.Test;
68

79
public class IgnoreRegionVisualTest extends TestBase {
810

911
@Test
1012
public void ignoreLogo() {
13+
getDriver().findElement(By.id("signin")).click();
14+
wait.until(ExpectedConditions.visibilityOfElementLocated(By.cssSelector("#username input")));
15+
1116
JavascriptExecutor ex = ((JavascriptExecutor) getDriver());
12-
String percyCSS = ".Navbar_logo__26S5Y {visibility: hidden}";
17+
String percyCSS = "svg {visibility: hidden}";
1318

14-
percy.snapshot("Check Homepage with ignored logo", null, 1024, false, percyCSS);
19+
percy.snapshot("Check Loginpage with ignored logo", null, 1024, false, percyCSS);
1520
}
1621

1722
}

0 commit comments

Comments
 (0)