@ripplo/testing 0.6.0 → 0.6.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/README.md +3 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -84,17 +84,17 @@ import { observer } from "@ripplo/testing";
|
|
|
84
84
|
|
|
85
85
|
export const orgNameIs = observer("org:name-is")
|
|
86
86
|
.description("Org has the given name in the DB")
|
|
87
|
-
.input<{ orgId: string; expectedName: string }>()
|
|
88
87
|
.budget("fast")
|
|
88
|
+
.input<{ orgId: string; expectedName: string }>()
|
|
89
89
|
.contract();
|
|
90
90
|
|
|
91
91
|
export const observers = { orgNameIs };
|
|
92
92
|
```
|
|
93
93
|
|
|
94
|
-
`.input<T>()` fields are typed primitives — same rules as precondition contracts. The wire codec preserves the type.
|
|
95
|
-
|
|
96
94
|
`.budget(tier)` controls how long the runtime polls. Use `fast` for synchronous DB reads (default, ~5s), `slow` for queue drains and replication (~30s), `async` for webhooks and LLM calls (~120s).
|
|
97
95
|
|
|
96
|
+
`.input<T>()` fields are typed primitives — same rules as precondition contracts. The wire codec preserves the type.
|
|
97
|
+
|
|
98
98
|
## Locators, actions, assertions
|
|
99
99
|
|
|
100
100
|
`role(name, accessibleName)` matches by ARIA role and accessible name and is the right tool for almost everything. `testId(id)` matches `data-testid` and exists for elements with no semantic role.
|