Skip to content

Commit b008af0

Browse files
reviving project
1 parent d40e045 commit b008af0

File tree

8 files changed

+5649
-4020
lines changed

8 files changed

+5649
-4020
lines changed

example/features/step-definitions/steps.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,6 @@ When(/^I login with (\w+) and (.+)$/, async (username, password) => {
1919
Then(/^I should see a flash message saying (.*)$/, async (message) => {
2020
await expect(SecurePage.flashAlert).toBeExisting()
2121
await expect(SecurePage.flashAlert).toHaveTextContaining(message)
22+
await browser.pause(15000)
2223
})
2324

example/package.json

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,16 @@
22
"name": "examples",
33
"type": "module",
44
"devDependencies": {
5-
"@wdio/cli": "8.24.16",
6-
"@wdio/cucumber-framework": "^8.24.13",
5+
"@wdio/cli": "8.39.0",
6+
"@wdio/cucumber-framework": "^8.39.0",
77
"@wdio/devtools-service": "workspace:^",
8-
"@wdio/local-runner": "^8.24.12",
9-
"@wdio/spec-reporter": "^8.24.12",
10-
"ts-node": "^10.9.1",
11-
"typescript": "^5.3.3"
8+
"@wdio/globals": "^8.39.0",
9+
"@wdio/local-runner": "^8.39.0",
10+
"@wdio/spec-reporter": "^8.39.0",
11+
"@wdio/types": "^8.39.0",
12+
"expect-webdriverio": "^4.15.1",
13+
"ts-node": "^10.9.2",
14+
"typescript": "^5.4.5"
1215
},
1316
"scripts": {
1417
"wdio": "wdio run ./wdio.conf.ts"

example/wdio.conf.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1+
import path from 'node:path'
12
import type { Options } from '@wdio/types'
23

4+
const __dirname = path.resolve(path.dirname(new URL(import.meta.url).pathname))
5+
36
export const config: Options.Testrunner = {
47
//
58
// ====================
@@ -146,7 +149,7 @@ export const config: Options.Testrunner = {
146149
// If you are using Cucumber you need to specify the location of your step definitions.
147150
cucumberOpts: {
148151
// <string[]> (file/dir) require files before executing features
149-
require: ['./features/step-definitions/steps.ts'],
152+
require: [path.resolve(__dirname, 'features', 'step-definitions', 'steps.ts')],
150153
// <boolean> show full backtrace for errors
151154
backtrace: false,
152155
// <string[]> ("extension:module") require files with the given EXTENSION after requiring MODULE (repeatable)

package.json

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,24 +10,27 @@
1010
"watch": "pnpm build --watch"
1111
},
1212
"devDependencies": {
13-
"@types/node": "^20.8.7",
13+
"@types/node": "^20.14.5",
1414
"@typescript-eslint/eslint-plugin": "^6.9.0",
1515
"@typescript-eslint/parser": "^6.9.0",
1616
"@typescript-eslint/utils": "^6.9.0",
1717
"@vitest/browser": "^0.34.6",
18-
"autoprefixer": "^10.4.16",
18+
"autoprefixer": "^10.4.19",
1919
"eslint": "^8.52.0",
20-
"eslint-plugin-import": "^2.29.0",
20+
"eslint-plugin-import": "^2.29.1",
2121
"eslint-plugin-unicorn": "^48.0.1",
2222
"npm-run-all": "^4.1.5",
23-
"postcss": "^8.4.31",
24-
"postcss-lit": "^1.1.0",
25-
"tailwindcss": "^3.3.3",
26-
"ts-node": "^10.9.1",
23+
"postcss": "^8.4.38",
24+
"postcss-lit": "^1.1.1",
25+
"tailwindcss": "^3.4.4",
26+
"ts-node": "^10.9.2",
2727
"typescript": "^5.0.2",
28-
"unplugin-icons": "^0.17.1",
28+
"unplugin-icons": "^0.19.0",
2929
"vite": "^4.4.5",
3030
"vitest": "^0.34.6",
31-
"webdriverio": "^8.20.3"
31+
"webdriverio": "^8.39.0"
32+
},
33+
"dependencies": {
34+
"@wdio/cli": "8.39.0"
3235
}
3336
}

packages/app/src/components/workbench/console.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
/// <reference types="../../../script" />
2-
31
import { Element } from '@core/element'
42
import { html, css, nothing } from 'lit'
53
import { customElement } from 'lit/decorators.js'

packages/service/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
"license": "MIT",
3939
"devDependencies": {
4040
"@types/stack-trace": "^0.0.33",
41+
"@types/ws": "^8.5.10",
4142
"@wdio/globals": "^8.23.0",
4243
"@wdio/protocols": "^8.23.0",
4344
"vite-plugin-dts": "^3.6.3"

packages/service/src/session.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export class SessionCapturer {
3131
const { port, hostname } = devtoolsOptions
3232
if (hostname && port) {
3333
this.#ws = new WebSocket(`ws://${hostname}:${port}/worker`)
34-
this.#ws.on('error', (err) => log.error(`Couldn't connect to devtools backend: ${err.message}`))
34+
this.#ws.on('error', (err: unknown) => log.error(`Couldn't connect to devtools backend: ${(err as Error).message}`))
3535
}
3636
}
3737

0 commit comments

Comments
 (0)