Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(preview): name hidden, disabled, and ambiguous click failures #7301

Closedgb1095(GitHub profile, opens in a new tab)wants to merge 8 commits intomain fromrefs/pull/7301/headopened View on GitHub

Showing 14 changed files with 150 additions and 2 deletions (loading 11).

x
0 of 14 viewed, 14 left
18 additions and 0 deletionsapps/desktop/src/ipc/methods/preview.test.tsModified
View file
@@ -121,6 +121,24 @@
}),
​
+ effectIt.effect("returns typed click outcomes across the preview IPC handler", () =>
+ Effect.gen(function* () {
+ const result = {
+ _tag: "NotSent",
+ reason: "target-disabled",
+ } as const;
+ const manager = PreviewManager.PreviewManager.of({
+ automationClick: () => Effect.succeed(result),
+ } as unknown as PreviewManager.PreviewManager["Service"]);
+​
+ expect(
+ yield* PreviewIpc.automationClick
+ .handler({ tabId: "tab-1", input: { locator: "role=button[name='Send']" } })
+ .pipe(Effect.provideService(PreviewManager.PreviewManager, manager)),
+ ).toEqual(result);
+ }),
+ );
+​
it("keeps the public automation status tab id limit", () => {
const encode = Schema.encodeUnknownSync(PreviewAutomationStatus);
const tabId = "t".repeat(129);
3 additions and 2 deletionsapps/desktop/src/ipc/methods/preview.tsModified
View file
@@ -2,6 +2,7 @@