From 872c9fbf683590b6547513a1f7e161ae46d69752 Mon Sep 17 00:00:00 2001 From: Pieter Stols Date: Mon, 29 Apr 2024 16:35:59 +0200 Subject: [PATCH] added cypress --- .eslintrc.json | 6 +- components/Header.jsx | 4 +- cypress.config.js | 9 + cypress/e2e/clientFlow.spec.cy.js | 44 ++ cypress/fixtures/example.json | 5 + cypress/support/commands.js | 25 + cypress/support/e2e.js | 20 + package.json | 15 +- pages/add-client.jsx | 6 + yarn.lock | 736 +++++++++++++++++++++++++++++- 10 files changed, 850 insertions(+), 20 deletions(-) create mode 100644 cypress.config.js create mode 100644 cypress/e2e/clientFlow.spec.cy.js create mode 100644 cypress/fixtures/example.json create mode 100644 cypress/support/commands.js create mode 100644 cypress/support/e2e.js diff --git a/.eslintrc.json b/.eslintrc.json index afdb519..d1f8ee6 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -4,7 +4,11 @@ "es6": true, "node": true }, - "extends": ["eslint:recommended", "plugin:react/recommended"], + "extends": [ + "eslint:recommended", + "plugin:react/recommended", + "eslint-plugin-cypress" + ], "globals": { "Atomics": "readonly", "SharedArrayBuffer": "readonly" diff --git a/components/Header.jsx b/components/Header.jsx index e043ed7..28bb9a0 100644 --- a/components/Header.jsx +++ b/components/Header.jsx @@ -17,7 +17,9 @@ const Header = () => (