π¬ A browser extension and desktop app that turns your clicks into step-by-step guides with annotated screenshots π
TypeScript browser-extensionchrome-extensiondocumentationfirefox-extensionguide-generatorlocal-firstmanifest-v3privacy-firstproductivityreactscreenshotstep-by-step-guidetutorialtypescriptworkflowwxt
test: correct ElementMeta fixture and add missing vitest imports
Luis Ortizae3103eadf1d
diff --git a/src/core/capture/__tests__/machine.test.ts b/src/core/capture/__tests__/machine.test.tsindex f1bd5d4..a024c6c 100644--- a/src/core/capture/__tests__/machine.test.ts+++ b/src/core/capture/__tests__/machine.test.ts@@ -1,3 +1,4 @@+import { describe, expect, it } from 'vitest';import { createActor } from 'xstate';import { CaptureState, captureMachine } from '../machine';diff --git a/src/core/capture/__tests__/step-description.test.ts b/src/core/capture/__tests__/step-description.test.tsindex 44a1df7..fb9b282 100644--- a/src/core/capture/__tests__/step-description.test.ts+++ b/src/core/capture/__tests__/step-description.test.ts@@ -13,8 +13,9 @@ function makeMeta(overrides: Partial<ElementMeta> = {}): ElementMeta {role: null,href: null,inputType: null,- selector: 'button.submit',- rect: null,+ cssSelector: 'button.submit',+ dataTestId: null,+ rect: { x: 0, y: 0, width: 0, height: 0 },devicePixelRatio: 1,...overrides,};diff --git a/src/core/guideme/__tests__/finder.test.ts b/src/core/guideme/__tests__/finder.test.tsindex 4c891c4..a1769c3 100644--- a/src/core/guideme/__tests__/finder.test.ts+++ b/src/core/guideme/__tests__/finder.test.ts@@ -1,5 +1,5 @@// @vitest-environment jsdom-import { describe, expect, it } from 'vitest';+import { afterEach, describe, expect, it } from 'vitest';import type { ElementMeta } from '@/core/guides/types';import { compareText, findElement, isVisible, scoreCandidate, THRESHOLD, WEIGHTS } from '../finder';