Skip to content

Commit

Permalink
Merge pull request #122 from Nehtaro/QA
Browse files Browse the repository at this point in the history
Fixed Clipboard
  • Loading branch information
abbeycampbell authored Oct 31, 2019
2 parents fabfe58 + 9aa240b commit 5e59407
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@

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.
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

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion src/manifest.json
Original file line number Diff line number Diff line change
@@ -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": [
Expand Down
6 changes: 5 additions & 1 deletion src/popup/components/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,11 @@ export default () => {

const copyToClipboard = async (): Promise<void> => {
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);
}
Expand Down

0 comments on commit 5e59407

Please sign in to comment.