From f4bcccf8447670da22eeb96349aa74db2600beb8 Mon Sep 17 00:00:00 2001 From: Adam Stover Date: Wed, 30 Oct 2019 22:26:59 -0700 Subject: [PATCH 1/4] fixed copyToClipboard bug --- src/popup/components/App.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/popup/components/App.tsx b/src/popup/components/App.tsx index 887ba76..999af2c 100644 --- a/src/popup/components/App.tsx +++ b/src/popup/components/App.tsx @@ -63,7 +63,11 @@ export default () => { const copyToClipboard = async (): Promise => { try { - await navigator.clipboard.writeText(codeBlocks.join('\n')); + let toBeCopied: string = ''; + for (let i = 0; i !== codeBlocks.length; i += 1) { + toBeCopied += codeBlocks[i].value.concat('\n'); + } + await navigator.clipboard.writeText(toBeCopied); } catch (error) { throw new Error(error); } From 16933196c5f6986a428bb70cd387329ed2b28333 Mon Sep 17 00:00:00 2001 From: Adam Stover Date: Wed, 30 Oct 2019 22:27:40 -0700 Subject: [PATCH 2/4] updated to 1.0.1 --- package.json | 2 +- src/manifest.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 95f46b6..f5a0221 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cypress-recorder", - "version": "1.0.0", + "version": "1.0.1", "description": "Records a user session and generates cypress code for automation and testing purposes.", "main": "index.js", "scripts": { diff --git a/src/manifest.json b/src/manifest.json index dacc777..19f1f10 100644 --- a/src/manifest.json +++ b/src/manifest.json @@ -1,7 +1,7 @@ { "name": "Cypress Recorder", "short_name": "Cypress Rec", - "version": "1.0.0", + "version": "1.0.1", "description": "Records a user session and generates cypress code for automation and testing purposes.", "manifest_version": 2, "permissions": [ From 33f4d304d72be713e9b4e7aaba4321fb10ff2d76 Mon Sep 17 00:00:00 2001 From: Adam Stover Date: Wed, 30 Oct 2019 22:51:45 -0700 Subject: [PATCH 3/4] updated readme to include screenshot --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 27d8fa1..c6b9e26 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,8 @@ Cypress Recorder is a Chrome developer tool that records user interaction within a web application and generates Cypress scripts to allow the developer to replicate that particular session. This will speed up your development cycle by facilitating the creation of unit and integration tests. +![Screenshot](https://user-images.githubusercontent.com/53627801/67922272-8d292d00-fb67-11e9-836e-998d912617be.png) + ## Getting Started Download Cypress Recorder from the Chrome Web Store. That's it! Once you see our icon at the upper-right of your browser window, you are ready to start generating Cypress scripts. From 9aa240ba1747453739fc2f605b350156a3bf26f9 Mon Sep 17 00:00:00 2001 From: Adam Stover Date: Wed, 30 Oct 2019 22:53:42 -0700 Subject: [PATCH 4/4] updated readme to include link to Cypress Recorder on the chrome web store --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index c6b9e26..a850fb8 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ Cypress Recorder is a Chrome developer tool that records user interaction within ## Getting Started -Download Cypress Recorder from the Chrome Web Store. That's it! Once you see our icon at the upper-right of your browser window, you are ready to start generating Cypress scripts. +Download Cypress Recorder from the [Chrome Web Store](https://chrome.google.com/webstore/detail/cypress-recorder/glcapdcacdfkokcmicllhcjigeodacab). That's it! Once you see our icon at the upper-right of your browser window, you are ready to start generating Cypress scripts. ## Features