Skip to content

Commit

Permalink
chore(wdio): migrate listen-window test suite to wdio (#5490)
Browse files Browse the repository at this point in the history
  • Loading branch information
alicewriteswrongs authored Mar 15, 2024
1 parent 32613e7 commit e4009ed
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 42 deletions.
13 changes: 0 additions & 13 deletions test/karma/test-app/components.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,6 @@ export namespace Components {
}
interface ListenReattach {
}
interface ListenWindow {
}
interface NodeResolution {
}
interface ParentReflectNanAttribute {
Expand Down Expand Up @@ -653,12 +651,6 @@ declare global {
prototype: HTMLListenReattachElement;
new (): HTMLListenReattachElement;
};
interface HTMLListenWindowElement extends Components.ListenWindow, HTMLStencilElement {
}
var HTMLListenWindowElement: {
prototype: HTMLListenWindowElement;
new (): HTMLListenWindowElement;
};
interface HTMLNodeResolutionElement extends Components.NodeResolution, HTMLStencilElement {
}
var HTMLNodeResolutionElement: {
Expand Down Expand Up @@ -1179,7 +1171,6 @@ declare global {
"listen-jsx": HTMLListenJsxElement;
"listen-jsx-root": HTMLListenJsxRootElement;
"listen-reattach": HTMLListenReattachElement;
"listen-window": HTMLListenWindowElement;
"node-resolution": HTMLNodeResolutionElement;
"parent-reflect-nan-attribute": HTMLParentReflectNanAttributeElement;
"parent-with-reflect-child": HTMLParentWithReflectChildElement;
Expand Down Expand Up @@ -1368,8 +1359,6 @@ declare namespace LocalJSX {
}
interface ListenReattach {
}
interface ListenWindow {
}
interface NodeResolution {
}
interface ParentReflectNanAttribute {
Expand Down Expand Up @@ -1608,7 +1597,6 @@ declare namespace LocalJSX {
"listen-jsx": ListenJsx;
"listen-jsx-root": ListenJsxRoot;
"listen-reattach": ListenReattach;
"listen-window": ListenWindow;
"node-resolution": NodeResolution;
"parent-reflect-nan-attribute": ParentReflectNanAttribute;
"parent-with-reflect-child": ParentWithReflectChild;
Expand Down Expand Up @@ -1739,7 +1727,6 @@ declare module "@stencil/core" {
"listen-jsx": LocalJSX.ListenJsx & JSXBase.HTMLAttributes<HTMLListenJsxElement>;
"listen-jsx-root": LocalJSX.ListenJsxRoot & JSXBase.HTMLAttributes<HTMLListenJsxRootElement>;
"listen-reattach": LocalJSX.ListenReattach & JSXBase.HTMLAttributes<HTMLListenReattachElement>;
"listen-window": LocalJSX.ListenWindow & JSXBase.HTMLAttributes<HTMLListenWindowElement>;
"node-resolution": LocalJSX.NodeResolution & JSXBase.HTMLAttributes<HTMLNodeResolutionElement>;
"parent-reflect-nan-attribute": LocalJSX.ParentReflectNanAttribute & JSXBase.HTMLAttributes<HTMLParentReflectNanAttributeElement>;
"parent-with-reflect-child": LocalJSX.ParentWithReflectChild & JSXBase.HTMLAttributes<HTMLParentWithReflectChildElement>;
Expand Down
6 changes: 0 additions & 6 deletions test/karma/test-app/listen-window/index.html

This file was deleted.

23 changes: 0 additions & 23 deletions test/karma/test-app/listen-window/karma.spec.ts

This file was deleted.

16 changes: 16 additions & 0 deletions test/wdio/listen-window/cmp-a.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-window', () => {
beforeEach(async () => {
render({
template: () => <listen-window></listen-window>,
});
});

it('window should receive click events', async () => {
await expect($('#clicked')).toHaveText('Clicked: 0');
await $('button').click();
await expect($('#clicked')).toHaveText('Clicked: 1');
});
});
File renamed without changes.

0 comments on commit e4009ed

Please sign in to comment.