diff --git a/test/karma/test-app/components.d.ts b/test/karma/test-app/components.d.ts index 77fe03ccba2..88c34c994ef 100644 --- a/test/karma/test-app/components.d.ts +++ b/test/karma/test-app/components.d.ts @@ -95,8 +95,6 @@ export namespace Components { } interface IonParent { } - interface JsonBasic { - } interface KeyReorder { "num"?: number; } @@ -646,12 +644,6 @@ declare global { prototype: HTMLIonParentElement; new (): HTMLIonParentElement; }; - interface HTMLJsonBasicElement extends Components.JsonBasic, HTMLStencilElement { - } - var HTMLJsonBasicElement: { - prototype: HTMLJsonBasicElement; - new (): HTMLJsonBasicElement; - }; interface HTMLKeyReorderElement extends Components.KeyReorder, HTMLStencilElement { } var HTMLKeyReorderElement: { @@ -1345,7 +1337,6 @@ declare global { "ion-child": HTMLIonChildElement; "ion-host": HTMLIonHostElement; "ion-parent": HTMLIonParentElement; - "json-basic": HTMLJsonBasicElement; "key-reorder": HTMLKeyReorderElement; "key-reorder-root": HTMLKeyReorderRootElement; "lifecycle-async-a": HTMLLifecycleAsyncAElement; @@ -1538,8 +1529,6 @@ declare namespace LocalJSX { } interface IonParent { } - interface JsonBasic { - } interface KeyReorder { "num"?: number; } @@ -1830,7 +1819,6 @@ declare namespace LocalJSX { "ion-child": IonChild; "ion-host": IonHost; "ion-parent": IonParent; - "json-basic": JsonBasic; "key-reorder": KeyReorder; "key-reorder-root": KeyReorderRoot; "lifecycle-async-a": LifecycleAsyncA; @@ -1976,7 +1964,6 @@ declare module "@stencil/core" { "ion-child": LocalJSX.IonChild & JSXBase.HTMLAttributes; "ion-host": LocalJSX.IonHost & JSXBase.HTMLAttributes; "ion-parent": LocalJSX.IonParent & JSXBase.HTMLAttributes; - "json-basic": LocalJSX.JsonBasic & JSXBase.HTMLAttributes; "key-reorder": LocalJSX.KeyReorder & JSXBase.HTMLAttributes; "key-reorder-root": LocalJSX.KeyReorderRoot & JSXBase.HTMLAttributes; "lifecycle-async-a": LocalJSX.LifecycleAsyncA & JSXBase.HTMLAttributes; diff --git a/test/karma/test-app/json-basic/index.html b/test/karma/test-app/json-basic/index.html deleted file mode 100644 index b519ed0082b..00000000000 --- a/test/karma/test-app/json-basic/index.html +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/test/karma/test-app/json-basic/karma.spec.ts b/test/karma/test-app/json-basic/karma.spec.ts deleted file mode 100644 index 7e45f8e4b00..00000000000 --- a/test/karma/test-app/json-basic/karma.spec.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { setupDomTests } from '../util'; - -describe('attribute-basic', function () { - const { setupDom, tearDownDom } = setupDomTests(document); - let app: HTMLElement; - - beforeEach(async () => { - app = await setupDom('/json-basic/index.html'); - }); - afterEach(tearDownDom); - - it('read json content', async () => { - expect(app.querySelector('#json-foo').textContent).toBe('bar'); - }); -}); diff --git a/test/wdio/json-basic/cmp.test.tsx b/test/wdio/json-basic/cmp.test.tsx new file mode 100644 index 00000000000..cf27a8fb334 --- /dev/null +++ b/test/wdio/json-basic/cmp.test.tsx @@ -0,0 +1,14 @@ +import { h } from '@stencil/core'; +import { render } from '@wdio/browser-runner/stencil'; + +describe('json-basic', function () { + beforeEach(() => { + render({ + template: () => , + }); + }); + + it('read json content', async () => { + await expect($('#json-foo')).toHaveText('bar'); + }); +}); diff --git a/test/karma/test-app/json-basic/cmp.tsx b/test/wdio/json-basic/cmp.tsx similarity index 100% rename from test/karma/test-app/json-basic/cmp.tsx rename to test/wdio/json-basic/cmp.tsx diff --git a/test/karma/test-app/json-basic/data.json b/test/wdio/json-basic/data.json similarity index 100% rename from test/karma/test-app/json-basic/data.json rename to test/wdio/json-basic/data.json