diff --git a/client/cypress.config.js b/client/cypress.config.js new file mode 100644 index 00000000..6874dca6 --- /dev/null +++ b/client/cypress.config.js @@ -0,0 +1,10 @@ +const { defineConfig } = require("cypress"); + +module.exports = defineConfig({ + component: { + devServer: { + framework: "nuxt", + bundler: "webpack", + }, + }, +}); diff --git a/client/cypress/support/commands.js b/client/cypress/support/commands.js new file mode 100644 index 00000000..66ea16ef --- /dev/null +++ b/client/cypress/support/commands.js @@ -0,0 +1,25 @@ +// *********************************************** +// This example commands.js shows you how to +// create various custom commands and overwrite +// existing commands. +// +// For more comprehensive examples of custom +// commands please read more here: +// https://on.cypress.io/custom-commands +// *********************************************** +// +// +// -- This is a parent command -- +// Cypress.Commands.add('login', (email, password) => { ... }) +// +// +// -- This is a child command -- +// Cypress.Commands.add('drag', { prevSubject: 'element'}, (subject, options) => { ... }) +// +// +// -- This is a dual command -- +// Cypress.Commands.add('dismiss', { prevSubject: 'optional'}, (subject, options) => { ... }) +// +// +// -- This will overwrite an existing command -- +// Cypress.Commands.overwrite('visit', (originalFn, url, options) => { ... }) \ No newline at end of file diff --git a/client/cypress/support/component-index.html b/client/cypress/support/component-index.html new file mode 100644 index 00000000..a19e8295 --- /dev/null +++ b/client/cypress/support/component-index.html @@ -0,0 +1,13 @@ + + +
+ + + + +