public abstract class JiraVisualRegressionTest extends BaseJiraWebTest
Modifier and Type | Field and Description |
---|---|
protected com.atlassian.selenium.visualcomparison.VisualComparableClient |
client |
org.openqa.selenium.Dimension |
DEFAULT_DIMENSION |
protected com.atlassian.pageobjects.elements.PageElementFinder |
pageElementFinder |
protected com.atlassian.selenium.visualcomparison.VisualComparer |
visualComparer |
jiraWebTestClassRules, webTestRule
backdoor, jira, logger, mailHelper, pageBinder
Constructor and Description |
---|
JiraVisualRegressionTest() |
Modifier and Type | Method and Description |
---|---|
protected void |
addElementsToIgnore(org.openqa.selenium.By selector)
Ignore elements on the page.
|
protected void |
addElementsToIgnore(List<org.openqa.selenium.WebElement> elements) |
void |
assertPageMatches(String screenshotId,
String url) |
void |
assertPageMatches(String screenshotId,
String url,
int timeout) |
protected void |
assertUIMatches(String id) |
protected void |
assertUIMatchesIgnoringElements(String id,
org.openqa.selenium.By selector) |
protected void |
clickOnElement(String cssSelector) |
protected void |
clickOnElement(String cssSelector,
boolean waitForPageToLoad) |
protected void |
closeInsiderPopUp() |
String |
getBaselineScreenshotFilePath()
The location of the baseline screenshots in the file system of the machine the tests are running on.
|
protected void |
goTo(String url) |
protected void |
goToErrorPage(String url) |
protected void |
removeUPMCount()
Removes the little yellow gem that appears on the UPM icon to indicate there are new updates to plugins.
|
void |
resetVisualComparer() |
protected void |
resizeWindowToDefaultDimentions() |
getBackdoor, getBaseClassRule, getBaseRule
@Inject protected com.atlassian.selenium.visualcomparison.VisualComparableClient client
protected com.atlassian.selenium.visualcomparison.VisualComparer visualComparer
@Inject protected com.atlassian.pageobjects.elements.PageElementFinder pageElementFinder
public final org.openqa.selenium.Dimension DEFAULT_DIMENSION
public void resetVisualComparer()
protected void resizeWindowToDefaultDimentions()
protected void assertUIMatches(String id)
protected void assertUIMatchesIgnoringElements(String id, org.openqa.selenium.By selector)
protected void removeUPMCount()
public String getBaselineScreenshotFilePath()
protected void goTo(String url)
protected void goToErrorPage(String url)
protected void clickOnElement(String cssSelector)
protected void clickOnElement(String cssSelector, boolean waitForPageToLoad)
protected void addElementsToIgnore(org.openqa.selenium.By selector)
TODO JRADEV-15992: Extract this in to the visualComparer such that the screen resolution hacks can be removed.
selector
- a means by which to find elements to ignore.protected void addElementsToIgnore(List<org.openqa.selenium.WebElement> elements)
protected void closeInsiderPopUp()
Copyright © 2002-2017 Atlassian. All Rights Reserved.