From 2edffe388bb224764258678292c245f8c81f6353 Mon Sep 17 00:00:00 2001 From: John Coburn <jcoburn@ebsco.com> Date: Fri, 22 Nov 2024 11:26:31 -0600 Subject: [PATCH] add component-index.html --- lib/test/cypress-service.js | 2 ++ lib/test/support/component-index.html | 14 ++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 lib/test/support/component-index.html diff --git a/lib/test/cypress-service.js b/lib/test/cypress-service.js index 7bcf5ad..3f97ea0 100644 --- a/lib/test/cypress-service.js +++ b/lib/test/cypress-service.js @@ -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); diff --git a/lib/test/support/component-index.html b/lib/test/support/component-index.html new file mode 100644 index 0000000..1046822 --- /dev/null +++ b/lib/test/support/component-index.html @@ -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> \ No newline at end of file