Skip to content

Commit

Permalink
Move cypress and dummy app under test folder
Browse files Browse the repository at this point in the history
  • Loading branch information
RobbieTheWagner committed Aug 20, 2018
1 parent cf794b6 commit 1cd13d4
Show file tree
Hide file tree
Showing 16 changed files with 14 additions and 102 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/.log/
/.nyc_output/
/coverage/
/cypress/videos/
/cypress/
/dist/
/node_modules/
/.DS_Store
Expand Down
2 changes: 2 additions & 0 deletions cypress.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
{
"fixturesFolder": "test/fixtures",
"integrationFolder": "test/integration",
"video": false
}
31 changes: 0 additions & 31 deletions cypress/.eslintrc.js

This file was deleted.

17 changes: 0 additions & 17 deletions cypress/plugins/index.js

This file was deleted.

25 changes: 0 additions & 25 deletions cypress/support/commands.js

This file was deleted.

20 changes: 0 additions & 20 deletions cypress/support/index.js

This file was deleted.

9 changes: 6 additions & 3 deletions test/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,13 @@ module.exports = {
'plugin:mocha/recommended'
],
globals: {
document: false,
window: false,
Cypress: false,
Shepherd: false,
assert: false,
Shepherd: false
cy: false,
document: false,
expect: false,
window: false
},
env: {
browser: false,
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 4 additions & 4 deletions cypress/dummy/index.html → test/dummy/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
<link rel="stylesheet" href="/dist/css/shepherd-theme-arrows.css"/>

<!-- Welcome docs styles -->
<link rel="stylesheet" href="/cypress/dummy/css/prism.css"/>
<link rel="stylesheet" href="/cypress/dummy/css/welcome.css"/>
<link rel="stylesheet" href="css/prism.css"/>
<link rel="stylesheet" href="css/welcome.css"/>
</head>

<body>
Expand Down Expand Up @@ -66,7 +66,7 @@ <h3>Example</h3>
</p>
</div>
<div>
<img src="/cypress/dummy/sheep.svg"/>
<img src="sheep.svg"/>
</div>
</div>
</div>
Expand All @@ -77,6 +77,6 @@ <h3>Example</h3>
<script src="/dist/js/shepherd.js"></script>

<!-- Welcome page -->
<script src="/cypress/dummy/js/prism.js"></script>
<script src="js/prism.js"></script>
</body>
</html>
File renamed without changes.
File renamed without changes
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ describe('Shepherd Acceptance Tests', () => {
beforeEach(() => {
Shepherd = null;

cy.visit('http://localhost:8080/cypress/dummy/', {
cy.visit('http://localhost:8080/test/dummy/', {
onLoad(contentWindow) {
if (contentWindow.Shepherd) {
return Shepherd = contentWindow.Shepherd;
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit 1cd13d4

Please sign in to comment.