From b900d37dc041ebc1ea64e59b645c21b49d94d3c7 Mon Sep 17 00:00:00 2001 From: Torleif Berger Date: Fri, 13 Dec 2019 13:46:12 +0100 Subject: [PATCH] Emptied copied readme --- README.md | 43 +------------------------------------------ 1 file changed, 1 insertion(+), 42 deletions(-) diff --git a/README.md b/README.md index b272526..bbc002c 100644 --- a/README.md +++ b/README.md @@ -1,42 +1 @@ -# cypress-helper-getcy - -A simple [Cypress](https://www.cypress.io/) [command](https://docs.cypress.io/api/cypress-api/custom-commands.html) for getting elements via `data-cy` attributes. - -[![npm version](https://img.shields.io/npm/v/cypress-helper-getcy.svg?style=flat-square) ![npm downloads](https://img.shields.io/npm/dm/cypress-helper-getcy?style=flat-square)](https://www.npmjs.com/package/cypress-helper-getcy) - -## Inspiration - -- [Cypress Best Practices](https://docs.cypress.io/guides/references/best-practices.html#Selecting-Elements) - -### Why not just `cy.get('[data-cy=submit]')`? - -Well, I like clean tests, and I found both the test code and logs to be rather ugly and harder to read when doing that. So I wanted something cleaner, and made this, which cleans up both the code and the log. 👍 - -## Setup - -### 1. Install - -```shell -npm install --save-dev cypress-helper-getcy -``` - -### 2. Include - -```js -// E.g. in cypress/support/index.js -include 'cypress-helper-getcy'; -``` - -## Usage - -```html -
-``` - -```js -it('finds my test subject', () => { - cy.getCy('my-test-subject').should('exist'); -}); -``` - -_**Note:** See [tests](test/tests/getCy.ts) for more examples._ +# cypress-hmr-restarter