mirror of
https://github.com/shoelace-style/webawesome.git
synced 2026-01-12 04:09:12 +00:00
update tests to use autoloader
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
import '../../../dist/webawesome.js';
|
||||
import { aTimeout, expect, fixture, html, oneEvent } from '@open-wc/testing';
|
||||
import { clickOnElement, moveMouseOnElement } from '../../internal/test.js';
|
||||
import { queryByTestId } from '../../internal/test/data-testid-helpers.js';
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import '../../../dist/webawesome.js';
|
||||
import { clickOnElement } from '../../internal/test.js';
|
||||
import { expect, fixture, html, oneEvent } from '@open-wc/testing';
|
||||
import type WaAnimatedImage from './animated-image.js';
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import '../../../dist/webawesome.js';
|
||||
import { aTimeout, expect, fixture, oneEvent } from '@open-wc/testing';
|
||||
import { html } from 'lit';
|
||||
import type WaAnimation from './animation.js';
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import '../../../dist/webawesome.js';
|
||||
import { aTimeout, expect, fixture, html, waitUntil } from '@open-wc/testing';
|
||||
import type WaAvatar from './avatar.js';
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import '../../../dist/webawesome.js';
|
||||
import { expect, fixture, html } from '@open-wc/testing';
|
||||
import type WaBadge from './badge.js';
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import '../../../dist/webawesome.js';
|
||||
import { expect, fixture, html } from '@open-wc/testing';
|
||||
import type WaBreadcrumbItem from './breadcrumb-item.js';
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import '../../../dist/webawesome.js';
|
||||
import { expect, fixture, html } from '@open-wc/testing';
|
||||
import type WaBreadcrumb from './breadcrumb.js';
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import '../../../dist/webawesome.js';
|
||||
import { elementUpdated, expect, fixture, html } from '@open-wc/testing';
|
||||
import type WaButtonGroup from './button-group.js';
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import '../../../dist/webawesome.js';
|
||||
import { expect, fixture, html, waitUntil } from '@open-wc/testing';
|
||||
import { runFormControlBaseTests } from '../../internal/test/form-control-base-tests.js';
|
||||
import sinon from 'sinon';
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import '../../../dist/webawesome.js';
|
||||
import { expect, fixture, html } from '@open-wc/testing';
|
||||
import type WaCard from './card.js';
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import '../../../dist/webawesome.js';
|
||||
import { expect, fixture, html } from '@open-wc/testing';
|
||||
|
||||
describe('<wa-carousel-item>', () => {
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import '../../../dist/webawesome.js';
|
||||
import { clickOnElement, dragElement, moveMouseOnElement } from '../../internal/test.js';
|
||||
import { expect, fixture, html, nextFrame, oneEvent } from '@open-wc/testing';
|
||||
import { map } from 'lit/directives/map.js';
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import '../../../dist/webawesome.js';
|
||||
import { aTimeout, expect, fixture, html, oneEvent, waitUntil } from '@open-wc/testing';
|
||||
import { clickOnElement } from '../../internal/test.js';
|
||||
import { runFormControlBaseTests } from '../../internal/test/form-control-base-tests.js';
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import '../../../dist/webawesome.js';
|
||||
import { aTimeout, expect, fixture, html, oneEvent } from '@open-wc/testing';
|
||||
import { clickOnElement, dragElement } from '../../internal/test.js';
|
||||
import { runFormControlBaseTests } from '../../internal/test/form-control-base-tests.js';
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import '../../../dist/webawesome.js';
|
||||
import { expect, fixture, html } from '@open-wc/testing';
|
||||
import type WaCopyButton from './copy-button.js';
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import '../../../dist/webawesome.js';
|
||||
// cspell:dictionaries lorem-ipsum
|
||||
import { expect, fixture, html, waitUntil } from '@open-wc/testing';
|
||||
import sinon from 'sinon';
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import '../../../dist/webawesome.js';
|
||||
// cspell:dictionaries lorem-ipsum
|
||||
import { aTimeout, elementUpdated, expect, fixture, waitUntil } from '@open-wc/testing';
|
||||
import { html, LitElement } from 'lit';
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import '../../../dist/webawesome.js';
|
||||
import { elementUpdated, expect, fixture, html } from '@open-wc/testing';
|
||||
import type WaDivider from './divider.js';
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import '../../../dist/webawesome.js';
|
||||
// cspell:dictionaries lorem-ipsum
|
||||
import { expect, fixture, html, waitUntil } from '@open-wc/testing';
|
||||
import { sendKeys } from '@web/test-runner-commands';
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import '../../../dist/webawesome.js';
|
||||
import { clickOnElement } from '../../internal/test.js';
|
||||
import { expect, fixture, html, waitUntil } from '@open-wc/testing';
|
||||
import { sendKeys, sendMouse } from '@web/test-runner-commands';
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import '../../../dist/webawesome.js';
|
||||
import { elementUpdated, expect, fixture, html } from '@open-wc/testing';
|
||||
import type WaFormatBytes from './format-bytes.js';
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import '../../../dist/webawesome.js';
|
||||
import { expect, fixture, html } from '@open-wc/testing';
|
||||
import sinon from 'sinon';
|
||||
import type WaFormatDate from './format-date.js';
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import '../../../dist/webawesome.js';
|
||||
import { expect, fixture, html } from '@open-wc/testing';
|
||||
import type WaFormatNumber from './format-number.js';
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import '../../../dist/webawesome.js';
|
||||
import { expect, fixture, html, waitUntil } from '@open-wc/testing';
|
||||
import sinon from 'sinon';
|
||||
import type WaIconButton from './icon-button.js';
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import '../../../dist/webawesome.js';
|
||||
import { expect, fixture, html } from '@open-wc/testing';
|
||||
import sinon from 'sinon';
|
||||
import type WaImageComparer from './image-comparer.js';
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import '../../../dist/webawesome.js';
|
||||
import { aTimeout, expect, fixture, html, waitUntil } from '@open-wc/testing';
|
||||
import sinon from 'sinon';
|
||||
import type WaInclude from './include.js';
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import '../../../dist/webawesome.js';
|
||||
import { expect, fixture, html, waitUntil } from '@open-wc/testing';
|
||||
import { sendKeys } from '@web/test-runner-commands';
|
||||
import sinon from 'sinon';
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import '../../../dist/webawesome.js';
|
||||
import { expect, fixture, html } from '@open-wc/testing';
|
||||
import type WaMenuLabel from './menu-label.js';
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import '../../../dist/webawesome.js';
|
||||
import { clickOnElement } from '../../internal/test.js';
|
||||
import { expect, fixture } from '@open-wc/testing';
|
||||
import { html } from 'lit';
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import '../../../dist/webawesome.js';
|
||||
import { expect, fixture, html } from '@open-wc/testing';
|
||||
|
||||
describe('<wa-mutation-observer>', () => {
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import '../../../dist/webawesome.js';
|
||||
import { aTimeout, expect, fixture, html, waitUntil } from '@open-wc/testing';
|
||||
import sinon from 'sinon';
|
||||
import type WaOption from './option.js';
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import '../../../dist/webawesome.js';
|
||||
import { expect, fixture, html } from '@open-wc/testing';
|
||||
|
||||
describe('<wa-page>', () => {
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import '../../../dist/webawesome.js';
|
||||
import { expect, fixture, html } from '@open-wc/testing';
|
||||
|
||||
describe('<wa-popup>', () => {
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import '../../../dist/webawesome.js';
|
||||
import { expect, fixture, html } from '@open-wc/testing';
|
||||
import type WaProgressBar from './progress-bar.js';
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import '../../../dist/webawesome.js';
|
||||
import { expect, fixture, html } from '@open-wc/testing';
|
||||
import type WaProgressRing from './progress-ring.js';
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import '../../../dist/webawesome.js';
|
||||
import { expect, fixture, html } from '@open-wc/testing';
|
||||
import type WaQrCode from './qr-code.js';
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import '../../../dist/webawesome.js';
|
||||
import { expect, fixture, html } from '@open-wc/testing';
|
||||
import type WaRadioButton from './radio-button.js';
|
||||
import type WaRadioGroup from '../radio-group/radio-group.js';
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import '../../../dist/webawesome.js';
|
||||
import { aTimeout, expect, fixture, html, oneEvent, waitUntil } from '@open-wc/testing';
|
||||
import { clickOnElement } from '../../internal/test.js';
|
||||
import { runFormControlBaseTests } from '../../internal/test/form-control-base-tests.js';
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import '../../../dist/webawesome.js';
|
||||
import { expect, fixture, html } from '@open-wc/testing';
|
||||
import type WaRadio from './radio.js';
|
||||
import type WaRadioGroup from '../radio-group/radio-group.js';
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import '../../../dist/webawesome.js';
|
||||
import { clickOnElement } from '../../internal/test.js';
|
||||
import { expect, fixture, html, oneEvent } from '@open-wc/testing';
|
||||
import { runFormControlBaseTests } from '../../internal/test/form-control-base-tests.js';
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import '../../../dist/webawesome.js';
|
||||
import { clickOnElement } from '../../internal/test.js';
|
||||
import { expect, fixture, html } from '@open-wc/testing';
|
||||
import { sendKeys } from '@web/test-runner-commands';
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import '../../../dist/webawesome.js';
|
||||
import { expect, fixture, html } from '@open-wc/testing';
|
||||
import { LocalizeController } from '@shoelace-style/localize';
|
||||
import sinon from 'sinon';
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import '../../../dist/webawesome.js';
|
||||
import { aTimeout, expect, fixture, html, oneEvent, waitUntil } from '@open-wc/testing';
|
||||
import { clickOnElement } from '../../internal/test.js';
|
||||
import { runFormControlBaseTests } from '../../internal/test/form-control-base-tests.js';
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import '../../../dist/webawesome.js';
|
||||
import { expect, fixture, html } from '@open-wc/testing';
|
||||
import type WaSkeleton from './skeleton.js';
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import '../../../dist/webawesome.js';
|
||||
import { expect, fixture, html } from '@open-wc/testing';
|
||||
import type WaSpinner from './spinner.js';
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import '../../../dist/webawesome.js';
|
||||
import { dragElement } from '../../internal/test.js';
|
||||
import { expect, fixture, html, oneEvent } from '@open-wc/testing';
|
||||
import { queryByTestId } from '../../internal/test/data-testid-helpers.js';
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import '../../../dist/webawesome.js';
|
||||
import { aTimeout, expect, fixture, html, oneEvent, waitUntil } from '@open-wc/testing';
|
||||
import { runFormControlBaseTests } from '../../internal/test/form-control-base-tests.js';
|
||||
import { sendKeys } from '@web/test-runner-commands';
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import '../../../dist/webawesome.js';
|
||||
import { aTimeout, elementUpdated, expect, fixture, oneEvent, waitUntil } from '@open-wc/testing';
|
||||
import { clickOnElement } from '../../internal/test.js';
|
||||
import { html } from 'lit';
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import '../../../dist/webawesome.js';
|
||||
import { aTimeout, expect, fixture, html } from '@open-wc/testing';
|
||||
import type WaTabPanel from './tab-panel.js';
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import '../../../dist/webawesome.js';
|
||||
import { expect, fixture, html } from '@open-wc/testing';
|
||||
import sinon from 'sinon';
|
||||
import type WaIconButton from '../icon-button/icon-button.js';
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import '../../../dist/webawesome.js';
|
||||
import { expect, fixture, html } from '@open-wc/testing';
|
||||
import sinon from 'sinon';
|
||||
import type WaTag from './tag.js';
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import '../../../dist/webawesome.js';
|
||||
import { expect, fixture, html, oneEvent, waitUntil } from '@open-wc/testing';
|
||||
import { runFormControlBaseTests } from '../../internal/test/form-control-base-tests.js';
|
||||
import { sendKeys } from '@web/test-runner-commands';
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import '../../../dist/webawesome.js';
|
||||
import { expect, fixture, html, waitUntil } from '@open-wc/testing';
|
||||
import sinon from 'sinon';
|
||||
import type WaTooltip from './tooltip.js';
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import '../../../dist/webawesome.js';
|
||||
import { expect, fixture, html, oneEvent, waitUntil } from '@open-wc/testing';
|
||||
import sinon from 'sinon';
|
||||
import type WaTreeItem from './tree-item.js';
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import '../../../dist/webawesome.js';
|
||||
import { aTimeout, expect, fixture, html, triggerBlurFor, triggerFocusFor } from '@open-wc/testing';
|
||||
import { clickOnElement } from '../../internal/test.js';
|
||||
import { sendKeys } from '@web/test-runner-commands';
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import '../../../dist/webawesome.js';
|
||||
import { expect, fixture, html } from '@open-wc/testing';
|
||||
|
||||
describe('<wa-visually-hidden>', () => {
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import '../../../dist/webawesome.js';
|
||||
import { expect, fixture, html, waitUntil } from '@open-wc/testing';
|
||||
import sinon from 'sinon';
|
||||
|
||||
|
||||
@@ -6,8 +6,6 @@ import { html } from 'lit';
|
||||
import { sendKeys } from '@web/test-runner-commands';
|
||||
import type { WaDialog } from '../webawesome.js';
|
||||
|
||||
import '../../../dist/webawesome.js';
|
||||
|
||||
async function holdShiftKey(callback: () => Promise<void>) {
|
||||
await sendKeys({ down: 'Shift' });
|
||||
await callback();
|
||||
|
||||
@@ -35,6 +35,7 @@ export default {
|
||||
window.process = {env: { NODE_ENV: "production" }}
|
||||
</script>
|
||||
<script type="module" src="${testFramework}"></script>
|
||||
<script type="module" src="/dist/webawesome.loader.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
`,
|
||||
|
||||
Reference in New Issue
Block a user