@testspectra/skills 1.2.45 → 1.2.47

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.
@@ -164,6 +164,15 @@ await SettingsPage.timezone.shouldHaveText('Asia/Jakarta');
164
164
  stream.serverEvents(); // [{ event, id, data, receivedAt }]
165
165
  ```
166
166
 
167
+ Events count from the moment the spy is made, on a stream already open too. To prove the page got
168
+ no event (another tenant's change), watch a window: it fails at the first matching event.
169
+
170
+ ```typescript
171
+ const live = await Spectra.spy('**/api/live-updates**'); // the stream the page already opened
172
+ await Step.changeTimezoneAsOtherTenant('Asia/Tokyo');
173
+ await live.shouldNotHaveReceivedEvent({ event: 'settings-updated' }, { during: 3000 });
174
+ ```
175
+
167
176
  Intercept with `delayMs` only when the step reads the page while the request is in flight; then
168
177
  `waitForResponse()` before checking the result:
169
178
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@testspectra/skills",
3
- "version": "1.2.45",
3
+ "version": "1.2.47",
4
4
  "description": "Installer & manager for modular AI agent skills that standardize TestSpectra script authoring (specs, page objects, steps, actions, hooks, fixtures, matchers)",
5
5
  "keywords": [
6
6
  "agents",
@@ -164,6 +164,15 @@ await SettingsPage.timezone.shouldHaveText('Asia/Jakarta');
164
164
  stream.serverEvents(); // [{ event, id, data, receivedAt }]
165
165
  ```
166
166
 
167
+ Events count from the moment the spy is made, on a stream already open too. To prove the page got
168
+ no event (another tenant's change), watch a window: it fails at the first matching event.
169
+
170
+ ```typescript
171
+ const live = await Spectra.spy('**/api/live-updates**'); // the stream the page already opened
172
+ await Step.changeTimezoneAsOtherTenant('Asia/Tokyo');
173
+ await live.shouldNotHaveReceivedEvent({ event: 'settings-updated' }, { during: 3000 });
174
+ ```
175
+
167
176
  Intercept with `delayMs` only when the step reads the page while the request is in flight; then
168
177
  `waitForResponse()` before checking the result:
169
178