@augment-vir/test 31.24.0 → 31.25.0

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.
@@ -38,7 +38,7 @@ declare function importWebTestApi(this: void): Promise<RuntimeEnvError | {
38
38
  */
39
39
  renderElement: typeof import("../test-web/render-element").renderElement;
40
40
  /** Focus the given element and then type the given string. */
41
- typeIntoInput: typeof import("../test-web/type-into-element").typeStringIntoElement;
41
+ typeIntoElement: typeof import("../test-web/type-into-element").typeStringIntoElement;
42
42
  /**
43
43
  * Types the given string as if it were input by a keyboard. This doesn't try to type into
44
44
  * any element in particular, it'll go wherever the current focus is, if any.
@@ -47,7 +47,7 @@ async function importWebTestApi() {
47
47
  */
48
48
  renderElement,
49
49
  /** Focus the given element and then type the given string. */
50
- typeIntoInput: typeStringIntoElement,
50
+ typeIntoElement: typeStringIntoElement,
51
51
  /**
52
52
  * Types the given string as if it were input by a keyboard. This doesn't try to type into
53
53
  * any element in particular, it'll go wherever the current focus is, if any.
@@ -1,3 +1,3 @@
1
1
  export declare function typeString(text: string): Promise<void>;
2
- export declare function typeStringIntoElement(text: string, inputElement: Readonly<HTMLInputElement>): Promise<void>;
2
+ export declare function typeStringIntoElement(text: string, element: Readonly<HTMLElement>): Promise<void>;
3
3
  export declare function deleteAllTextInInput(inputElement: Readonly<HTMLInputElement>): Promise<void>;
@@ -5,8 +5,8 @@ export async function typeString(text) {
5
5
  type: text,
6
6
  });
7
7
  }
8
- export async function typeStringIntoElement(text, inputElement) {
9
- await focusElement(inputElement);
8
+ export async function typeStringIntoElement(text, element) {
9
+ await focusElement(element);
10
10
  await typeString(text);
11
11
  }
12
12
  export async function deleteAllTextInInput(inputElement) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@augment-vir/test",
3
- "version": "31.24.0",
3
+ "version": "31.25.0",
4
4
  "description": "A universal testing suite that works with Mocha style test runners _and_ Node.js's built-in test runner.",
5
5
  "keywords": [
6
6
  "test",
@@ -43,20 +43,20 @@
43
43
  "test:web": "virmator test --no-deps web 'src/test-web/**/*.test.ts' 'src/augments/universal-testing-suite/**/*.test.ts'"
44
44
  },
45
45
  "dependencies": {
46
- "@augment-vir/assert": "^31.24.0",
47
- "@augment-vir/common": "^31.24.0",
46
+ "@augment-vir/assert": "^31.25.0",
47
+ "@augment-vir/common": "^31.25.0",
48
48
  "@open-wc/testing-helpers": "^3.0.1",
49
- "@virmator/test": "^13.15.3",
49
+ "@virmator/test": "^13.15.5",
50
50
  "type-fest": "^4.41.0"
51
51
  },
52
52
  "devDependencies": {
53
- "@types/node": "^22.15.29",
53
+ "@types/node": "^24.0.3",
54
54
  "@web/dev-server-esbuild": "^1.0.4",
55
55
  "@web/test-runner": "^0.20.2",
56
56
  "@web/test-runner-commands": "^0.9.0",
57
- "@web/test-runner-playwright": "^0.11.0",
57
+ "@web/test-runner-playwright": "^0.11.1",
58
58
  "concurrently": "^9.1.2",
59
- "element-vir": "^25.13.1",
59
+ "element-vir": "^26.3.1",
60
60
  "istanbul-smart-text-reporter": "^1.1.5",
61
61
  "typescript": "^5.8.3"
62
62
  },