Skip to content

Commit 06532ee

Browse files
committed
chore: adjust to new package name
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
1 parent 56b7f6f commit 06532ee

2 files changed

Lines changed: 39 additions & 48 deletions

File tree

README.md

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,10 @@
44
-->
55
# \@nextcloud/e2e-test-server
66

7-
[![REUSE status](https://api.reuse.software/badge/github.com/nextcloud-libraries/nextcloud-cypress)](https://api.reuse.software/info/github.com/nextcloud-libraries/nextcloud-cypress) [![npm last version](https://img.shields.io/npm/v/@nextcloud/e2e-test-server.svg?style=flat-square)](https://www.npmjs.com/package/@nextcloud/e2e-test-server) ![Codecov](https://img.shields.io/codecov/c/github/nextcloud/nextcloud-cypress?style=flat-square)
7+
[![REUSE status](https://api.reuse.software/badge/github.com/nextcloud-libraries/nextcloud-e2e-test-server)](https://api.reuse.software/info/github.com/nextcloud-libraries/nextcloud-e2e-test-server) [![npm last version](https://img.shields.io/npm/v/@nextcloud/e2e-test-server.svg?style=flat-square)](https://www.npmjs.com/package/@nextcloud/e2e-test-server) ![Codecov](https://img.shields.io/codecov/c/github/nextcloud/nextcloud-e2e-test-server?style=flat-square)
88

99
Nextcloud e2e test server and utils for cypress and playwright.
1010

11-
## New package available
12-
13-
`@nextcloud/e2e-test-server` is a more generic version of `@nextcloud/cypress`
14-
that will work nicely with both cypress and playwright.
15-
16-
It will eventually superseed `@nextcloud/cypress`.
17-
When starting a new project we recommend using `@nextcloud/e2e-test-server`.
18-
1911
## Status
2012

2113
This package is currently work in progress and will change significantly until version 1.0.
@@ -88,7 +80,7 @@ export default defineConfig({
8880
## Cypress commands
8981

9082
You can import individual commands or all at once
91-
You can find [the list of all available commands here](https://nextcloud.github.io/nextcloud-cypress/modules/commands.html)
83+
You can find [the list of all available commands here](https://nextcloud.github.io/nextcloud-e2e-test-server/modules/commands.html)
9284

9385
```js
9486
// cypress/support/commands.js
@@ -106,11 +98,11 @@ Cypress.Commands.add('login', login)
10698

10799
## Selectors (:warn: deprecated)
108100

109-
You can find [the list of all available selectors here](https://nextcloud.github.io/nextcloud-cypress/modules/selectors.html)
101+
You can find [the list of all available selectors here](https://nextcloud.github.io/nextcloud-e2e-test-server/modules/selectors.html)
110102

111103
```js
112104
import { UploadPicker as UploadPickerComponent} from '../../dist/index.js'
113-
import { UploadPicker, UploadPickerInput } from '@nextcloud/cypress/selectors'
105+
import { UploadPicker, UploadPickerInput } from '@nextcloud/e2e-test-server/selectors'
114106

115107
describe('UploadPicker rendering', () => {
116108
it('Renders default UploadPicker', () => {

package.json

Lines changed: 35 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,27 @@
22
"name": "@nextcloud/e2e-test-server",
33
"version": "0.2.1",
44
"description": "Nextcloud e2e test server and utils for cypress and playwright",
5-
"publishConfig": {
6-
"access": "public"
5+
"keywords": [
6+
"nextcloud",
7+
"docker",
8+
"e2e",
9+
"testing",
10+
"cypress",
11+
"playwright",
12+
"selector",
13+
"plugins",
14+
"library"
15+
],
16+
"homepage": "https://github.com/nextcloud/nextcloud-e2e-test-server",
17+
"bugs": {
18+
"url": "https://github.com/nextcloud/nextcloud-e2e-test-server/issues"
719
},
8-
"main": "dist/index.cjs",
9-
"module": "dist/index.js",
10-
"types": "dist/index.d.ts",
20+
"repository": {
21+
"type": "git",
22+
"url": "git+https://github.com/nextcloud/nextcloud-e2e-test-server.git"
23+
},
24+
"license": "AGPL-3.0-or-later",
25+
"author": "John Molakvoæ <skjnldsv@protonmail.com>",
1126
"exports": {
1227
"./commands": {
1328
"types": "./dist/commands/index.d.ts",
@@ -40,48 +55,25 @@
4055
"require": "./dist/index.cjs"
4156
}
4257
},
58+
"main": "dist/index.cjs",
59+
"module": "dist/index.js",
60+
"types": "dist/index.d.ts",
4361
"files": [
4462
"dist"
4563
],
46-
"author": "John Molakvoæ <skjnldsv@protonmail.com>",
47-
"contributors": [],
48-
"license": "AGPL-3.0-or-later",
49-
"keywords": [
50-
"nextcloud",
51-
"docker",
52-
"e2e",
53-
"testing",
54-
"cypress",
55-
"playwright",
56-
"selector",
57-
"plugins",
58-
"library"
59-
],
6064
"scripts": {
6165
"build": "rm -rf dist && rollup --config rollup.config.mjs",
6266
"build:doc": "typedoc --out dist/doc lib/commands lib/selectors lib && touch dist/doc/.nojekyll",
6367
"build:instrumented": "rollup --config rollup.instrumented.mjs",
64-
"dev": "echo 'No dev build available, production only' && npm run build",
65-
"watch": "rollup --config rollup.config.mjs --watch",
66-
"test": "npm run build && playwright install chromium --only-shell && playwright test",
6768
"cypress": "npm run cypress:e2e && npm run cypress:component",
68-
"cypress:e2e": "cypress run --e2e",
6969
"cypress:component": "cypress run --component",
70+
"cypress:e2e": "cypress run --e2e",
7071
"cypress:gui": "cypress open",
71-
"start:nextcloud": "node playwright/start-nextcloud-server.mjs"
72-
},
73-
"repository": {
74-
"type": "git",
75-
"url": "git+https://github.com/nextcloud/nextcloud-cypress.git"
76-
},
77-
"bugs": {
78-
"url": "https://github.com/nextcloud/nextcloud-cypress/issues"
79-
},
80-
"engines": {
81-
"node": "^20.0.0",
82-
"npm": "^10.0.0"
72+
"dev": "echo 'No dev build available, production only' && npm run build",
73+
"start:nextcloud": "node playwright/start-nextcloud-server.mjs",
74+
"test": "npm run build && playwright install chromium --only-shell && playwright test",
75+
"watch": "rollup --config rollup.config.mjs --watch"
8376
},
84-
"homepage": "https://github.com/nextcloud/nextcloud-cypress",
8577
"dependencies": {
8678
"@nextcloud/paths": "^2.2.1",
8779
"dockerode": "^4.0.2",
@@ -110,5 +102,12 @@
110102
"typedoc": "^0.28.0",
111103
"typescript": "^5.4.5",
112104
"vue": "^2.7.16"
105+
},
106+
"engines": {
107+
"node": "^20.0.0",
108+
"npm": "^10.0.0"
109+
},
110+
"publishConfig": {
111+
"access": "public"
113112
}
114113
}

0 commit comments

Comments
 (0)