Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions e2e/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,36 +44,36 @@
"@testing-library/svelte": "^4.0.5",
"@testing-library/user-event": "^14.5.2",
"@testing-library/vue": "^8.0.1",
"@testplane/wdio-config": "workspace:*",
"@testplane/wdio-repl": "workspace:*",
"@testplane/wdio-types": "workspace:*",
"@testplane/webdriver": "workspace:*",
"@testplane/webdriverio": "workspace:*",
"@types/mocha": "^10.0.6",
"@types/testing-library__jest-dom": "^5.14.9",
"@vue/compiler-dom": "^3.4.19",
"@vue/test-utils": "^2.4.3",
"@wdio/browser-runner": "workspace:*",
"@testplane/wdio-config": "workspace:*",
"@wdio/cli": "workspace:*",
"@wdio/dot-reporter": "workspace:*",
"@wdio/globals": "workspace:*",
"@wdio/junit-reporter": "workspace:*",
"@wdio/lighthouse-service": "workspace:*",
"@wdio/local-runner": "workspace:*",
"@wdio/mocha-framework": "workspace:*",
"@testplane/wdio-repl": "workspace:*",
"@wdio/sauce-service": "workspace:*",
"@wdio/shared-store-service": "workspace:*",
"@wdio/spec-reporter": "workspace:*",
"@testplane/wdio-types": "workspace:*",
"babel-plugin-transform-hook-names": "^1.0.2",
"cross-env": "^7.0.3",
"expect": "^29.7.0",
"graphql-request": "^6.1.0",
"is-url": "^1.2.4",
"mocha": "^10.2.0",
"puppeteer-core": "^22.2.0",
"puppeteer-core": "^23.11.1",
"string-width": "^7.1.0",
"tailwindcss": "^3.4.1",
"vite": "^5.1.3",
"@testplane/webdriver": "workspace:*",
"@testplane/webdriverio": "workspace:*"
"vite": "^5.1.3"
},
"dependencies": {
"@stencil-community/router": "^1.0.2",
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@
"@serenity-js/core": "^3.25.3",
"@stencil/core": "^4.20.0",
"@sveltejs/vite-plugin-svelte": "^3.1.1",
"@testplane/wdio-config": "workspace:*",
"@testplane/wdio-repl": "workspace:*",
"@types/archiver": "^6.0.2",
"@types/cheerio": "^0.22.35",
"@types/inquirer": "^9.0.7",
Expand All @@ -89,9 +91,7 @@
"@vitejs/plugin-react": "^4.3.1",
"@vitejs/plugin-vue": "^5.1.2",
"@vitest/coverage-v8": "^2.0.5",
"@testplane/wdio-config": "workspace:*",
"@wdio/eslint": "^0.0.5",
"@testplane/wdio-repl": "workspace:*",
"camelcase": "^8.0.0",
"cddl": "^0.8.5",
"cddl2ts": "^0.2.2",
Expand All @@ -114,7 +114,7 @@
"lerna-changelog": "^2.2.0",
"mime-types": "^2.1.35",
"npm-run-all2": "^6.2.2",
"puppeteer-core": "^23.0.2",
"puppeteer-core": "^23.11.1",
"recast": "^0.23.9",
"recursive-readdir": "^2.2.3",
"rimraf": "^6.0.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/webdriverio/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
"lodash.clonedeep": "^4.5.0",
"lodash.zip": "^4.2.0",
"minimatch": "9.0.0",
"puppeteer-core": "^20.9.0",
"puppeteer-core": "^23.11.1",
"query-selector-shadow-dom": "^1.0.1",
"resq": "^1.11.0",
"rgb2hex": "0.2.5",
Expand Down
4 changes: 2 additions & 2 deletions packages/webdriverio/src/commands/browser/mock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { getBrowserObject } from '@testplane/wdio-utils'
import type { MockFilterOptions } from '../../utils/interception/types.js'
import BidiInterception from '../../utils/interception/bidi.js'
import { getContextManager } from '../../session/context.js'
import type { CDPSession } from 'puppeteer-core/lib/esm/puppeteer/common/Connection.js'
import type { CDPSession, Protocol, Handler } from 'puppeteer-core'

export const SESSION_MOCKS: Record<string, Set<Interception>> = {}
export const SESSION_BIDI_MOCKS: Record<string, Set<BidiInterception>> = {}
Expand Down Expand Up @@ -181,7 +181,7 @@ export async function mock(
client.on(
'Fetch.requestPaused',
(NetworkInterception as unknown as typeof DevtoolsNetworkInterception)
.handleRequestInterception(client, SESSION_MOCKS[handle])
.handleRequestInterception(client, SESSION_MOCKS[handle]) as unknown as Handler<Protocol.Fetch.RequestPausedEvent>
)
}

Expand Down
2 changes: 1 addition & 1 deletion packages/webdriverio/src/utils/interception/devtools.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import fs from 'node:fs/promises'
import path from 'node:path'
import logger from '@testplane/wdio-logger'
import type { CDPSession } from 'puppeteer-core/lib/esm/puppeteer/common/Connection.js'
import type { CDPSession } from 'puppeteer-core'
import type { Protocol } from 'devtools-protocol'

import Interception from './index.js'
Expand Down
2 changes: 1 addition & 1 deletion packages/webdriverio/src/utils/interception/types.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { local } from '@testplane/webdriver'
import type { Cookie } from '@testplane/wdio-protocols'

import type { CDPSession } from 'puppeteer-core/lib/esm/puppeteer/common/Connection.js'
import type { CDPSession } from 'puppeteer-core'
import type { JsonCompatible } from '@testplane/wdio-types'

// export type MockFilterOptions = {
Expand Down
64 changes: 6 additions & 58 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading