chore(deps): update webdriverio monorepo to v9 (major) #12566
ci.yml
on: pull_request
Diff: node-latest, ubuntu-latest
6s
Lint: node-latest, ubuntu-latest
2m 30s
Matrix: test-browser
Matrix: test
Annotations
26 errors
Lint: node-latest, ubuntu-latest:
packages/browser/src/node/providers/webdriver.ts#L6
Module '"webdriverio"' has no exported member 'RemoteOptions'.
|
Lint: node-latest, ubuntu-latest
Process completed with exit code 2.
|
specs/runner.test.ts > running browser tests > tests are actually running:
test/browser/specs/runner.test.ts#L32
AssertionError: expected [ { …(6) }, { …(6) }, { …(6) }, …(12) ] to have a length of 17 but got 15
- Expected
+ Received
- 17
+ 15
❯ specs/runner.test.ts:32:25
|
specs/runner.test.ts > user-event:
test/browser/specs/runner.test.ts#L147
Error: Snapshot `user-event 1` mismatched
- Expected
+ Received
{
"cleanup-retry.test.ts": "pass",
- "cleanup1.test.ts": "pass",
+ "cleanup1.test.ts": "fail",
- "cleanup2.test.ts": "pass",
+ "cleanup2.test.ts": "fail",
- "keyboard.test.ts": "pass",
+ "keyboard.test.ts": "fail",
}
❯ specs/runner.test.ts:147:87
|
specs/server-url.test.ts > server-url http:
test/browser/specs/server-url.test.ts#L15
AssertionError: expected 'http://127.0.0.1:51133/' to be 'http://localhost:51133/' // Object.is equality
Expected: "http://localhost:51133/"
Received: "http://127.0.0.1:51133/"
❯ specs/server-url.test.ts:15:15
|
specs/server-url.test.ts > server-url https:
test/browser/specs/server-url.test.ts#L26
AssertionError: expected 'https://127.0.0.1:51122/' to be 'https://localhost:51122/' // Object.is equality
Expected: "https://localhost:51122/"
Received: "https://127.0.0.1:51122/"
❯ specs/server-url.test.ts:26:15
|
Browser: chromium, macos-latest
Process completed with exit code 1.
|
specs/runner.test.ts > running browser tests > tests are actually running:
test/browser/specs/runner.test.ts#L31
AssertionError: expected [ { …(6) } ] to have a length of 19 but got 1
- Expected
+ Received
- 19
+ 1
❯ specs/runner.test.ts:31:43
|
specs/runner.test.ts > running browser tests > runs in-source tests:
test/browser/specs/runner.test.ts#L43
AssertionError: expected undefined to be defined
❯ specs/runner.test.ts:43:25
|
specs/runner.test.ts > running browser tests > correctly prints error:
test/browser/specs/runner.test.ts#L48
AssertionError: expected '\n⎯⎯⎯⎯⎯⎯ Failed Tests 30 ⎯⎯⎯⎯⎯⎯⎯\n\n …' to contain 'expected 1 to be 2'
- Expected
+ Received
- expected 1 to be 2
+
+ ⎯⎯⎯⎯⎯⎯ Failed Tests 30 ⎯⎯⎯⎯⎯⎯⎯
+
+ FAIL test/userEvent.test.ts > userEvent.click > click inside shadow dom
+ Error: Can't call click on element with selector ">>>html > body > div > button" because element wasn't found
+
+ Failure screenshot:
+ - test/__screenshots__/userEvent.test.ts/userEvent-click-click-inside-shadow-dom-1.png
+
+ ❯ implicitWait ../../node_modules/.pnpm/[email protected]/node_modules/webdriverio/build/index.js:52:13
+ ❯ Element.elementErrorHandlerCallbackFn ../../node_modules/.pnpm/[email protected]/node_modules/webdriverio/build/index.js:7334:23
+ ❯ Element.wrapCommandFn ../../node_modules/.pnpm/@wdio[email protected]/node_modules/@wdio/utils/build/index.js:884:23
+
+ ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[1/30]⎯
+
+ FAIL test/userEvent.test.ts > userEvent.click > clicks inside svg
+ AssertionError: expected "spy" to be called at least once
+
+ Failure screenshot:
+ - test/__screenshots__/userEvent.test.ts/userEvent-click-clicks-inside-svg-1.png
+
+ ❯ test/userEvent.test.ts:78:20
+ 76| await userEvent.click(circle)
+ 77|
+ 78| expect(onClick).toHaveBeenCalled()
+ | ^
+ 79| })
+ 80|
+
+ ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[2/30]⎯
+
+ FAIL test/userEvent.test.ts > userEvent.click > clicks a button with complex HTML ID
+ AssertionError: expected "spy" to be called at least once
+
+ Failure screenshot:
+ - test/__screenshots__/userEvent.test.ts/userEvent-click-clicks-a-button-with-complex-HTML-ID-1.png
+
+ ❯ test/userEvent.test.ts:98:20
+ 96| await userEvent.click(button)
+ 97|
+ 98| expect(onClick).toHaveBeenCalled()
+ | ^
+ 99| expect(dblClick).not.toHaveBeenCalled()
+ 100| })
+
+ ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[3/30]⎯
+
+ FAIL test/userEvent.test.ts > userEvent.dblClick > correctly clicks a button
+ AssertionError: expected "spy" to be called 2 times, but got 0 times
+
+ Failure screenshot:
+ - test/__screenshots__/userEvent.test.ts/userEvent-dblClick-correctly-clicks-a-button-1.png
+
+ ❯ test/userEvent.test.ts:162:20
+ 160| await userEvent.dblClick(button)
+ 161|
+ 162| expect(onClick).toHaveBeenCalledTimes(2)
+ | ^
+ 163| expect(dblClick).toHaveBeenCalledTimes(1)
+ 164| })
+
+ ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[4/30]⎯
+
+ FAIL test/userEvent.test.ts > userEvent.tripleClick > correctly clicks a button
+ AssertionError: expected "spy" to be called 3 times, but got 0 times
+
+ Failure screenshot:
+ - test/__screenshots__/userEvent.test.ts/userEvent-tripleClick-correctly-clicks-a-button-1.png
+
+ ❯ test/userEvent.test.ts:200:20
+ 198| await userEvent.tripleClick(button)
+ 199|
+ 200| expect(onClick).toHaveBeenCalledTimes(3)
+ | ^
+ 201| expect(dblClick).toHaveBeenCalledTimes(1)
+ 202| expect(tripleClick).toHaveBeenCalledTimes(3)
+
+ ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[5/30]⎯
+
+ FAIL test/userEvent.test.ts > userEvent.hover, userEvent.unhover > hover, unhover works correctly
+ AssertionError: expected false to be true // Object.is equality
+
+ Failure screenshot:
+ - test/__screenshots__/userEvent.test.ts/userEvent-hover--userEvent-unhover-hover--unhover-works-correctly-1.png
+
+ - Expected to be
+ + But got
+
+ - true
+ + false
+
+ ❯ test/userEvent.test.ts:258:27
+ 256| await userEvent.hover(target)
+ 257|
+ 258| expect(pointerEntered).toBe(true)
+ | ^
+ 259| expect(mouseEntered).toBe(true)
+ 260|
+
+ ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[6/30]⎯
+
+ FAIL test/userEvent.test.ts > userEvent.hover, userEvent.unhover > hover works with shadow root
+ Error: Can't call moveTo on element with selector ">>>html > body > div > div" because element wasn't found
+
+ Failure screenshot:
+ - test/__screenshots__/userEvent.test.ts/userEvent-hover--userEvent-unhover-hover-works-with-shadow-root-1.png
|
specs/runner.test.ts > running browser tests > logs are redirected to stdout:
test/browser/specs/runner.test.ts#L57
AssertionError: expected '\n RUN v2.2.0-beta.2 D:/a/vitest/vit…' to contain 'stdout | test/logs.test.ts > logging …'
- Expected
+ Received
- stdout | test/logs.test.ts > logging to stdout
+
+ RUN v2.2.0-beta.2 D:/a/vitest/vitest/test/browser
+
+ stdout | test/userEvent.test.ts > userEvent.click > click inside shadow dom
+ [WDIO] newShadowRoot <div /> <div /> false <html
+ lang="en"
+ >
+ <head>
+
+
+ <script>
+ (() => {
+ const moduleCache = new Map();
+
+ function wrapModule(module) {
+ if (typeof module === "function") {
+ const promise = new Promise((resolve, reject) => {
+ if (typeof __vitest_mocker__ === "undefined")
+ return module().then(resolve, reject);
+ __vitest_mocker__.prepare().finally(() => {
+ module().then(resolve, reject);
+ });
+ });
+ moduleCache.set(promise, { promise, evaluated: false });
+ return promise.finally(() => moduleCache.delete(promise));
+ }
+ return module;
+ }
+
+ window.__vitest_browser_runner__ = {
+ wrapModule,
+ wrapDynamicImport: wrapModule,
+ moduleCache,
+ config: {"mode":"test","isolate":true,"defines":{},"setupFiles":[],"allowOnly":false,"testTimeout":15000,"hookTimeout":30000,"clearMocks":false,"mockReset":false,"restoreMocks":false,"unstubEnvs":false,"unstubGlobals":false,"maxConcurrency":5,"pool":"forks","expect":{},"snapshotSerializers":[],"diff":"D:/a/vitest/vitest/test/browser/custom-diff-config.ts","disableConsoleIntercept":false,"root":"D:/a/vitest/vitest/test/browser","globals":false,"snapshotEnvironment":"D:/a/vitest/vitest/test/browser/custom-snapshot-env.ts","coverage":{"reportsDirectory":"./coverage","provider":"v8","enabled":false,"htmlReporter":{}},"fakeTimers":{"loopLimit":10000,"shouldClearNativeTimers":true,"toFake":["setTimeout","clearTimeout","setInterval","clearInterval","setImmediate","clearImmediate","Date"]},"poolOptions":{"forks":{"singleFork":false,"isolate":true},"threads":{"singleThread":false,"isolate":true},"vmThreads":{"singleThread":false},"vmForks":{"singleFork":false}},"deps":{"web":{"transformAssets":true,"transformCss":true,"transformGlobPattern":[]},"optimizer":{"web":{"enabled":true},"ssr":{"enabled":true}},"moduleDirectories":["/node_modules/"]},"snapshotOptions":{"updateSnapshot":"none","snapshotFormat":{},"expand":false},"sequence":{"hooks":"stack"},"inspector":{"enabled":false,"waitForDebugger":false},"watch":false,"env":{"BASE_URL":"/","MODE":"test","DEV":true,"PROD":false,"BROWSER":"firefox","NO_COLOR":"true","VITEST_BROWSER_DEBUG":""},"browser":{"name":"firefox","headless":true,"isolate":false,"fileParallelism":true,"ui":false,"viewport":{"width":414,"height":896},"screenshotFailures":true,"locators":{"testIdAttribute":"data-testid"}}},
+ viteConfig: {"root":"D:/a/vitest/vitest/test/browser"},
+ files: ["D:/a/vitest/vitest/test/browser/test/userEvent.test.ts","D:/a/vitest/vitest/test/browser/test/dom.test.ts","D:/a/vitest/vitest/test/browser/test/cdp.test.ts","D:/a/vitest/vitest/test/browser/test/commands.test.ts","D:/a/vitest/vitest/test/browser/test/logs.test.ts","D:/a/vitest/vitest/test/browser/test/utils.test.ts","D:/a/vitest/vitest/test/browser/test/viewport.test.ts","D:/a/vitest/vitest/test/browser/test/cjs-lib.test.ts","D:/a/vitest/vitest/test/browser/test/failing.test.ts","D:/a/vitest/vitest/test/browser/test/timers.test.ts","D:/a/vitest/vitest/test/browser/test/snapshot.test.ts","D:/a/vitest/vitest/test/browser/test/basic.test.ts","D:/a/vitest/vitest/test/browser/test/dialog.test.ts","D:/a/vitest/vitest/test/browser/test/polyfill-lib.test.ts","D:/a/vitest/vitest/test/browser/src/actions.ts","D:/a/vitest/vitest/test/browser/test/another.test.ts","D:/a/vitest/vitest/test/browser/test/server-headers.test.ts","D:/a/vitest/vitest/test/browser/test/failing.snaphot.test.ts","D:/a/vitest/vitest/test/browser/test/injected.test.ts"],
+ type: "tester",
+ contextId: "e8b95b82-c921-4d14-b41f-f1adb7c63560",
+ testerId: "a0f7414d-6a9f-4319-a134-46039ff6357e",
+ provider: "w
|
specs/runner.test.ts > running browser tests > logs are redirected to stderr:
test/browser/specs/runner.test.ts#L83
AssertionError: expected '\n⎯⎯⎯⎯⎯⎯ Failed Tests 30 ⎯⎯⎯⎯⎯⎯⎯\n\n …' to contain 'stderr | test/logs.test.ts > logging …'
- Expected
+ Received
- stderr | test/logs.test.ts > logging to stderr
+
+ ⎯⎯⎯⎯⎯⎯ Failed Tests 30 ⎯⎯⎯⎯⎯⎯⎯
+
+ FAIL test/userEvent.test.ts > userEvent.click > click inside shadow dom
+ Error: Can't call click on element with selector ">>>html > body > div > button" because element wasn't found
+
+ Failure screenshot:
+ - test/__screenshots__/userEvent.test.ts/userEvent-click-click-inside-shadow-dom-1.png
+
+ ❯ implicitWait ../../node_modules/.pnpm/[email protected]/node_modules/webdriverio/build/index.js:52:13
+ ❯ Element.elementErrorHandlerCallbackFn ../../node_modules/.pnpm/[email protected]/node_modules/webdriverio/build/index.js:7334:23
+ ❯ Element.wrapCommandFn ../../node_modules/.pnpm/@wdio[email protected]/node_modules/@wdio/utils/build/index.js:884:23
+
+ ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[1/30]⎯
+
+ FAIL test/userEvent.test.ts > userEvent.click > clicks inside svg
+ AssertionError: expected "spy" to be called at least once
+
+ Failure screenshot:
+ - test/__screenshots__/userEvent.test.ts/userEvent-click-clicks-inside-svg-1.png
+
+ ❯ test/userEvent.test.ts:78:20
+ 76| await userEvent.click(circle)
+ 77|
+ 78| expect(onClick).toHaveBeenCalled()
+ | ^
+ 79| })
+ 80|
+
+ ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[2/30]⎯
+
+ FAIL test/userEvent.test.ts > userEvent.click > clicks a button with complex HTML ID
+ AssertionError: expected "spy" to be called at least once
+
+ Failure screenshot:
+ - test/__screenshots__/userEvent.test.ts/userEvent-click-clicks-a-button-with-complex-HTML-ID-1.png
+
+ ❯ test/userEvent.test.ts:98:20
+ 96| await userEvent.click(button)
+ 97|
+ 98| expect(onClick).toHaveBeenCalled()
+ | ^
+ 99| expect(dblClick).not.toHaveBeenCalled()
+ 100| })
+
+ ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[3/30]⎯
+
+ FAIL test/userEvent.test.ts > userEvent.dblClick > correctly clicks a button
+ AssertionError: expected "spy" to be called 2 times, but got 0 times
+
+ Failure screenshot:
+ - test/__screenshots__/userEvent.test.ts/userEvent-dblClick-correctly-clicks-a-button-1.png
+
+ ❯ test/userEvent.test.ts:162:20
+ 160| await userEvent.dblClick(button)
+ 161|
+ 162| expect(onClick).toHaveBeenCalledTimes(2)
+ | ^
+ 163| expect(dblClick).toHaveBeenCalledTimes(1)
+ 164| })
+
+ ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[4/30]⎯
+
+ FAIL test/userEvent.test.ts > userEvent.tripleClick > correctly clicks a button
+ AssertionError: expected "spy" to be called 3 times, but got 0 times
+
+ Failure screenshot:
+ - test/__screenshots__/userEvent.test.ts/userEvent-tripleClick-correctly-clicks-a-button-1.png
+
+ ❯ test/userEvent.test.ts:200:20
+ 198| await userEvent.tripleClick(button)
+ 199|
+ 200| expect(onClick).toHaveBeenCalledTimes(3)
+ | ^
+ 201| expect(dblClick).toHaveBeenCalledTimes(1)
+ 202| expect(tripleClick).toHaveBeenCalledTimes(3)
+
+ ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[5/30]⎯
+
+ FAIL test/userEvent.test.ts > userEvent.hover, userEvent.unhover > hover, unhover works correctly
+ AssertionError: expected false to be true // Object.is equality
+
+ Failure screenshot:
+ - test/__screenshots__/userEvent.test.ts/userEvent-hover--userEvent-unhover-hover--unhover-works-correctly-1.png
+
+ - Expected to be
+ + But got
+
+ - true
+ + false
+
+ ❯ test/userEvent.test.ts:258:27
+ 256| await userEvent.hover(target)
+ 257|
+ 258| expect(pointerEntered).toBe(true)
+ | ^
+ 259| expect(mouseEntered).toBe(true)
+ 260|
+
+ ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[6/30]⎯
+
+ FAIL test/userEvent.test.ts > userEvent.hover, userEvent.unhover > hover works with shadow root
+ Error: Can't call moveTo on element with selector ">>>html > body > div > div" because element wasn't found
+
+ Failure screenshot:
+ - test/__screenshots__/userEvent.test.ts/userEvent-hover--userE
|
specs/runner.test.ts > running browser tests > logs have stack traces in non-safari:
test/browser/specs/runner.test.ts#L93
AssertionError: expected '\n RUN v2.2.0-beta.2 D:/a/vitest/vit…' to match 'log with a stack\n ❯ test/logs.test.t…'
- Expected
+ Received
- log with a stack
- ❯ test/logs.test.ts:58:10
+
+ RUN v2.2.0-beta.2 D:/a/vitest/vitest/test/browser
+
+ stdout | test/userEvent.test.ts > userEvent.click > click inside shadow dom
+ [WDIO] newShadowRoot <div /> <div /> false <html
+ lang="en"
+ >
+ <head>
+
+
+ <script>
+ (() => {
+ const moduleCache = new Map();
+
+ function wrapModule(module) {
+ if (typeof module === "function") {
+ const promise = new Promise((resolve, reject) => {
+ if (typeof __vitest_mocker__ === "undefined")
+ return module().then(resolve, reject);
+ __vitest_mocker__.prepare().finally(() => {
+ module().then(resolve, reject);
+ });
+ });
+ moduleCache.set(promise, { promise, evaluated: false });
+ return promise.finally(() => moduleCache.delete(promise));
+ }
+ return module;
+ }
+
+ window.__vitest_browser_runner__ = {
+ wrapModule,
+ wrapDynamicImport: wrapModule,
+ moduleCache,
+ config: {"mode":"test","isolate":true,"defines":{},"setupFiles":[],"allowOnly":false,"testTimeout":15000,"hookTimeout":30000,"clearMocks":false,"mockReset":false,"restoreMocks":false,"unstubEnvs":false,"unstubGlobals":false,"maxConcurrency":5,"pool":"forks","expect":{},"snapshotSerializers":[],"diff":"D:/a/vitest/vitest/test/browser/custom-diff-config.ts","disableConsoleIntercept":false,"root":"D:/a/vitest/vitest/test/browser","globals":false,"snapshotEnvironment":"D:/a/vitest/vitest/test/browser/custom-snapshot-env.ts","coverage":{"reportsDirectory":"./coverage","provider":"v8","enabled":false,"htmlReporter":{}},"fakeTimers":{"loopLimit":10000,"shouldClearNativeTimers":true,"toFake":["setTimeout","clearTimeout","setInterval","clearInterval","setImmediate","clearImmediate","Date"]},"poolOptions":{"forks":{"singleFork":false,"isolate":true},"threads":{"singleThread":false,"isolate":true},"vmThreads":{"singleThread":false},"vmForks":{"singleFork":false}},"deps":{"web":{"transformAssets":true,"transformCss":true,"transformGlobPattern":[]},"optimizer":{"web":{"enabled":true},"ssr":{"enabled":true}},"moduleDirectories":["/node_modules/"]},"snapshotOptions":{"updateSnapshot":"none","snapshotFormat":{},"expand":false},"sequence":{"hooks":"stack"},"inspector":{"enabled":false,"waitForDebugger":false},"watch":false,"env":{"BASE_URL":"/","MODE":"test","DEV":true,"PROD":false,"BROWSER":"firefox","NO_COLOR":"true","VITEST_BROWSER_DEBUG":""},"browser":{"name":"firefox","headless":true,"isolate":false,"fileParallelism":true,"ui":false,"viewport":{"width":414,"height":896},"screenshotFailures":true,"locators":{"testIdAttribute":"data-testid"}}},
+ viteConfig: {"root":"D:/a/vitest/vitest/test/browser"},
+ files: ["D:/a/vitest/vitest/test/browser/test/userEvent.test.ts","D:/a/vitest/vitest/test/browser/test/dom.test.ts","D:/a/vitest/vitest/test/browser/test/cdp.test.ts","D:/a/vitest/vitest/test/browser/test/commands.test.ts","D:/a/vitest/vitest/test/browser/test/logs.test.ts","D:/a/vitest/vitest/test/browser/test/utils.test.ts","D:/a/vitest/vitest/test/browser/test/viewport.test.ts","D:/a/vitest/vitest/test/browser/test/cjs-lib.test.ts","D:/a/vitest/vitest/test/browser/test/failing.test.ts","D:/a/vitest/vitest/test/browser/test/timers.test.ts","D:/a/vitest/vitest/test/browser/test/snapshot.test.ts","D:/a/vitest/vitest/test/browser/test/basic.test.ts","D:/a/vitest/vitest/test/browser/test/dialog.test.ts","D:/a/vitest/vitest/test/browser/test/polyfill-lib.test.ts","D:/a/vitest/vitest/test/browser/src/actions.ts","D:/a/vitest/vitest/test/browser/test/another.test.ts","D:/a/vitest/vitest/test/browser/test/server-headers.test.ts","D:/a/vitest/vitest/test/browser/test/failing.snaphot.test.ts","D:/a/vitest/vitest/test/browser/test/injected.test.ts"],
+ type: "tester",
+ contextId: "e8b95b82-c921-4d14-b41f-f1adb7c63560",
+ testerId: "a0f7414d-6a9f-4319-a134-46039ff6357e",
+ provider: "webd
|
specs/runner.test.ts > running browser tests > stack trace points to correct file in every browser:
test/browser/specs/runner.test.ts#L121
AssertionError: expected '\n⎯⎯⎯⎯⎯⎯ Failed Tests 30 ⎯⎯⎯⎯⎯⎯⎯\n\n …' to match /test\/faili…/failing.test.ts:10:(12|17)
- Expected:
/test\/failing.test.ts:10:(12|17)/
+ Received:
"
⎯⎯⎯⎯⎯⎯ Failed Tests 30 ⎯⎯⎯⎯⎯⎯⎯
FAIL test/userEvent.test.ts > userEvent.click > click inside shadow dom
Error: Can't call click on element with selector \">>>html > body > div > button\" because element wasn't found
Failure screenshot:
- test/__screenshots__/userEvent.test.ts/userEvent-click-click-inside-shadow-dom-1.png
❯ implicitWait ../../node_modules/.pnpm/[email protected]/node_modules/webdriverio/build/index.js:52:13
❯ Element.elementErrorHandlerCallbackFn ../../node_modules/.pnpm/[email protected]/node_modules/webdriverio/build/index.js:7334:23
❯ Element.wrapCommandFn ../../node_modules/.pnpm/@wdio[email protected]/node_modules/@wdio/utils/build/index.js:884:23
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[1/30]⎯
FAIL test/userEvent.test.ts > userEvent.click > clicks inside svg
AssertionError: expected \"spy\" to be called at least once
Failure screenshot:
- test/__screenshots__/userEvent.test.ts/userEvent-click-clicks-inside-svg-1.png
❯ test/userEvent.test.ts:78:20
76| await userEvent.click(circle)
77|
78| expect(onClick).toHaveBeenCalled()
| ^
79| })
80|
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[2/30]⎯
FAIL test/userEvent.test.ts > userEvent.click > clicks a button with complex HTML ID
AssertionError: expected \"spy\" to be called at least once
Failure screenshot:
- test/__screenshots__/userEvent.test.ts/userEvent-click-clicks-a-button-with-complex-HTML-ID-1.png
❯ test/userEvent.test.ts:98:20
96| await userEvent.click(button)
97|
98| expect(onClick).toHaveBeenCalled()
| ^
99| expect(dblClick).not.toHaveBeenCalled()
100| })
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[3/30]⎯
FAIL test/userEvent.test.ts > userEvent.dblClick > correctly clicks a button
AssertionError: expected \"spy\" to be called 2 times, but got 0 times
Failure screenshot:
- test/__screenshots__/userEvent.test.ts/userEvent-dblClick-correctly-clicks-a-button-1.png
❯ test/userEvent.test.ts:162:20
160| await userEvent.dblClick(button)
161|
162| expect(onClick).toHaveBeenCalledTimes(2)
| ^
163| expect(dblClick).toHaveBeenCalledTimes(1)
164| })
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[4/30]⎯
FAIL test/userEvent.test.ts > userEvent.tripleClick > correctly clicks a button
AssertionError: expected \"spy\" to be called 3 times, but got 0 times
Failure screenshot:
- test/__screenshots__/userEvent.test.ts/userEvent-tripleClick-correctly-clicks-a-button-1.png
❯ test/userEvent.test.ts:200:20
198| await userEvent.tripleClick(button)
199|
200| expect(onClick).toHaveBeenCalledTimes(3)
| ^
201| expect(dblClick).toHaveBeenCalledTimes(1)
202| expect(tripleClick).toHaveBeenCalledTimes(3)
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[5/30]⎯
FAIL test/userEvent.test.ts > userEvent.hover, userEvent.unhover > hover, unhover works correctly
AssertionError: expected false to be true // Object.is equality
Failure screenshot:
- test/__screenshots__/userEvent.test.ts/userEvent-hover--userEvent-unhover-hover--unhover-works-correctly-1.png
- Expected to be
+ But got
- true
+ false
❯ test/userEvent.test.ts:258:27
256| await userEvent.hover(target)
257|
258| expect(pointerEntered).toBe(true)
| ^
259| expect(mouseEntered).toBe(true)
260|
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[6/30]⎯
FAIL test/userEvent.test.ts > userEvent.hover, userEvent.unhover > hover works with shadow root
Error: Can't call moveTo on element with selector \">>>html > body > div > div\" because element wasn't found
Failure screenshot:
- test/__screenshots__/userEvent.test.ts/userEvent-hover--userEvent-unhover-hover-works-with-shadow-root-1.png
❯ implicitWait ../../node_modules/.pnpm/[email protected]/node_modules/webdriverio/build/index.js:52:13
❯ Element.elementErrorHandl
|
specs/runner.test.ts > running browser tests > popup apis should log a warning:
test/browser/specs/runner.test.ts#L133
AssertionError: expected '\n⎯⎯⎯⎯⎯⎯ Failed Tests 30 ⎯⎯⎯⎯⎯⎯⎯\n\n …' to contain 'Vitest encountered a `alert("test")`'
- Expected
+ Received
- Vitest encountered a `alert("test")`
+
+ ⎯⎯⎯⎯⎯⎯ Failed Tests 30 ⎯⎯⎯⎯⎯⎯⎯
+
+ FAIL test/userEvent.test.ts > userEvent.click > click inside shadow dom
+ Error: Can't call click on element with selector ">>>html > body > div > button" because element wasn't found
+
+ Failure screenshot:
+ - test/__screenshots__/userEvent.test.ts/userEvent-click-click-inside-shadow-dom-1.png
+
+ ❯ implicitWait ../../node_modules/.pnpm/[email protected]/node_modules/webdriverio/build/index.js:52:13
+ ❯ Element.elementErrorHandlerCallbackFn ../../node_modules/.pnpm/[email protected]/node_modules/webdriverio/build/index.js:7334:23
+ ❯ Element.wrapCommandFn ../../node_modules/.pnpm/@wdio[email protected]/node_modules/@wdio/utils/build/index.js:884:23
+
+ ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[1/30]⎯
+
+ FAIL test/userEvent.test.ts > userEvent.click > clicks inside svg
+ AssertionError: expected "spy" to be called at least once
+
+ Failure screenshot:
+ - test/__screenshots__/userEvent.test.ts/userEvent-click-clicks-inside-svg-1.png
+
+ ❯ test/userEvent.test.ts:78:20
+ 76| await userEvent.click(circle)
+ 77|
+ 78| expect(onClick).toHaveBeenCalled()
+ | ^
+ 79| })
+ 80|
+
+ ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[2/30]⎯
+
+ FAIL test/userEvent.test.ts > userEvent.click > clicks a button with complex HTML ID
+ AssertionError: expected "spy" to be called at least once
+
+ Failure screenshot:
+ - test/__screenshots__/userEvent.test.ts/userEvent-click-clicks-a-button-with-complex-HTML-ID-1.png
+
+ ❯ test/userEvent.test.ts:98:20
+ 96| await userEvent.click(button)
+ 97|
+ 98| expect(onClick).toHaveBeenCalled()
+ | ^
+ 99| expect(dblClick).not.toHaveBeenCalled()
+ 100| })
+
+ ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[3/30]⎯
+
+ FAIL test/userEvent.test.ts > userEvent.dblClick > correctly clicks a button
+ AssertionError: expected "spy" to be called 2 times, but got 0 times
+
+ Failure screenshot:
+ - test/__screenshots__/userEvent.test.ts/userEvent-dblClick-correctly-clicks-a-button-1.png
+
+ ❯ test/userEvent.test.ts:162:20
+ 160| await userEvent.dblClick(button)
+ 161|
+ 162| expect(onClick).toHaveBeenCalledTimes(2)
+ | ^
+ 163| expect(dblClick).toHaveBeenCalledTimes(1)
+ 164| })
+
+ ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[4/30]⎯
+
+ FAIL test/userEvent.test.ts > userEvent.tripleClick > correctly clicks a button
+ AssertionError: expected "spy" to be called 3 times, but got 0 times
+
+ Failure screenshot:
+ - test/__screenshots__/userEvent.test.ts/userEvent-tripleClick-correctly-clicks-a-button-1.png
+
+ ❯ test/userEvent.test.ts:200:20
+ 198| await userEvent.tripleClick(button)
+ 199|
+ 200| expect(onClick).toHaveBeenCalledTimes(3)
+ | ^
+ 201| expect(dblClick).toHaveBeenCalledTimes(1)
+ 202| expect(tripleClick).toHaveBeenCalledTimes(3)
+
+ ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[5/30]⎯
+
+ FAIL test/userEvent.test.ts > userEvent.hover, userEvent.unhover > hover, unhover works correctly
+ AssertionError: expected false to be true // Object.is equality
+
+ Failure screenshot:
+ - test/__screenshots__/userEvent.test.ts/userEvent-hover--userEvent-unhover-hover--unhover-works-correctly-1.png
+
+ - Expected to be
+ + But got
+
+ - true
+ + false
+
+ ❯ test/userEvent.test.ts:258:27
+ 256| await userEvent.hover(target)
+ 257|
+ 258| expect(pointerEntered).toBe(true)
+ | ^
+ 259| expect(mouseEntered).toBe(true)
+ 260|
+
+ ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[6/30]⎯
+
+ FAIL test/userEvent.test.ts > userEvent.hover, userEvent.unhover > hover works with shadow root
+ Error: Can't call moveTo on element with selector ">>>html > body > div > div" because element wasn't found
+
+ Failure screenshot:
+ - test/__screenshots__/userEvent.test.ts/userEvent-hover--userEvent-unhover
|
specs/runner.test.ts > running browser tests > snapshot inaccessible file debuggability:
test/browser/specs/runner.test.ts#L139
AssertionError: expected '\n⎯⎯⎯⎯⎯⎯ Failed Tests 30 ⎯⎯⎯⎯⎯⎯⎯\n\n …' to contain 'Access denied to "/inaccesible/path".'
- Expected
+ Received
- Access denied to "/inaccesible/path".
+
+ ⎯⎯⎯⎯⎯⎯ Failed Tests 30 ⎯⎯⎯⎯⎯⎯⎯
+
+ FAIL test/userEvent.test.ts > userEvent.click > click inside shadow dom
+ Error: Can't call click on element with selector ">>>html > body > div > button" because element wasn't found
+
+ Failure screenshot:
+ - test/__screenshots__/userEvent.test.ts/userEvent-click-click-inside-shadow-dom-1.png
+
+ ❯ implicitWait ../../node_modules/.pnpm/[email protected]/node_modules/webdriverio/build/index.js:52:13
+ ❯ Element.elementErrorHandlerCallbackFn ../../node_modules/.pnpm/[email protected]/node_modules/webdriverio/build/index.js:7334:23
+ ❯ Element.wrapCommandFn ../../node_modules/.pnpm/@wdio[email protected]/node_modules/@wdio/utils/build/index.js:884:23
+
+ ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[1/30]⎯
+
+ FAIL test/userEvent.test.ts > userEvent.click > clicks inside svg
+ AssertionError: expected "spy" to be called at least once
+
+ Failure screenshot:
+ - test/__screenshots__/userEvent.test.ts/userEvent-click-clicks-inside-svg-1.png
+
+ ❯ test/userEvent.test.ts:78:20
+ 76| await userEvent.click(circle)
+ 77|
+ 78| expect(onClick).toHaveBeenCalled()
+ | ^
+ 79| })
+ 80|
+
+ ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[2/30]⎯
+
+ FAIL test/userEvent.test.ts > userEvent.click > clicks a button with complex HTML ID
+ AssertionError: expected "spy" to be called at least once
+
+ Failure screenshot:
+ - test/__screenshots__/userEvent.test.ts/userEvent-click-clicks-a-button-with-complex-HTML-ID-1.png
+
+ ❯ test/userEvent.test.ts:98:20
+ 96| await userEvent.click(button)
+ 97|
+ 98| expect(onClick).toHaveBeenCalled()
+ | ^
+ 99| expect(dblClick).not.toHaveBeenCalled()
+ 100| })
+
+ ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[3/30]⎯
+
+ FAIL test/userEvent.test.ts > userEvent.dblClick > correctly clicks a button
+ AssertionError: expected "spy" to be called 2 times, but got 0 times
+
+ Failure screenshot:
+ - test/__screenshots__/userEvent.test.ts/userEvent-dblClick-correctly-clicks-a-button-1.png
+
+ ❯ test/userEvent.test.ts:162:20
+ 160| await userEvent.dblClick(button)
+ 161|
+ 162| expect(onClick).toHaveBeenCalledTimes(2)
+ | ^
+ 163| expect(dblClick).toHaveBeenCalledTimes(1)
+ 164| })
+
+ ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[4/30]⎯
+
+ FAIL test/userEvent.test.ts > userEvent.tripleClick > correctly clicks a button
+ AssertionError: expected "spy" to be called 3 times, but got 0 times
+
+ Failure screenshot:
+ - test/__screenshots__/userEvent.test.ts/userEvent-tripleClick-correctly-clicks-a-button-1.png
+
+ ❯ test/userEvent.test.ts:200:20
+ 198| await userEvent.tripleClick(button)
+ 199|
+ 200| expect(onClick).toHaveBeenCalledTimes(3)
+ | ^
+ 201| expect(dblClick).toHaveBeenCalledTimes(1)
+ 202| expect(tripleClick).toHaveBeenCalledTimes(3)
+
+ ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[5/30]⎯
+
+ FAIL test/userEvent.test.ts > userEvent.hover, userEvent.unhover > hover, unhover works correctly
+ AssertionError: expected false to be true // Object.is equality
+
+ Failure screenshot:
+ - test/__screenshots__/userEvent.test.ts/userEvent-hover--userEvent-unhover-hover--unhover-works-correctly-1.png
+
+ - Expected to be
+ + But got
+
+ - true
+ + false
+
+ ❯ test/userEvent.test.ts:258:27
+ 256| await userEvent.hover(target)
+ 257|
+ 258| expect(pointerEntered).toBe(true)
+ | ^
+ 259| expect(mouseEntered).toBe(true)
+ 260|
+
+ ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[6/30]⎯
+
+ FAIL test/userEvent.test.ts > userEvent.hover, userEvent.unhover > hover works with shadow root
+ Error: Can't call moveTo on element with selector ">>>html > body > div > div" because element wasn't found
+
+ Failure screenshot:
+ - test/__screenshots__/userEvent.test.ts/userEvent-hover--userEvent-unhov
|
specs/runner.test.ts > user-event:
test/browser/specs/runner.test.ts#L147
Error: Snapshot `user-event 1` mismatched
- Expected
+ Received
{
"cleanup-retry.test.ts": "pass",
- "cleanup1.test.ts": "pass",
+ "cleanup1.test.ts": "fail",
- "cleanup2.test.ts": "pass",
+ "cleanup2.test.ts": "fail",
"keyboard.test.ts": "pass",
}
❯ specs/runner.test.ts:147:87
|
specs/runner.test.ts > running browser tests > tests are actually running:
test/browser/specs/runner.test.ts#L32
AssertionError: expected [ { …(6) }, { …(6) }, { …(6) }, …(12) ] to have a length of 17 but got 15
- Expected
+ Received
- 17
+ 15
❯ specs/runner.test.ts:32:25
|
specs/runner.test.ts > user-event:
test/browser/specs/runner.test.ts#L147
Error: Snapshot `user-event 1` mismatched
- Expected
+ Received
{
- "cleanup-retry.test.ts": "pass",
+ "cleanup-retry.test.ts": "fail",
- "cleanup1.test.ts": "pass",
+ "cleanup1.test.ts": "fail",
- "cleanup2.test.ts": "pass",
+ "cleanup2.test.ts": "fail",
- "keyboard.test.ts": "pass",
+ "keyboard.test.ts": "fail",
}
❯ specs/runner.test.ts:147:87
|
specs/server-url.test.ts > server-url http:
test/browser/specs/server-url.test.ts#L15
AssertionError: expected 'http://127.0.0.1:51133/' to be 'http://localhost:51133/' // Object.is equality
Expected: "http://localhost:51133/"
Received: "http://127.0.0.1:51133/"
❯ specs/server-url.test.ts:15:15
|
specs/server-url.test.ts > server-url https:
test/browser/specs/server-url.test.ts#L26
AssertionError: expected 'https://127.0.0.1:51122/' to be 'https://localhost:51122/' // Object.is equality
Expected: "https://localhost:51122/"
Received: "https://127.0.0.1:51122/"
❯ specs/server-url.test.ts:26:15
|
Browser: chromium, windows-latest
Process completed with exit code 1.
|
specs/runner.test.ts > user-event:
test/browser/specs/runner.test.ts#L147
Error: Snapshot `user-event 1` mismatched
- Expected
+ Received
{
"cleanup-retry.test.ts": "pass",
- "cleanup1.test.ts": "pass",
+ "cleanup1.test.ts": "fail",
- "cleanup2.test.ts": "pass",
+ "cleanup2.test.ts": "fail",
"keyboard.test.ts": "pass",
}
❯ specs/runner.test.ts:147:87
|
specs/server-url.test.ts > server-url http:
test/browser/specs/server-url.test.ts#L15
AssertionError: expected 'http://127.0.0.1:51133/' to be 'http://localhost:51133/' // Object.is equality
Expected: "http://localhost:51133/"
Received: "http://127.0.0.1:51133/"
❯ specs/server-url.test.ts:15:15
|
specs/server-url.test.ts > server-url https:
test/browser/specs/server-url.test.ts#L26
AssertionError: expected 'https://127.0.0.1:51122/' to be 'https://localhost:51122/' // Object.is equality
Expected: "https://localhost:51122/"
Received: "https://127.0.0.1:51122/"
❯ specs/server-url.test.ts:26:15
|
Browser: firefox, macos-latest
Process completed with exit code 1.
|