Skip to content
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

chore(wdio): port listen-jsx suite from karma to wdio #5487

Merged
merged 1 commit into from
Mar 15, 2024
Merged
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
26 changes: 0 additions & 26 deletions test/karma/test-app/components.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,6 @@ export namespace Components {
interface LifecycleUpdateC {
"value": number;
}
interface ListenJsx {
}
interface ListenJsxRoot {
}
interface ListenReattach {
}
interface NodeResolution {
Expand Down Expand Up @@ -633,18 +629,6 @@ declare global {
prototype: HTMLLifecycleUpdateCElement;
new (): HTMLLifecycleUpdateCElement;
};
interface HTMLListenJsxElement extends Components.ListenJsx, HTMLStencilElement {
}
var HTMLListenJsxElement: {
prototype: HTMLListenJsxElement;
new (): HTMLListenJsxElement;
};
interface HTMLListenJsxRootElement extends Components.ListenJsxRoot, HTMLStencilElement {
}
var HTMLListenJsxRootElement: {
prototype: HTMLListenJsxRootElement;
new (): HTMLListenJsxRootElement;
};
interface HTMLListenReattachElement extends Components.ListenReattach, HTMLStencilElement {
}
var HTMLListenReattachElement: {
Expand Down Expand Up @@ -1168,8 +1152,6 @@ declare global {
"lifecycle-update-a": HTMLLifecycleUpdateAElement;
"lifecycle-update-b": HTMLLifecycleUpdateBElement;
"lifecycle-update-c": HTMLLifecycleUpdateCElement;
"listen-jsx": HTMLListenJsxElement;
"listen-jsx-root": HTMLListenJsxRootElement;
"listen-reattach": HTMLListenReattachElement;
"node-resolution": HTMLNodeResolutionElement;
"parent-reflect-nan-attribute": HTMLParentReflectNanAttributeElement;
Expand Down Expand Up @@ -1353,10 +1335,6 @@ declare namespace LocalJSX {
interface LifecycleUpdateC {
"value"?: number;
}
interface ListenJsx {
}
interface ListenJsxRoot {
}
interface ListenReattach {
}
interface NodeResolution {
Expand Down Expand Up @@ -1594,8 +1572,6 @@ declare namespace LocalJSX {
"lifecycle-update-a": LifecycleUpdateA;
"lifecycle-update-b": LifecycleUpdateB;
"lifecycle-update-c": LifecycleUpdateC;
"listen-jsx": ListenJsx;
"listen-jsx-root": ListenJsxRoot;
"listen-reattach": ListenReattach;
"node-resolution": NodeResolution;
"parent-reflect-nan-attribute": ParentReflectNanAttribute;
Expand Down Expand Up @@ -1724,8 +1700,6 @@ declare module "@stencil/core" {
"lifecycle-update-a": LocalJSX.LifecycleUpdateA & JSXBase.HTMLAttributes<HTMLLifecycleUpdateAElement>;
"lifecycle-update-b": LocalJSX.LifecycleUpdateB & JSXBase.HTMLAttributes<HTMLLifecycleUpdateBElement>;
"lifecycle-update-c": LocalJSX.LifecycleUpdateC & JSXBase.HTMLAttributes<HTMLLifecycleUpdateCElement>;
"listen-jsx": LocalJSX.ListenJsx & JSXBase.HTMLAttributes<HTMLListenJsxElement>;
"listen-jsx-root": LocalJSX.ListenJsxRoot & JSXBase.HTMLAttributes<HTMLListenJsxRootElement>;
"listen-reattach": LocalJSX.ListenReattach & JSXBase.HTMLAttributes<HTMLListenReattachElement>;
"node-resolution": LocalJSX.NodeResolution & JSXBase.HTMLAttributes<HTMLNodeResolutionElement>;
"parent-reflect-nan-attribute": LocalJSX.ParentReflectNanAttribute & JSXBase.HTMLAttributes<HTMLParentReflectNanAttributeElement>;
Expand Down
6 changes: 0 additions & 6 deletions test/karma/test-app/listen-jsx/index.html

This file was deleted.

20 changes: 0 additions & 20 deletions test/karma/test-app/listen-jsx/karma.spec.ts

This file was deleted.

16 changes: 16 additions & 0 deletions test/wdio/listen-jsx/cmp-root.test.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { h } from '@stencil/core';
import { render } from '@wdio/browser-runner/stencil';

describe('listen-jsx', function () {
beforeEach(() => {
render({
template: () => <listen-jsx-root></listen-jsx-root>,
});
});

it('button click trigger both listeners', async () => {
await $('listen-jsx').click();
await expect($('#result')).toHaveText('Host event');
await expect($('#result-root')).toHaveText('Parent event');
});
});
File renamed without changes.
Loading