Skip to content

Commit

Permalink
Possible fix for failing integration tests on Jenkins
Browse files Browse the repository at this point in the history
  • Loading branch information
wakaleo committed Mar 17, 2018
1 parent 44cf2b6 commit a6bdcf4
Show file tree
Hide file tree
Showing 5 changed files with 195 additions and 0 deletions.
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ subprojects {
if (!JavaVersion.current().isJava8Compatible()) {
jvmArgs '-XX:MaxPermSize=256m'
}
systemProperties System.properties
}

// shadowJar {
Expand Down
18 changes: 18 additions & 0 deletions src/test/resources/sample-web-site/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Sample web site</title>
</head>
<body>

<h1>The Journey Demo</h1>

<a href="profile.html" class="view-profile">View your profile</a>

<div class="menu">

</div>

</body>
</html>
20 changes: 20 additions & 0 deletions src/test/resources/sample-web-site/profile-bank-balance.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>My Bank Balances</title>
</head>
<body>

<table>
<tr>
<th>Current Account</th>
<th>Savings Account</th>
</tr>
<tr>
<td id="currentAccountBalance">£100.36</td>
<td id="savingsAccountBalance">£1024.12</td>
</tr>
</table>
</body>
</html>
22 changes: 22 additions & 0 deletions src/test/resources/sample-web-site/profile-bank.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>My Banking Profile Page</title>
</head>
<body>

<div>
Bank Account:
<p>BSB: <input id="bsb"></p>
<p>Account Name: <input id="accountName"></p>
<p>Account Number: <input id="accountNumber"></p>
</div>

<div>
<iframe src="profile-bank-balance.html" name="profile-bank-balance" width="100%" height="100%" frameBorder="0"></iframe>
</div>


</body>
</html>
134 changes: 134 additions & 0 deletions src/test/resources/sample-web-site/profile.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,134 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>My Profile Page</title>

<script type="text/javascript">
<!--

function initFields() {
hide('name')
displayFieldsAfterDelay();
}

function hide(id) {
var e = document.getElementById(id);
e.style.display = 'none';
}

function show(id) {
var e = document.getElementById(id);
e.style.display = 'block';
}

function displayNamwField() {
show('name')
}

function displayFieldsAfterDelay() {
setTimeout("displayNamwField()", 500);
}

//-->
</script>
</head>
<body onLoad="initFields()">

<h1>My profile</h1>

<form>
<div>
Name: <input type="text" id="name" style="display:none;">
</div>
<div>
Date of birth <input type="text" id="dob">
</div>
<div>
Country:
<select id="country">
<option value="UK">United Kingdom</option>
<option value="FR">France</option>
<option value="ES">Spain</option>
</select>
</div>
<div>
Favorite Color:
<select id="color">
<option value="RED">Red</option>
<option value="BLUE">Blue</option>
<option value="GREEN">Green</option>
</select>
</div>

<span id="invisible" style="display:none">Invisible text</span>
<div>
Contact Preferences:
<select id="contactPreferances" multiple>
<option selected value="EMAIL">Email</option>
<option selected value="POST">Post</option>
<option value="SMS">SMS Message</option>
</select>
</div>

<div>
<iframe src="profile-bank.html" name="profile-bank" height="200px" frameborder="0" scrolling="no"></iframe>
</div>

<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>

<span id="button">A fake button</span>
</form>
</body>
</html>

0 comments on commit a6bdcf4

Please sign in to comment.