mirror of https://github.com/apache/archiva.git
make test more resilient to whitespace in titles
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@834410 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
737ef89580
commit
d6e13a5e3b
|
@ -60,8 +60,6 @@ public abstract class AbstractSeleniumTest {
|
||||||
|
|
||||||
//baseUrl = getProperty( "BASE_URL" );
|
//baseUrl = getProperty( "BASE_URL" );
|
||||||
maxWaitTimeInMs = getProperty( "MAX_WAIT_TIME_IN_MS" );
|
maxWaitTimeInMs = getProperty( "MAX_WAIT_TIME_IN_MS" );
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -141,7 +139,9 @@ public abstract class AbstractSeleniumTest {
|
||||||
|
|
||||||
public void assertPage( String title )
|
public void assertPage( String title )
|
||||||
{
|
{
|
||||||
Assert.assertEquals( getSelenium().getTitle(), title );
|
// Collapse spaces
|
||||||
|
String actualTitle = getSelenium().getTitle().replaceAll( "[ \n\r]+", " " );
|
||||||
|
Assert.assertEquals( actualTitle, title );
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getTitle()
|
public String getTitle()
|
||||||
|
|
Loading…
Reference in New Issue