You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@streampipes.apache.org by ze...@apache.org on 2022/10/07 10:53:41 UTC
[incubator-streampipes] branch STREAMPIPES-583 updated: [STREAMPIPES-593] Update cypress version
This is an automated email from the ASF dual-hosted git repository.
zehnder pushed a commit to branch STREAMPIPES-583
in repository https://gitbox.apache.org/repos/asf/incubator-streampipes.git
The following commit(s) were added to refs/heads/STREAMPIPES-583 by this push:
new 8fd973401 [STREAMPIPES-593] Update cypress version
8fd973401 is described below
commit 8fd973401d17f7450338503e72d4302a6007e386
Author: Philipp Zehnder <ze...@fzi.de>
AuthorDate: Fri Oct 7 12:53:10 2022 +0200
[STREAMPIPES-593] Update cypress version
---
ui/cypress.config.ts | 27 +++++++++++++++++++++++++++
ui/cypress.json | 17 -----------------
ui/cypress/support/{index.ts => e2e.ts} | 0
ui/package.json | 4 ++--
4 files changed, 29 insertions(+), 19 deletions(-)
diff --git a/ui/cypress.config.ts b/ui/cypress.config.ts
new file mode 100644
index 000000000..fc4f07b8a
--- /dev/null
+++ b/ui/cypress.config.ts
@@ -0,0 +1,27 @@
+// tslint:disable-next-line:no-implicit-dependencies
+import { defineConfig } from 'cypress';
+
+export default defineConfig({
+ projectId: 'q1jdu2',
+ downloadsFolder: 'cypress/downloads',
+ env: {
+ TAKE_SCREENSHOT: 'false',
+ },
+ retries: {
+ runMode: 1,
+ openMode: 0,
+ },
+ trashAssetsBeforeRuns: true,
+ videoCompression: false,
+ viewportWidth: 1920,
+ viewportHeight: 1080,
+ e2e: {
+ // We've imported your old cypress plugins here.
+ // You may want to clean this up later by importing these.
+ setupNodeEvents(on, config) {
+ return require('./cypress/plugins/index.ts')(on, config);
+ },
+ specPattern: 'cypress/tests/**/*.{js,jsx,ts,tsx}',
+ baseUrl: 'http://localhost:8082',
+ },
+});
diff --git a/ui/cypress.json b/ui/cypress.json
deleted file mode 100644
index d8c2b8f29..000000000
--- a/ui/cypress.json
+++ /dev/null
@@ -1,17 +0,0 @@
-{
- "projectId": "q1jdu2",
- "integrationFolder": "cypress/tests",
- "downloadsFolder": "cypress/downloads",
- "env": {
- "TAKE_SCREENSHOT": "false"
- },
- "retries": {
- "runMode": 1,
- "openMode": 0
- },
- "baseUrl": "http://localhost:8082",
- "trashAssetsBeforeRuns": true,
- "videoCompression": false,
- "viewportWidth": 1920,
- "viewportHeight": 1080
-}
diff --git a/ui/cypress/support/index.ts b/ui/cypress/support/e2e.ts
similarity index 100%
rename from ui/cypress/support/index.ts
rename to ui/cypress/support/e2e.ts
diff --git a/ui/package.json b/ui/package.json
index 5be6f1bb5..08df8d78f 100644
--- a/ui/package.json
+++ b/ui/package.json
@@ -97,7 +97,7 @@
"@angular/cli": "^13.3.0",
"@angular/compiler-cli": "^13.3.0",
"@cypress/webpack-batteries-included-preprocessor": "2.2.3",
- "@cypress/webpack-preprocessor": "5.12.0",
+ "@cypress/webpack-preprocessor": "5.14.0",
"@ngtools/webpack": "^13.3.0",
"@types/angular": "^1.7.4",
"@types/jasmine": "~3.6.0",
@@ -113,7 +113,7 @@
"compression-webpack-plugin": "^9.2.0",
"copy-webpack-plugin": "^10.2.4",
"csv-string": "^4.1.0",
- "cypress": "^9.5.2",
+ "cypress": "^10.9.0",
"cypress-file-upload": "^5.0.8",
"html-webpack-plugin": "^5.5.0",
"jasmine-core": "^3.6.0",