-
Notifications
You must be signed in to change notification settings - Fork 794
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Tracking] WebdriverIO Migration #5458
Comments
2 tasks
This was referenced Mar 18, 2024
2 tasks
Closing, migration of the tests themselves is complete (save for a few misc cleanup items). Great job everyone 🎉 |
alicewriteswrongs
added a commit
that referenced
this issue
Mar 28, 2024
We no longer want to run the workflow nor do we want this code hanging around! Now that #5458 is closed we don't need to run the karma tests anymore. STENCIL-1239
2 tasks
alicewriteswrongs
added a commit
that referenced
this issue
Mar 28, 2024
We no longer want to run the workflow nor do we want this code hanging around! Now that #5458 is closed we don't need to run the karma tests anymore. STENCIL-1239
github-merge-queue bot
pushed a commit
that referenced
this issue
Mar 28, 2024
We no longer want to run the workflow nor do we want this code hanging around! Now that #5458 is closed we don't need to run the karma tests anymore. STENCIL-1239
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In #5456 we introduced WebdriverIO as testing framework of choice for testing Stencil components. This issue tracks our progress migrating our current existing Karma test suite to WebdriverIO. To migrate a test, follow these instructions:
wdio
folder, e.g.git mv test/karma/test-app/conditional-rerender test/wdio/conditional-rerender
karma.spec.ts
into e.g.cmp.test.tsx
(note the .tsx)render
function, e.g..html
file , except doctype, meta and script tags that import the test app:cd test/wdio && npm ci && npm run build && npm run wdio -- --spec conditional-rerender --watch
querySelector
calls, replace them with WebdriverIO queries, e.g.await main.waitForExist()
after every time you callrender
or interact with the component viaclick
toMatchInlineSnapshot
.html
file from the directory and other unnecessary filesnpm run test.wdio
cd test/karma && npm run build.all
npm run prettier
Tests:
conditional-rerender
css-variables
custom-elements-delegates-focus
custom-elements-output-tag-class-different
custom-elements-output-webpack
custom-event
delegates-focus
dom-reattach
dom-reattach-clone
dynamic-css-variables
dynamic-imports
es5-addclass-svg
esm-import
esm-webpack
event-basic
event-custom-type
event-listener-capture
external-imports
form-associated
global-script
global.ts
host-attr-override
import-aliasing
init-css-shim
input-basic
invisible-prehydration-false
json-basic
key-reorder
lifecycle-async
lifecycle-basic
lifecycle-nested
lifecycle-unload
lifecycle-update
listen-jsx
listen-reattach
listen-window
node-resolution
no test, just a filenoscript.js
prerender-test
reflect-nan-attribute
reflect-nan-attribute-hyphen
reflect-nan-attribute-with-child
reflect-single-render
reflect-to-attr
remove-child-patch
reparent-style
scoped-basic
scoped-conditional
scoped-slot-append-and-prepend
scoped-slot-child-insert-adjacent
scoped-slot-in-slot
scoped-slot-text
scoped-slot-text-with-sibling
shadow-dom-array
shadow-dom-basic
shadow-dom-mode
(removed)shadow-dom-slot-basic
shadow-dom-slot-nested
shared-jsx
slot-array-basic
slot-array-complex
slot-array-top
slot-basic
slot-basic-order
slot-children
slot-dynamic-name-change
slot-dynamic-wrapper
slot-fallback
slot-hide-content
slot-html
slot-light-dom
slot-map-order
slot-nested-default-order
slot-nested-order
slot-ng-if
slot-no-default
slot-parent-tag-change
slot-reorder
slot-replace-wrapper
slot-scoped-list
slot-shadow-list
slotted-css
static-members
static-styles
stencil-sibling
svg-attr
svg-class
tag-names
text-content-patch
watch-native-attributes
The text was updated successfully, but these errors were encountered: