Skip to content

Commit

Permalink
Merge pull request #51 from rsearls/wise-273-html-body-fixed-size
Browse files Browse the repository at this point in the history
Wise 273 html body fixed size
  • Loading branch information
asoldano committed Mar 24, 2016
2 parents 0f6b24d + 46c0e96 commit 614ec9f
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 4 deletions.
12 changes: 12 additions & 0 deletions gui/src/main/webapp/Main.css
Original file line number Diff line number Diff line change
Expand Up @@ -225,4 +225,16 @@ div.urlValidationError {

.wise-credentials-error {
color: red;
}

/* boarder around all screens */
#wise-boarder-control {
margin-left:auto;
margin-right:auto;
width:860px;
padding-bottom: 20px;
border-top: thin solid lightgrey;
border-left: thin solid lightgrey;
border-right: thin solid lightgrey;
border-bottom: thin solid lightgrey;
}
2 changes: 1 addition & 1 deletion gui/src/main/webapp/Main.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
<!-- you can leave the body empty if you want -->
<!-- to create a completely dynamic UI. -->
<!-- -->
<body>
<body id="wise-boarder-control">
<div id="wise-banner">
<a href="." style="border:0px">
<img src="images/wise-banner.png" border="0"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.Assert;
import org.openqa.selenium.WebDriver;

/**
Expand All @@ -33,12 +34,25 @@ public class EndpointAuthenticationTestCase extends WiseTest {
@Before
public void before() {
setBrowser(browser);

userAuthentication(baseURL.toString());

Graphene.goTo(StartPage.class);
Graphene.waitModel().withTimeout(30, TimeUnit.SECONDS);

loadStepOneOfThree(PropUtils.get("homepage.securityDomain3.input.url"));
try {
// trick integration-test phase into running this test correctly.
String value = System.setProperty("suite.url", "");

loadStepOneOfThree(PropUtils.get("homepage.securityDomain3.input.url"));

// reset original value
if (value != null) {
System.setProperty("suite.url", value);
}
} catch (java.lang.RuntimeException e) {
Assert.fail("Unsetting or Resetting system property failed.\n" + e);
}
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.Assert;
import org.openqa.selenium.WebDriver;

/**
Expand All @@ -38,7 +39,19 @@ public void before() {
Graphene.goTo(StartPage.class);
Graphene.waitModel().withTimeout(30, TimeUnit.SECONDS);

loadStepOneOfThree(PropUtils.get("homepage.jbws2278.input.url"));
try {
// trick integration-test phase into running this test correctly.
String value = System.setProperty("suite.url", "");

loadStepOneOfThree(PropUtils.get("homepage.jbws2278.input.url"));

// reset original value
if (value != null) {
System.setProperty("suite.url", value);
}
} catch (java.lang.RuntimeException e) {
Assert.fail("Unsetting or Resetting system property failed.\n" + e);
}
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,11 @@ protected void loadStepOneOfThree(String homepageInputUrl) {
// property runs test with 2 different URLs
// One requires input be set the other does not
String value = System.getProperty("suite.url");
if (value == null || value.endsWith("wise")) {
if (value == null || value.isEmpty() || value.endsWith("wise")) {
inputBox.clear();
inputBox.sendKeys(homepageInputUrl);
}

readWSDLButton.click();
Graphene.waitModel().withTimeout(30, TimeUnit.SECONDS).until()
.element(By.className(PropUtils.get("tag.tree.item"))).is().visible();
Expand Down

0 comments on commit 614ec9f

Please sign in to comment.