Skip to content

Commit

Permalink
add component-index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnC-80 committed Nov 22, 2024
1 parent 4a02fdb commit 2edffe3
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/test/cypress-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ function getBaseCypressConfig(fn = (cfg) => cfg, context) {
},
specPattern: '**/*[.-]test.js',
supportFile: path.resolve(__dirname, 'cypress-support.js'),
supportFolder: path.resolve(__dirname, 'support'),
indexHtmlFile: path.resolve(__dirname, 'support', 'component-index.html'),
},
});
return fn(baseConfig, defineConfig);
Expand Down
14 changes: 14 additions & 0 deletions lib/test/support/component-index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<title>Components App</title>

</head>
<body>

<div data-cy-root></div>
</body>
</html>

0 comments on commit 2edffe3

Please sign in to comment.