Skip to content

Commit

Permalink
test(extension): adjust import statement
Browse files Browse the repository at this point in the history
  • Loading branch information
wklos-iohk committed Feb 23, 2024
1 parent da6d828 commit fa6aaeb
Show file tree
Hide file tree
Showing 4 changed files with 169 additions and 36 deletions.
1 change: 1 addition & 0 deletions packages/e2e-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"devDependencies": {
"@rpii/wdio-report-events": "8.0.2",
"@types/flat": "5.0.2",
"@types/puppeteer": "7.0.4",
"@typescript-eslint/eslint-plugin": "6.0.0",
"@typescript-eslint/parser": "6.0.0",
"@wdio/allure-reporter": "8.32.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/e2e-tests/src/utils/consoleManager.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { CDPSession } from '../../../../node_modules/webdriverio/node_modules/puppeteer-core/src/common/Connection'; // FIXME: fix this temporary ugly import statement
import { CDPSession } from 'puppeteer';
import { browser } from '@wdio/globals';

export interface ConsoleLogEntry {
Expand Down
2 changes: 1 addition & 1 deletion packages/e2e-tests/src/utils/networkManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import { ChainablePromiseElement } from 'webdriverio';
import { Logger } from '../support/logger';
import allure from '@wdio/allure-reporter';
import { CDPSession } from '../../../../node_modules/webdriverio/node_modules/puppeteer-core/src/common/Connection'; // FIXME: fix this temporary ugly import statement
import { CDPSession } from 'puppeteer';
import { browser } from '@wdio/globals';

export class NetworkManager {
Expand Down
200 changes: 166 additions & 34 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -10779,6 +10779,7 @@ __metadata:
"@types/chai-sorted": 0.2.3
"@types/chai-string": 1.4.5
"@types/flat": 5.0.2
"@types/puppeteer": 7.0.4
"@typescript-eslint/eslint-plugin": 6.0.0
"@typescript-eslint/parser": 6.0.0
"@wdio/allure-reporter": 8.32.2
Expand Down Expand Up @@ -11618,6 +11619,24 @@ __metadata:
languageName: node
linkType: hard

"@puppeteer/browsers@npm:2.1.0":
version: 2.1.0
resolution: "@puppeteer/browsers@npm:2.1.0"
dependencies:
debug: 4.3.4
extract-zip: 2.0.1
progress: 2.0.3
proxy-agent: 6.4.0
semver: 7.6.0
tar-fs: 3.0.5
unbzip2-stream: 1.4.3
yargs: 17.7.2
bin:
browsers: lib/cjs/main-cli.js
checksum: 318740056fc716cf26179f053eb47e119bc01658f59382a19fb7d39e5b9232a7ad7d82e33445e0519683c13e22b328193fc9952c99d09cdc09f6539391d4749c
languageName: node
linkType: hard

"@puppeteer/browsers@npm:^1.6.0":
version: 1.7.1
resolution: "@puppeteer/browsers@npm:1.7.1"
Expand Down Expand Up @@ -19686,6 +19705,15 @@ __metadata:
languageName: node
linkType: hard

"@types/puppeteer@npm:7.0.4":
version: 7.0.4
resolution: "@types/puppeteer@npm:7.0.4"
dependencies:
puppeteer: "*"
checksum: c84a44b054454c13935a9cf0f8983166e238532397af4f321c918d89b43a91f854460e3d0dda122f72c258b444dbcdc04ada950e35adc1938ff3b7831c6fd7a4
languageName: node
linkType: hard

"@types/qs@npm:*, @types/qs@npm:^6.9.5":
version: 6.9.7
resolution: "@types/qs@npm:6.9.7"
Expand Down Expand Up @@ -25381,6 +25409,18 @@ __metadata:
languageName: node
linkType: hard

"chromium-bidi@npm:0.5.9":
version: 0.5.9
resolution: "chromium-bidi@npm:0.5.9"
dependencies:
mitt: 3.0.1
urlpattern-polyfill: 10.0.0
peerDependencies:
devtools-protocol: "*"
checksum: 5885a5ab93ddccc2b64ec6fe5455258c440e235daf7c9fb55e1de32ad95b514b721fae8bb7ddaee48d5c7745b57bdcf8a7114f012a41af3ea34b5fe6f1c22646
languageName: node
linkType: hard

"ci-info@npm:^2.0.0":
version: 2.0.0
resolution: "ci-info@npm:2.0.0"
Expand Down Expand Up @@ -26649,6 +26689,23 @@ __metadata:
languageName: node
linkType: hard

"cosmiconfig@npm:9.0.0":
version: 9.0.0
resolution: "cosmiconfig@npm:9.0.0"
dependencies:
env-paths: ^2.2.1
import-fresh: ^3.3.0
js-yaml: ^4.1.0
parse-json: ^5.2.0
peerDependencies:
typescript: ">=4.9.5"
peerDependenciesMeta:
typescript:
optional: true
checksum: a30c424b53d442ea0bdd24cb1b3d0d8687c8dda4a17ab6afcdc439f8964438801619cdb66e8e79f63b9caa3e6586b60d8bab9ce203e72df6c5e80179b971fe8f
languageName: node
linkType: hard

"cosmiconfig@npm:^6.0.0":
version: 6.0.0
resolution: "cosmiconfig@npm:6.0.0"
Expand Down Expand Up @@ -28058,6 +28115,13 @@ __metadata:
languageName: node
linkType: hard

"devtools-protocol@npm:0.0.1249869":
version: 0.0.1249869
resolution: "devtools-protocol@npm:0.0.1249869"
checksum: 549dda02f6d778741930e5abdde3f8e5d39e16fdbe8af38597a974e9c239798dd464250bd7ab4360d77e3d059620e95be7cf05150142473bf9b661ed28a616ed
languageName: node
linkType: hard

"devtools-protocol@npm:^0.0.1262051":
version: 0.0.1262051
resolution: "devtools-protocol@npm:0.0.1262051"
Expand Down Expand Up @@ -28911,7 +28975,7 @@ __metadata:
languageName: node
linkType: hard

"env-paths@npm:^2.2.0":
"env-paths@npm:^2.2.0, env-paths@npm:^2.2.1":
version: 2.2.1
resolution: "env-paths@npm:2.2.1"
checksum: 65b5df55a8bab92229ab2b40dad3b387fad24613263d103a97f91c9fe43ceb21965cd3392b1ccb5d77088021e525c4e0481adb309625d0cb94ade1d1fb8dc17e
Expand Down Expand Up @@ -33645,7 +33709,7 @@ __metadata:
languageName: node
linkType: hard

"http-proxy-agent@npm:^7.0.2":
"http-proxy-agent@npm:^7.0.1, http-proxy-agent@npm:^7.0.2":
version: 7.0.2
resolution: "http-proxy-agent@npm:7.0.2"
dependencies:
Expand Down Expand Up @@ -33775,7 +33839,7 @@ __metadata:
languageName: node
linkType: hard

"https-proxy-agent@npm:^7.0.4":
"https-proxy-agent@npm:^7.0.3, https-proxy-agent@npm:^7.0.4":
version: 7.0.4
resolution: "https-proxy-agent@npm:7.0.4"
dependencies:
Expand Down Expand Up @@ -39693,6 +39757,13 @@ __metadata:
languageName: node
linkType: hard

"mitt@npm:3.0.1":
version: 3.0.1
resolution: "mitt@npm:3.0.1"
checksum: b55a489ac9c2949ab166b7f060601d3b6d893a852515ae9eca4e11df01c013876df777ea109317622b5c1c60e8aae252558e33c8c94e14124db38f64a39614b1
languageName: node
linkType: hard

"mixin-deep@npm:^1.2.0":
version: 1.3.2
resolution: "mixin-deep@npm:1.3.2"
Expand Down Expand Up @@ -43400,6 +43471,22 @@ __metadata:
languageName: node
linkType: hard

"proxy-agent@npm:6.4.0":
version: 6.4.0
resolution: "proxy-agent@npm:6.4.0"
dependencies:
agent-base: ^7.0.2
debug: ^4.3.4
http-proxy-agent: ^7.0.1
https-proxy-agent: ^7.0.3
lru-cache: ^7.14.1
pac-proxy-agent: ^7.0.1
proxy-from-env: ^1.1.0
socks-proxy-agent: ^8.0.2
checksum: 4d3794ad5e07486298902f0a7f250d0f869fa0e92d790767ca3f793a81374ce0ab6c605f8ab8e791c4d754da96656b48d1c24cb7094bfd310a15867e4a0841d7
languageName: node
linkType: hard

"proxy-from-env@npm:1.1.0, proxy-from-env@npm:^1.0.0, proxy-from-env@npm:^1.1.0":
version: 1.1.0
resolution: "proxy-from-env@npm:1.1.0"
Expand Down Expand Up @@ -43529,6 +43616,20 @@ __metadata:
languageName: node
linkType: hard

"puppeteer-core@npm:22.2.0":
version: 22.2.0
resolution: "puppeteer-core@npm:22.2.0"
dependencies:
"@puppeteer/browsers": 2.1.0
chromium-bidi: 0.5.9
cross-fetch: 4.0.0
debug: 4.3.4
devtools-protocol: 0.0.1249869
ws: 8.16.0
checksum: 270d765169224d1ef8864cb0e8519e1c99cc979ba56c05c2b207fdf5862322c6c3e817885e12af6996d3ce21e9a2d62ff73ab531872febd1d2b3fccc0f86fab1
languageName: node
linkType: hard

"puppeteer-core@npm:^2.1.1":
version: 2.1.1
resolution: "puppeteer-core@npm:2.1.1"
Expand Down Expand Up @@ -43566,6 +43667,19 @@ __metadata:
languageName: node
linkType: hard

"puppeteer@npm:*":
version: 22.2.0
resolution: "puppeteer@npm:22.2.0"
dependencies:
"@puppeteer/browsers": 2.1.0
cosmiconfig: 9.0.0
puppeteer-core: 22.2.0
bin:
puppeteer: lib/esm/puppeteer/node/cli.js
checksum: a5d604367f9b6432b5d6318b60d1b789b4af53e658bd423c1f5e3e35d85dc10bde6536450b1a04cb2f0af2c5485c38a99466eed8917d31ea840ce23c9fdec5c0
languageName: node
linkType: hard

"pure-rand@npm:^6.0.0":
version: 6.0.4
resolution: "pure-rand@npm:6.0.4"
Expand Down Expand Up @@ -47242,6 +47356,17 @@ __metadata:
languageName: node
linkType: hard

"semver@npm:7.6.0":
version: 7.6.0
resolution: "semver@npm:7.6.0"
dependencies:
lru-cache: ^6.0.0
bin:
semver: bin/semver.js
checksum: 7427f05b70786c696640edc29fdd4bc33b2acf3bbe1740b955029044f80575fc664e1a512e4113c3af21e767154a94b4aa214bf6cd6e42a1f6dba5914e0b208c
languageName: node
linkType: hard

"semver@npm:^6.0.0, semver@npm:^6.1.1, semver@npm:^6.1.2, semver@npm:^6.2.0, semver@npm:^6.3.0":
version: 6.3.0
resolution: "semver@npm:6.3.0"
Expand Down Expand Up @@ -49501,7 +49626,7 @@ __metadata:
languageName: node
linkType: hard

"tar-fs@npm:^3.0.5":
"tar-fs@npm:3.0.5, tar-fs@npm:^3.0.5":
version: 3.0.5
resolution: "tar-fs@npm:3.0.5"
dependencies:
Expand Down Expand Up @@ -51397,6 +51522,13 @@ __metadata:
languageName: node
linkType: hard

"urlpattern-polyfill@npm:10.0.0":
version: 10.0.0
resolution: "urlpattern-polyfill@npm:10.0.0"
checksum: 61d890f151ea4ecf34a3dcab32c65ad1f3cda857c9d154af198260c6e5b2ad96d024593409baaa6d4428dd1ab206c14799bf37fe011117ac93a6a44913ac5aa4
languageName: node
linkType: hard

"usb@npm:^2.11.0":
version: 2.11.0
resolution: "usb@npm:2.11.0"
Expand Down Expand Up @@ -53330,6 +53462,21 @@ __metadata:
languageName: node
linkType: hard

"ws@npm:8.16.0, ws@npm:^8.5.0":
version: 8.16.0
resolution: "ws@npm:8.16.0"
peerDependencies:
bufferutil: ^4.0.1
utf-8-validate: ">=5.0.2"
peerDependenciesMeta:
bufferutil:
optional: true
utf-8-validate:
optional: true
checksum: feb3eecd2bae82fa8a8beef800290ce437d8b8063bdc69712725f21aef77c49cb2ff45c6e5e7fce622248f9c7abaee506bae0a9064067ffd6935460c7357321b
languageName: node
linkType: hard

"ws@npm:^6.1.0":
version: 6.2.2
resolution: "ws@npm:6.2.2"
Expand Down Expand Up @@ -53369,21 +53516,6 @@ __metadata:
languageName: node
linkType: hard

"ws@npm:^8.5.0":
version: 8.16.0
resolution: "ws@npm:8.16.0"
peerDependencies:
bufferutil: ^4.0.1
utf-8-validate: ">=5.0.2"
peerDependenciesMeta:
bufferutil:
optional: true
utf-8-validate:
optional: true
checksum: feb3eecd2bae82fa8a8beef800290ce437d8b8063bdc69712725f21aef77c49cb2ff45c6e5e7fce622248f9c7abaee506bae0a9064067ffd6935460c7357321b
languageName: node
linkType: hard

"ws@npm:^8.8.0":
version: 8.12.0
resolution: "ws@npm:8.12.0"
Expand Down Expand Up @@ -53604,6 +53736,21 @@ __metadata:
languageName: node
linkType: hard

"yargs@npm:17.7.2, yargs@npm:^17.7.1, yargs@npm:^17.7.2":
version: 17.7.2
resolution: "yargs@npm:17.7.2"
dependencies:
cliui: ^8.0.1
escalade: ^3.1.1
get-caller-file: ^2.0.5
require-directory: ^2.1.1
string-width: ^4.2.3
y18n: ^5.0.5
yargs-parser: ^21.1.1
checksum: 73b572e863aa4a8cbef323dd911d79d193b772defd5a51aab0aca2d446655216f5002c42c5306033968193bdbf892a7a4c110b0d77954a7fdf563e653967b56a
languageName: node
linkType: hard

"yargs@npm:^13.0.0":
version: 13.3.2
resolution: "yargs@npm:13.3.2"
Expand Down Expand Up @@ -53720,21 +53867,6 @@ __metadata:
languageName: node
linkType: hard

"yargs@npm:^17.7.1, yargs@npm:^17.7.2":
version: 17.7.2
resolution: "yargs@npm:17.7.2"
dependencies:
cliui: ^8.0.1
escalade: ^3.1.1
get-caller-file: ^2.0.5
require-directory: ^2.1.1
string-width: ^4.2.3
y18n: ^5.0.5
yargs-parser: ^21.1.1
checksum: 73b572e863aa4a8cbef323dd911d79d193b772defd5a51aab0aca2d446655216f5002c42c5306033968193bdbf892a7a4c110b0d77954a7fdf563e653967b56a
languageName: node
linkType: hard

"yauzl@npm:^2.10.0":
version: 2.10.0
resolution: "yauzl@npm:2.10.0"
Expand Down

0 comments on commit fa6aaeb

Please sign in to comment.