Skip to content

Commit

Permalink
updated docker tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mjhea0 committed Aug 1, 2018
1 parent 45bbdcb commit ca4f9e8
Show file tree
Hide file tree
Showing 16 changed files with 284 additions and 228 deletions.
6 changes: 4 additions & 2 deletions .gitignore
@@ -1,5 +1,7 @@
.DS_Store
node_modules/
npm-debug.log

node_modules/
dist/
.Trash-0/
docker/cypress/snapshots/*
!docker/cypress/snapshots/.gitkeep
6 changes: 6 additions & 0 deletions docker/cypress/integration/main.spec.js
Expand Up @@ -18,4 +18,10 @@ describe('Visual Regression Example', () => {
cy.compareSnapshot('login');
});

it('should display the JSON correctly', () => {
cy.visit(`/04.html`);
cy.get('H1').contains('bar');
cy.compareSnapshot('bar');
});

});
File renamed without changes.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
21 changes: 21 additions & 0 deletions docker/web/04.html
@@ -0,0 +1,21 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Base</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
</head>
<body>
<div class="container">
<h1></h1>
</div>
<script src="https://code.jquery.com/jquery-2.2.4.min.js"></script>
<script>
$(() => {
$.getJSON('test.json', (data) => {
$('h1').append(data.foo);
});
});
</script>
</body>
</html>
3 changes: 3 additions & 0 deletions docker/web/test.json
@@ -0,0 +1,3 @@
{
"foo": "bar"
}

0 comments on commit ca4f9e8

Please sign in to comment.