Explorar o código

test(e2e): fix e2e tests (#1116)

Jonas Gloning hai 1 ano
pai
achega
124817d9f5
Modificáronse 5 ficheiros con 1844 adicións e 1567 borrados
  1. 4 5
      .github/workflows/browserstack.yml
  2. 0 6
      .parcelrc
  3. 2 2
      e2e/wdio.shared.conf.ts
  4. 1830 1544
      package-lock.json
  5. 8 10
      package.json

+ 4 - 5
.github/workflows/browserstack.yml

@@ -14,8 +14,9 @@ jobs:
       - name: "BrowserStack Local Tunnel Setup" # Invokes the setup-local action
         uses: browserstack/github-actions/setup-local@master
         with:
-          local-testing: start
-          local-identifier: peerjs-${{ github.run_id }}-${{ github.run_attempt }}
+          local-testing: "start"
+          local-logging-level: "all-logs"
+          local-identifier: "random"
 
       # The next 3 steps are for building the web application to be tested and starting the web server on the runner environment
 
@@ -30,10 +31,8 @@ jobs:
 
       - name: "Running test on BrowserStack" # Invokes the actual test script that would run on BrowserStack browsers
         run: npm run e2e:bstack # See sample test script above
-        env:
-          BROWSERSTACK_LOCAL_IDENTIFIER: peerjs-${{ github.run_id }}-${{ github.run_attempt }}
 
       - name: "BrowserStackLocal Stop" # Terminating the BrowserStackLocal tunnel connection
         uses: browserstack/github-actions/setup-local@master
         with:
-          local-testing: stop
+          local-testing: "stop"

+ 0 - 6
.parcelrc

@@ -1,6 +0,0 @@
-{
-  "extends": "@parcel/config-default",
-  "transformers": {
-    "*.{ts,tsx}": ["parcel-transformer-tsc-sourcemaps"]
-  }
-}

+ 2 - 2
e2e/wdio.shared.conf.ts

@@ -97,10 +97,10 @@ export const config: Omit<WebdriverIO.Config, "capabilities"> = {
 	framework: "jasmine",
 	//
 	// The number of times to retry the entire specfile when it fails as a whole
-	// specFileRetries: 1,
+	specFileRetries: 1,
 	//
 	// Whether or not retried specfiles should be retried immediately or deferred to the end of the queue
-	// specFileRetriesDeferred: false,
+	specFileRetriesDeferred: true,
 	//
 	// Test reporter for stdout.
 	// The only one supported by default is 'dot'

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 1830 - 1544
package-lock.json


+ 8 - 10
package.json

@@ -109,7 +109,7 @@
 	"browser-unminified": "dist/peerjs.js",
 	"types": "dist/types.d.ts",
 	"engines": {
-		"node": ">= 10"
+		"node": ">= 14"
 	},
 	"targets": {
 		"types": {
@@ -135,7 +135,7 @@
 			"outputFormat": "global",
 			"optimize": true,
 			"engines": {
-				"browsers": "cover 99%, not dead"
+				"browsers": "chrome >= 83, edge >= 83, firefox >= 80, safari >= 15"
 			},
 			"source": "lib/global.ts"
 		},
@@ -144,7 +144,7 @@
 			"outputFormat": "global",
 			"optimize": false,
 			"engines": {
-				"browsers": "cover 99%, not dead"
+				"browsers": "chrome >= 83, edge >= 83, firefox >= 80, safari >= 15"
 			},
 			"source": "lib/global.ts"
 		}
@@ -165,10 +165,10 @@
 		"e2e:bstack": "wdio run e2e/wdio.bstack.conf.ts"
 	},
 	"devDependencies": {
-		"@parcel/config-default": "^2.8.1",
-		"@parcel/packager-ts": "^2.8.1",
-		"@parcel/transformer-typescript-tsc": "^2.8.1",
-		"@parcel/transformer-typescript-types": "^2.8.1",
+		"@parcel/config-default": "^2.9.3",
+		"@parcel/packager-ts": "^2.9.3",
+		"@parcel/transformer-typescript-tsc": "^2.9.3",
+		"@parcel/transformer-typescript-types": "^2.9.3",
 		"@semantic-release/changelog": "^6.0.1",
 		"@semantic-release/git": "^10.0.1",
 		"@swc/core": "^1.3.27",
@@ -185,8 +185,7 @@
 		"jest": "^29.3.1",
 		"jest-environment-jsdom": "^29.3.1",
 		"mock-socket": "^9.0.0",
-		"parcel": "^2.8.1",
-		"parcel-transformer-tsc-sourcemaps": "^1.0.2",
+		"parcel": "^2.9.3",
 		"prettier": "^2.6.2",
 		"semantic-release": "^20.0.0",
 		"ts-node": "^10.9.1",
@@ -194,7 +193,6 @@
 		"wdio-geckodriver-service": "^5.0.1"
 	},
 	"dependencies": {
-		"@swc/helpers": "^0.5.0",
 		"eventemitter3": "^4.0.7",
 		"peerjs-js-binarypack": "^2.0.0",
 		"webrtc-adapter": "^8.0.0"

Algúns arquivos non se mostraron porque demasiados arquivos cambiaron neste cambio