From 0239331a87177ae41a62c300715208f1a0f2cbd7 Mon Sep 17 00:00:00 2001 From: Jay Deshmukh <35005482+jay-deshmukh@users.noreply.github.com> Date: Fri, 20 Oct 2023 11:40:19 +0530 Subject: [PATCH] add test for CopyToClipboard component (#304) * add test for CopyToClipboard component * modify test description --- .../CopyToClipboard/CopyToClipboard.test.js | 30 ++++++++++++++++--- 1 file changed, 26 insertions(+), 4 deletions(-) diff --git a/src/components/CopyToClipboard/CopyToClipboard.test.js b/src/components/CopyToClipboard/CopyToClipboard.test.js index 86c56b2e..29277c87 100644 --- a/src/components/CopyToClipboard/CopyToClipboard.test.js +++ b/src/components/CopyToClipboard/CopyToClipboard.test.js @@ -1,7 +1,29 @@ -import CoopyToClipboard from './index'; +import React from 'react'; +import CopyToClipboard from './index'; +import Button from '../Button' describe('CoopyToClipboard', () => { - it('TODO', () => { - expect(true).to.equal(true); + it('Test component rendering and Test copy functionality', () => { + const textToCopy = "boooo"; + const displayText = "BUTTON_TEST_NAME" + cy.mount( +