From 277288db27ab3768e456730ee2f6fc20c47dfeee Mon Sep 17 00:00:00 2001 From: Aadrika Bhargava <64789514+reachaadrika@users.noreply.github.com> Date: Sun, 16 Jul 2023 17:51:05 +0530 Subject: [PATCH] feat: adding unit tests for InlineHelp ,MacWindow , Newsletter , Profile ,Remember and Warning components (#1827) Co-authored-by: akshatnema <20bcs022@iiitdmj.ac.in>%0ACo-authored-by: Akshat Nema <76521428+akshatnema@users.noreply.github.com> --- components/InlineHelp.js | 4 +-- components/MacWindow.js | 8 ++--- components/NewsletterSubscribe.js | 6 ++-- components/Profile.js | 5 +-- components/Remember.js | 6 ++-- components/Warning.js | 6 ++-- cypress/test/InlineHelp.cy.js | 20 ++++++++++++ cypress/test/MacWindow.cy.js | 35 ++++++++++++++++++++ cypress/test/NewsletterSubscribe.cy.js | 18 +++++++++++ cypress/test/Profile.cy.js | 44 ++++++++++++++++++++++++++ cypress/test/Remember.cy.js | 42 ++++++++++++++++++++++++ cypress/test/Warning.cy.js | 22 +++++++++++++ 12 files changed, 199 insertions(+), 17 deletions(-) create mode 100644 cypress/test/InlineHelp.cy.js create mode 100644 cypress/test/MacWindow.cy.js create mode 100644 cypress/test/NewsletterSubscribe.cy.js create mode 100644 cypress/test/Profile.cy.js create mode 100644 cypress/test/Remember.cy.js create mode 100644 cypress/test/Warning.cy.js diff --git a/components/InlineHelp.js b/components/InlineHelp.js index f052041f30b..41581eb9dbe 100644 --- a/components/InlineHelp.js +++ b/components/InlineHelp.js @@ -18,10 +18,10 @@ export default function InlineHelp({