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.selenium.visualcomparison.VisualComparer |
visualComparer |
jiraWebTestClassRules, webTestRule
backdoor, jira, logger, pageBinder
Constructor and Description |
---|
JiraVisualRegressionTest() |
Modifier and Type | Method and Description |
---|---|
protected void |
addElementsToIgnore(org.openqa.selenium.By selector)
Ignore elements on the page.
|
void |
assertPageMatches(String screenshotId,
String url) |
void |
assertPageMatches(String screenshotId,
String url,
int timeout) |
protected void |
assertUIMatches(String id) |
protected void |
clickOnElement(String cssSelector) |
protected void |
clickOnElement(String cssSelector,
boolean waitForPageToLoad) |
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() |
getBaseClassRule, getBaseRule
@Inject protected com.atlassian.selenium.visualcomparison.VisualComparableClient client
protected com.atlassian.selenium.visualcomparison.VisualComparer visualComparer
public final org.openqa.selenium.Dimension DEFAULT_DIMENSION
public void resetVisualComparer()
protected void resizeWindowToDefaultDimentions()
protected void assertUIMatches(String id)
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)
selector
- a means by which to find elements to ignore.Copyright © 2002-2015 Atlassian. All Rights Reserved.