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 json-basic suite from karma to wdio #5477

Merged
merged 1 commit into from
Mar 14, 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
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 @@ -95,8 +95,6 @@ export namespace Components {
}
interface IonParent {
}
interface JsonBasic {
}
interface KeyReorder {
"num"?: number;
}
Expand Down Expand Up @@ -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: {
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -1538,8 +1529,6 @@ declare namespace LocalJSX {
}
interface IonParent {
}
interface JsonBasic {
}
interface KeyReorder {
"num"?: number;
}
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -1976,7 +1964,6 @@ declare module "@stencil/core" {
"ion-child": LocalJSX.IonChild & JSXBase.HTMLAttributes<HTMLIonChildElement>;
"ion-host": LocalJSX.IonHost & JSXBase.HTMLAttributes<HTMLIonHostElement>;
"ion-parent": LocalJSX.IonParent & JSXBase.HTMLAttributes<HTMLIonParentElement>;
"json-basic": LocalJSX.JsonBasic & JSXBase.HTMLAttributes<HTMLJsonBasicElement>;
"key-reorder": LocalJSX.KeyReorder & JSXBase.HTMLAttributes<HTMLKeyReorderElement>;
"key-reorder-root": LocalJSX.KeyReorderRoot & JSXBase.HTMLAttributes<HTMLKeyReorderRootElement>;
"lifecycle-async-a": LocalJSX.LifecycleAsyncA & JSXBase.HTMLAttributes<HTMLLifecycleAsyncAElement>;
Expand Down
6 changes: 0 additions & 6 deletions test/karma/test-app/json-basic/index.html

This file was deleted.

15 changes: 0 additions & 15 deletions test/karma/test-app/json-basic/karma.spec.ts

This file was deleted.

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

describe('json-basic', function () {
beforeEach(() => {
render({
template: () => <json-basic></json-basic>,
});
});

it('read json content', async () => {
await expect($('#json-foo')).toHaveText('bar');
});
});
File renamed without changes.
Loading