feat: upgrade webdriverio to v9 #11031
ci.yml
on: pull_request
Diff: node-latest, ubuntu-latest
6s
Lint: node-20.14, ubuntu-latest
2m 23s
Matrix: test-browser
Matrix: test
Annotations
19 errors
Lint: node-20.14, ubuntu-latest:
packages/browser/src/node/providers/webdriver.ts#L6
Module '"webdriverio"' has no exported member 'RemoteOptions'.
|
Lint: node-20.14, ubuntu-latest
Process completed with exit code 2.
|
specs/locators.test.ts > locators work correctly:
test/browser/specs/locators.test.ts#L10
AssertionError: expected '⎯⎯⎯⎯⎯⎯⎯ Failed Tests 1 ⎯⎯⎯⎯⎯⎯⎯\n\n FA…' to be '' // Object.is equality
- Expected
+ Received
+ ⎯⎯⎯⎯⎯⎯⎯ Failed Tests 1 ⎯⎯⎯⎯⎯⎯⎯
+
+ FAIL blog.test.tsx > renders blog posts
+ Error: Can't call click on element with selector "html > body > div > div > ul > li:nth-child(2) > button" because element wasn't found
+ ❯ implicitWait ../../../../node_modules/.pnpm/[email protected]/node_modules/webdriverio/build/index.js:49:13
+ ❯ Element.elementErrorHandlerCallbackFn ../../../../node_modules/.pnpm/[email protected]/node_modules/webdriverio/build/index.js:6490:23
+ ❯ Element.wrapCommandFn ../../../../node_modules/.pnpm/@wdio[email protected]/node_modules/@wdio/utils/build/index.js:1368:23
+
+ ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[1/2]⎯
+
+ FAIL blog.test.tsx > renders blog posts
+ Error: Can't call saveScreenshot on element with selector "body" because element wasn't found
+ ❯ implicitWait ../../../../node_modules/.pnpm/[email protected]/node_modules/webdriverio/build/index.js:49:13
+ ❯ Element.elementErrorHandlerCallbackFn ../../../../node_modules/.pnpm/[email protected]/node_modules/webdriverio/build/index.js:6490:23
+ ❯ Element.wrapCommandFn ../../../../node_modules/.pnpm/@wdio[email protected]/node_modules/@wdio/utils/build/index.js:1368:23
+
+ ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[2/2]⎯
+
+
❯ specs/locators.test.ts:10:18
|
specs/server-url.test.ts > server-url http:
test/browser/specs/server-url.test.ts#L13
AssertionError: expected '\n RUN v2.1.0-beta.6 /Users/runner/w…' to contain 'Browser runner started at http://loca…'
- Expected
+ Received
- Browser runner started at http://localhost:5173/
+
+ RUN v2.1.0-beta.6 /Users/runner/work/vitest/vitest/test/browser/fixtures/server-url
+ Browser runner started at http://127.0.0.1:5173/
+
+ ✓ basic.test.ts (1 test) 1ms
+
+ Test Files 1 passed (1)
+ Tests 1 passed (1)
+ Start at 14:03:02
+ Duration 1.95s (transform 0ms, setup 0ms, collect 10ms, tests 1ms, environment 0ms, prepare 17ms)
+
+
❯ specs/server-url.test.ts:13:18
|
specs/server-url.test.ts > server-url https:
test/browser/specs/server-url.test.ts#L22
AssertionError: expected '\n RUN v2.1.0-beta.6 /Users/runner/w…' to contain 'Browser runner started at https://loc…'
- Expected
+ Received
- Browser runner started at https://localhost:5173/
+
+ RUN v2.1.0-beta.6 /Users/runner/work/vitest/vitest/test/browser/fixtures/server-url
+ Browser runner started at https://127.0.0.1:5173/
+
+ ✓ basic.test.ts (1 test) 1ms
+
+ Test Files 1 passed (1)
+ Tests 1 passed (1)
+ Start at 14:03:04
+ Duration 1.98s (transform 0ms, setup 0ms, collect 16ms, tests 1ms, environment 0ms, prepare 18ms)
+
+
❯ specs/server-url.test.ts:22:18
|
Browser: chromium, macos-14
Process completed with exit code 1.
|
specs/locators.test.ts > locators work correctly:
test/browser/specs/locators.test.ts#L10
AssertionError: expected '⎯⎯⎯⎯⎯⎯⎯ Failed Tests 1 ⎯⎯⎯⎯⎯⎯⎯\n\n FA…' to be '' // Object.is equality
- Expected
+ Received
+ ⎯⎯⎯⎯⎯⎯⎯ Failed Tests 1 ⎯⎯⎯⎯⎯⎯⎯
+
+ FAIL blog.test.tsx > renders blog posts
+ Error: Can't call click on element with selector "html > body > div > div > ul > li:nth-child(2) > button" because element wasn't found
+ ❯ implicitWait ../../../../node_modules/.pnpm/[email protected]/node_modules/webdriverio/build/index.js:49:13
+ ❯ Element.elementErrorHandlerCallbackFn ../../../../node_modules/.pnpm/[email protected]/node_modules/webdriverio/build/index.js:6490:23
+ ❯ Element.wrapCommandFn ../../../../node_modules/.pnpm/@wdio[email protected]/node_modules/@wdio/utils/build/index.js:1368:23
+
+ ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[1/2]⎯
+
+ FAIL blog.test.tsx > renders blog posts
+ Error: Can't call saveScreenshot on element with selector "body" because element wasn't found
+ ❯ implicitWait ../../../../node_modules/.pnpm/[email protected]/node_modules/webdriverio/build/index.js:49:13
+ ❯ Element.elementErrorHandlerCallbackFn ../../../../node_modules/.pnpm/[email protected]/node_modules/webdriverio/build/index.js:6490:23
+ ❯ Element.wrapCommandFn ../../../../node_modules/.pnpm/@wdio[email protected]/node_modules/@wdio/utils/build/index.js:1368:23
+
+ ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[2/2]⎯
+
+
❯ specs/locators.test.ts:10:18
|
specs/server-url.test.ts > server-url http:
test/browser/specs/server-url.test.ts#L13
AssertionError: expected '\n RUN v2.1.0-beta.6 D:/a/vitest/vit…' to contain 'Browser runner started at http://loca…'
- Expected
+ Received
- Browser runner started at http://localhost:5173/
+
+ RUN v2.1.0-beta.6 D:/a/vitest/vitest/test/browser/fixtures/server-url
+ Browser runner started at http://127.0.0.1:5173/
+
+ ✓ basic.test.ts (1 test) 2ms
+
+ Test Files 1 passed (1)
+ Tests 1 passed (1)
+ Start at 14:05:06
+ Duration 2.33s (transform 0ms, setup 0ms, collect 12ms, tests 2ms, environment 0ms, prepare 26ms)
+
+
❯ specs/server-url.test.ts:13:18
|
specs/server-url.test.ts > server-url https:
test/browser/specs/server-url.test.ts#L22
AssertionError: expected '\n RUN v2.1.0-beta.6 D:/a/vitest/vit…' to contain 'Browser runner started at https://loc…'
- Expected
+ Received
- Browser runner started at https://localhost:5173/
+
+ RUN v2.1.0-beta.6 D:/a/vitest/vitest/test/browser/fixtures/server-url
+ Browser runner started at https://127.0.0.1:5173/
+
+ ✓ basic.test.ts (1 test) 2ms
+
+ Test Files 1 passed (1)
+ Tests 1 passed (1)
+ Start at 14:05:09
+ Duration 2.37s (transform 0ms, setup 0ms, collect 13ms, tests 2ms, environment 0ms, prepare 26ms)
+
+
❯ specs/server-url.test.ts:22:18
|
Browser: chromium, windows-latest
Process completed with exit code 1.
|
Build&Test: node-20.14, macos-14
Process completed with exit code 1.
|
specs/locators.test.ts > locators work correctly:
test/browser/specs/locators.test.ts#L10
AssertionError: expected '⎯⎯⎯⎯⎯⎯⎯ Failed Tests 1 ⎯⎯⎯⎯⎯⎯⎯\n\n FA…' to be '' // Object.is equality
- Expected
+ Received
+ ⎯⎯⎯⎯⎯⎯⎯ Failed Tests 1 ⎯⎯⎯⎯⎯⎯⎯
+
+ FAIL blog.test.tsx > renders blog posts
+ Error: Can't call click on element with selector "html > body > div > div > ul > li:nth-child(2) > button" because element wasn't found
+
+ Failure screenshot:
+ - fixtures/locators/__screenshots__/blog.test.tsx/renders-blog-posts-1.png
+
+ ❯ implicitWait ../../../../node_modules/.pnpm/[email protected]/node_modules/webdriverio/build/index.js:49:13
+ ❯ Element.elementErrorHandlerCallbackFn ../../../../node_modules/.pnpm/[email protected]/node_modules/webdriverio/build/index.js:6490:23
+ ❯ Element.wrapCommandFn ../../../../node_modules/.pnpm/@wdio[email protected]/node_modules/@wdio/utils/build/index.js:1368:23
+
+ ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[1/1]⎯
+
+
❯ specs/locators.test.ts:10:18
|
specs/server-url.test.ts > server-url http:
test/browser/specs/server-url.test.ts#L13
AssertionError: expected '\n RUN v2.1.0-beta.6 D:/a/vitest/vit…' to contain 'Browser runner started at http://loca…'
- Expected
+ Received
- Browser runner started at http://localhost:5173/
+
+ RUN v2.1.0-beta.6 D:/a/vitest/vitest/test/browser/fixtures/server-url
+ Browser runner started at http://127.0.0.1:5173/
+
+ ✓ basic.test.ts (1 test)
+
+ Test Files 1 passed (1)
+ Tests 1 passed (1)
+ Start at 14:06:06
+ Duration 3.40s (transform 0ms, setup 0ms, collect 6ms, tests 0ms, environment 0ms, prepare 17ms)
+
+
❯ specs/server-url.test.ts:13:18
|
specs/server-url.test.ts > server-url https:
test/browser/specs/server-url.test.ts#L22
AssertionError: expected '\n RUN v2.1.0-beta.6 D:/a/vitest/vit…' to contain 'Browser runner started at https://loc…'
- Expected
+ Received
- Browser runner started at https://localhost:5173/
+
+ RUN v2.1.0-beta.6 D:/a/vitest/vitest/test/browser/fixtures/server-url
+ Browser runner started at https://127.0.0.1:5173/
+
+ ✓ basic.test.ts (1 test)
+
+ Test Files 1 passed (1)
+ Tests 1 passed (1)
+ Start at 14:06:11
+ Duration 3.35s (transform 0ms, setup 0ms, collect 6ms, tests 0ms, environment 0ms, prepare 16ms)
+
+
❯ specs/server-url.test.ts:22:18
|
Browser: firefox, windows-latest
Process completed with exit code 1.
|
specs/locators.test.ts > locators work correctly:
test/browser/specs/locators.test.ts#L10
AssertionError: expected '⎯⎯⎯⎯⎯⎯⎯ Failed Tests 1 ⎯⎯⎯⎯⎯⎯⎯\n\n FA…' to be '' // Object.is equality
- Expected
+ Received
+ ⎯⎯⎯⎯⎯⎯⎯ Failed Tests 1 ⎯⎯⎯⎯⎯⎯⎯
+
+ FAIL blog.test.tsx > renders blog posts
+ Error: Can't call click on element with selector "html > body > div > div > ul > li:nth-child(2) > button" because element wasn't found
+
+ Failure screenshot:
+ - fixtures/locators/__screenshots__/blog.test.tsx/renders-blog-posts-1.png
+
+ ❯ implicitWait ../../../../node_modules/.pnpm/[email protected]/node_modules/webdriverio/build/index.js:49:13
+ ❯ Element.elementErrorHandlerCallbackFn ../../../../node_modules/.pnpm/[email protected]/node_modules/webdriverio/build/index.js:6490:23
+ ❯ Element.wrapCommandFn ../../../../node_modules/.pnpm/@wdio[email protected]/node_modules/@wdio/utils/build/index.js:1368:23
+
+ ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[1/1]⎯
+
+
❯ specs/locators.test.ts:10:18
|
specs/server-url.test.ts > server-url http:
test/browser/specs/server-url.test.ts#L13
AssertionError: expected '\n RUN v2.1.0-beta.6 /Users/runner/w…' to contain 'Browser runner started at http://loca…'
- Expected
+ Received
- Browser runner started at http://localhost:5173/
+
+ RUN v2.1.0-beta.6 /Users/runner/work/vitest/vitest/test/browser/fixtures/server-url
+ Browser runner started at http://127.0.0.1:5173/
+
+ ✓ basic.test.ts (1 test)
+
+ Test Files 1 passed (1)
+ Tests 1 passed (1)
+ Start at 14:07:00
+ Duration 3.44s (transform 0ms, setup 0ms, collect 6ms, tests 0ms, environment 0ms, prepare 15ms)
+
+
❯ specs/server-url.test.ts:13:18
|
specs/server-url.test.ts > server-url https:
test/browser/specs/server-url.test.ts#L22
AssertionError: expected '\n RUN v2.1.0-beta.6 /Users/runner/w…' to contain 'Browser runner started at https://loc…'
- Expected
+ Received
- Browser runner started at https://localhost:5173/
+
+ RUN v2.1.0-beta.6 /Users/runner/work/vitest/vitest/test/browser/fixtures/server-url
+ Browser runner started at https://127.0.0.1:5173/
+
+ ✓ basic.test.ts (1 test) 1ms
+
+ Test Files 1 passed (1)
+ Tests 1 passed (1)
+ Start at 14:07:04
+ Duration 2.88s (transform 0ms, setup 0ms, collect 7ms, tests 1ms, environment 0ms, prepare 12ms)
+
+
❯ specs/server-url.test.ts:22:18
|
Browser: firefox, macos-14
Process completed with exit code 1.
|