# cypress-plone

> Cypress plugin for the Plone CMS.

Latest version **1.0.0** (published 2020-07-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install cypress-plone
pnpm add cypress-plone
yarn add cypress-plone
bun add cypress-plone
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2020-07-13 |
| First published | 2020-07-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Thomas Massmann |
| Maintainers | thomasmassmann |
| Keywords | cypress, cypress-plugin, cypress-io, testing, plone |

## Links

- npm: https://www.npmjs.com/package/cypress-plone
- Repository: https://gitlab.com/it-spirit/cypress-plone
- Homepage: https://gitlab.com/it-spirit/cypress-plone#readme
- Issues: https://gitlab.com/it-spirit/cypress-plone/issues
- npm.io page: https://npm.io/package/cypress-plone

## Alternatives

- [@snazzah/davey](https://npm.io/package/@snazzah/davey.md) — 1.5M weekly downloads
- [@vendure/testing](https://npm.io/package/@vendure/testing.md) — 8.3K weekly downloads
- [vue-simple-context-menu](https://npm.io/package/vue-simple-context-menu.md) — 6.6K weekly downloads
- [cypress-webpack-preprocessor-v5](https://npm.io/package/cypress-webpack-preprocessor-v5.md) — 2.1K weekly downloads
- [@backstage/plugin-catalog-backend-module-puppetdb](https://npm.io/package/@backstage/plugin-catalog-backend-module-puppetdb.md) — 1.3K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2020-07-13

## README

# cypress-plone

Cypress plugin for the Plone CMS.

## Install with npm

```shell
npm install -D cypress-plone
```

## Install with Yarn

```shell
yarn add cypress-plone --dev
```

Then include in your project's `cypress/support/index.js`

```js
require("cypress-plone");
```

## Use

After installation your `cy` object will have a `ploneLoginAsUser` and a `ploneLoginAsRole` command.

```js
describe("Show how to activate the add-on", () => {
  beforeEach(() => {
    cy.ploneLoginAsRole("Manager");
  });

  it("can be installed", () => {
    cy.visit("/prefs_install_products_form");
    //...
  });
});
```

```js
describe("Show how to activate the add-on", () => {
  beforeEach(() => {
    cy.ploneLoginAsUser("admin", "topsecret");
  });

  it("can be installed", () => {
    cy.visit("/prefs_install_products_form");
    //...
  });
});
```

You can customize the username and password combinations in your cypress config:

```json
{
  "baseUrl": "http://localhost:8080/Plone",
  "env": {
    "SITE_OWNER_NAME": "admin",
    "SITE_OWNER_PASSWORD": "admin"
  }
}
```

## License

This project is licensed under the terms of the [MIT license](/LICENSE.md).

---
_Source: https://npm.io/package/cypress-plone · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
