Skip to content

Commit

Permalink
Update Smoke-Tests-Results.md
Browse files Browse the repository at this point in the history
  • Loading branch information
asaccool authored Apr 10, 2024
1 parent 8c54338 commit 8b56c6f
Showing 1 changed file with 22 additions and 3 deletions.
25 changes: 22 additions & 3 deletions pages/contributors/Smoke-Tests-Results.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,26 @@ parent: OpenDSU Contributors
nav_order: 1
---

<div class="smoke-test-results">
<iframe src="https://raw.githubusercontent.com/OpenDSU/opendsu-sdk/test_reports/testReport.html" allowfullscreen="" frameborder="0">
</iframe>
<div id="smoke-test-report-content">
</div>

<script>
document.addEventListener('DOMContentLoaded', function() {
let url = 'https://raw.githubusercontent.com/OpenDSU/opendsu-sdk/test_reports/testReport.html';
fetch(url)
.then(function(response) {
if (response.ok) {
return response.text();
} else {
throw new Error('Could not fetch the report');
}
})
.then(function(html) {
document.getElementById('test-report-content').innerHTML = html;
})
.catch(function(error) {
console.error('Error fetching the report:', error);
document.getElementById('test-report-content').innerHTML = `<p>Error loading report. Please check it at the following url: ${url}</p>`;
});
});
</script>

0 comments on commit 8b56c6f

Please sign in to comment.