Skip to content

Commit 37c8e3b

Browse files
committed
fmt
1 parent a8226d3 commit 37c8e3b

3 files changed

Lines changed: 10 additions & 9 deletions

File tree

apps/element-demo/test/e2e/demo-variants.spec.ts

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
import { test, expect } from '@playwright/test';
2-
import {
3-
clickSvgCenter,
4-
deliveryContainer,
5-
interactOnce,
6-
openDeliverRoute,
7-
} from './test-helpers';
2+
import { clickSvgCenter, deliveryContainer, interactOnce, openDeliverRoute } from './test-helpers';
83

94
const MULTIPLE_CHOICE_DEMOS = ['math-algebra-quadratic', 'basic-checkbox', 'radio-simple'] as const;
105
const NUMBER_LINE_DEMOS = [undefined, 'basic-points'] as const;
@@ -18,7 +13,9 @@ test.describe('Demo variants coverage', () => {
1813
const root = deliveryContainer(page);
1914
await expect(root).toBeVisible();
2015

21-
const byValue = root.locator('label[data-value], input[type="radio"], input[type="checkbox"]').first();
16+
const byValue = root
17+
.locator('label[data-value], input[type="radio"], input[type="checkbox"]')
18+
.first();
2219
await expect(byValue).toBeVisible();
2320
await byValue.click({ force: true });
2421
const sessionPanel = page.locator('[data-testid="session-panel-content"]').first();

apps/element-demo/test/e2e/phase1-spatial-dnd.spec.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,9 @@ async function runSpatialInteraction(page: Page, element: string, root: Locator)
153153
test.describe('Phase 1: Spatial and DnD element interactions', () => {
154154
for (const item of CASES) {
155155
const caseLabel = item.demoId ? `${item.element} [demo=${item.demoId}]` : item.element;
156-
test(`${caseLabel}: gather interaction updates state and evaluate renders`, async ({ page }) => {
156+
test(`${caseLabel}: gather interaction updates state and evaluate renders`, async ({
157+
page,
158+
}) => {
157159
await openDeliverRoute(page, item.element, item.demoId);
158160
const root = deliveryContainer(page);
159161
await expect(root).toBeVisible();

apps/element-demo/test/e2e/phase4-propagation.spec.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,9 @@ test.describe('Phase 4: Source/author propagation', () => {
6464

6565
const marker = `prop-author-cloze-${Date.now()}`;
6666
const editable = page
67-
.locator('.author-view [contenteditable="true"], .author-view textarea, .author-view input[type="text"]')
67+
.locator(
68+
'.author-view [contenteditable="true"], .author-view textarea, .author-view input[type="text"]'
69+
)
6870
.first();
6971
await expect(editable).toBeVisible();
7072
await editable.click();

0 commit comments

Comments
 (0)