@ripplo/testing 0.5.0 → 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/actions.d.ts CHANGED
@@ -20,6 +20,7 @@ declare function navigate(url: string): UnlabeledStep<{
20
20
  };
21
21
  }>;
22
22
  interface StepOptions {
23
+ readonly modifier?: "Alt" | "Control" | "Meta" | "Shift";
23
24
  readonly uiOnly?: boolean;
24
25
  }
25
26
  declare function click(locator: AnyLocator, options?: StepOptions): UnlabeledStep<{
@@ -31,6 +32,7 @@ declare function click(locator: AnyLocator, options?: StepOptions): UnlabeledSte
31
32
  role: string;
32
33
  name?: string | undefined;
33
34
  };
35
+ modifier: "Alt" | "Control" | "Meta" | "Shift" | undefined;
34
36
  type: "click";
35
37
  uiOnly: boolean | undefined;
36
38
  }>;
package/dist/actions.js CHANGED
@@ -34,6 +34,7 @@ function navigate(url) {
34
34
  function click(locator, options) {
35
35
  return createStep({
36
36
  locator: toSpecLocator(locator),
37
+ modifier: options?.modifier,
37
38
  type: "click",
38
39
  uiOnly: options?.uiOnly
39
40
  });
@@ -62,6 +62,12 @@ declare const lockfileBodyV2Schema: z.ZodObject<{
62
62
  name: z.ZodOptional<z.ZodString>;
63
63
  role: z.ZodString;
64
64
  }, z.core.$strip>], "by">;
65
+ modifier: z.ZodOptional<z.ZodEnum<{
66
+ Alt: "Alt";
67
+ Control: "Control";
68
+ Meta: "Meta";
69
+ Shift: "Shift";
70
+ }>>;
65
71
  type: z.ZodLiteral<"click">;
66
72
  id: z.ZodString;
67
73
  label: z.ZodOptional<z.ZodString>;
package/dist/lockfile.js CHANGED
@@ -237,7 +237,12 @@ var gotoNode = z7.object({
237
237
  type: z7.literal("goto"),
238
238
  url: stringValueRefSchema
239
239
  });
240
- var clickNode = z7.object({ ...nodeBase, locator: locatorSchema, type: z7.literal("click") });
240
+ var clickNode = z7.object({
241
+ ...nodeBase,
242
+ locator: locatorSchema,
243
+ modifier: z7.enum(["Alt", "Control", "Meta", "Shift"]).optional(),
244
+ type: z7.literal("click")
245
+ });
241
246
  var fillNode = z7.object({
242
247
  ...nodeBase,
243
248
  locator: locatorSchema,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ripplo/testing",
3
3
  "description": "TypeScript DSL for defining and running Ripplo e2e workflow tests",
4
- "version": "0.5.0",
4
+ "version": "0.5.1",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist"